# Prepare supplier payment orders and customer collection orders

> Group the open installments by payment mode, generate the bank file and follow each installment until reconciliation.

Fonte: https://docs.kmee.com.br/en/odoo/localizacoes/brasil/financeiro/pagar-fornecedores-por-cnab/

Group the open installments by payment mode, generate the bank file and follow each installment until reconciliation.

## Before you start

The payment modes, the company bank accounts, the journals and the bank file layout must be configured. To pay suppliers, the supplier bank account must be registered on the supplier record.

## Step by step

### 1. Gather the open installments

Open Invoicing > Vendors > Payment Orders to pay suppliers, or Invoicing > Customers > Payment Orders to collect from customers. When the invoice payment mode creates the order on posting, the installments are already in the order of that mode. To build an order yourself, create it with the company and the payment mode and add the open installments from the journal items, or use Add to Payment Order on a posted invoice. Check the due date and the residual amount of each installment.

### 2. Confirm the order

Check the beneficiary, bank account, amount, payment date and reference of each line, as well as the order total. Then click Confirm Payments to close the order.

### 3. Generate and send the bank file

Click Generate Payment File: Odoo builds the file in the bank layout, such as CNAB 240, and attaches it to the order. Send the file to the bank and then click File Successfully Uploaded. The installments are settled through the bank return file or the bank statement reconciliation.

## Expected result

Every selected installment belongs to a payment order, with the bank file attached and the settlement traceable through reconciliation.

## If something goes wrong

If an installment is not offered for the order, check that the invoice is posted, that the installment payment mode matches the order and whether it is already in another order. If a payment line has no supplier bank account, register the account on the supplier record and create the line again. To settle a remaining balance, open the installment and check its reconciliation before registering a new payment.

## Continue the process

- [Issue boletos and follow CNAB collection files](https://docs.kmee.com.br/en/odoo/enterprise/localizacoes/brasil/financeiro/cobranca-boleto-cnab-e-pix/)
- [Import a bank statement and reconcile](https://docs.kmee.com.br/en/odoo/enterprise/funcional/financeiro/conciliacao-bancaria/)
- [Review receivables, payables and installments](https://docs.kmee.com.br/en/odoo/enterprise/funcional/financeiro/parcelas-e-vencimentos/)
