Reconcile payments with invoices ​

Sometimes a payment is recorded in ERPNext without a link to the invoice that it pays. For example, a customer pays before you create the invoice, or you record a receipt from the bank statement without an invoice reference. The invoice then stays outstanding, and the payment stays unallocated.

The Payment Reconciliation tool links such a payment, journal entry, or credit note to one or more outstanding invoices of the same party. It does not post the money again. It changes which invoice the existing amount settles, and it reduces the invoice's outstanding amount.

Payment reconciliation is not bank reconciliation. To match ledger entries with bank statement lines, see Reconcile a bank account.

Prerequisites ​

  • The invoices and the payments are submitted.
  • They belong to the same company and party, and post to the same receivable or payable account.
  • The invoice still has an outstanding amount, and the payment still has an unallocated amount.

Reconcile a payment ​

This example uses a customer, Northstar Retail, with an outstanding Sales Invoice of 746 and an unallocated Payment Entry of 525.

1. Load the unreconciled entries ​

  1. Open Payment Reconciliation.
  2. Select the Company, the Party Type (for example Customer), and the Party.
  3. Check the Receivable / Payable Account. ERPNext fills it from the party's default account.
  4. If the company books advances in a separate account, select it in Default Advance Account. See Book advances in a separate party account.
  5. Optional: narrow the results in the Filters section (see below).
  6. Select Get Unreconciled Entries.

The Invoices table on the left lists the documents with an outstanding amount: Sales Invoices, Purchase Invoices, and Journal Entries. The Payments table on the right lists the documents with an unallocated amount: Payment Entries, Journal Entries, and credit or debit notes.

Payment Reconciliation with outstanding invoices on the left and unallocated payments on the right

2. Allocate ​

  1. Select the invoice in the Invoices table, and the payment in the Payments table.
  2. Select Allocate.

ERPNext adds rows to Allocated Entries. For each pair, it allocates the smaller of the payment amount and the invoice's outstanding amount.

If you select no rows, ERPNext allocates all payments to all invoices in first-in, first-out (FIFO) order: the oldest payment to the oldest invoice. Select the rows yourself when the customer's remittance advice says which invoice each payment is for.

3. Review and reconcile ​

  1. Check each row in Allocated Entries: Reference Name (the payment), Invoice Number, Allocated Amount, and Difference Amount.
  2. To apply only part of a payment, lower the Allocated Amount. The rest stays unallocated for later.
  3. Select Reconcile.

ERPNext shows "Successfully Reconciled" and reloads the unreconciled entries.

In the example, the invoice's outstanding amount drops from 746 to 221. The Payment Entry now lists the invoice under Payment References, its Total Allocated Amount is 525, and its Unallocated Amount is 0.

Difference amount in a foreign currency ​

When the invoice and the payment have different exchange rates, the row shows a Difference Amount. This is an exchange gain or loss.

When you select Reconcile, ERPNext opens the Select Difference Account dialog. For each row, check the Posting Date and the Difference Account, then select Reconcile Entries. ERPNext posts a Journal Entry for the difference. The default account is the Exchange Gain / Loss Account of the company.

The default posting date of the difference comes from Posting Date inheritance for exchange gain / loss in Accounts Settings, on the Payments tab: Invoice, Payment, or Reconciliation Date.

Filters ​

FilterWhat it does
From Invoice Date, To Invoice DateLoad invoices posted in this period.
From Payment Date, To Payment DateLoad payments posted in this period.
Minimum Invoice Amount, Maximum Invoice AmountLoad invoices in this amount range.
Minimum Payment Amount, Maximum Payment AmountLoad payments in this amount range.
Invoice Limit, Payment LimitThe maximum number of rows to load.
Bank / Cash AccountLoad payments made through this bank or cash account.
Cost Center, ProjectLoad documents with these accounting dimensions.
Filter on Invoice, Filter on PaymentSearch the loaded rows by document name.

Common cases ​

Troubleshooting ​

"No Unreconciled Invoices and Payments found for this party and account" ​

Check the company, party, receivable or payable account, and filters. A fully allocated payment and a fully paid invoice do not appear. "No Outstanding Invoices found for this party" and "No Unreconciled Payments found for this party" mean that only one side is missing.

The invoice and the payment use different receivable or payable accounts ​

The tool matches documents in one account only. Correct the account on the wrong document by cancelling and amending it, or ask your accountant for an adjustment.

"Row ...: Allocated amount ... must be less than or equal to invoice outstanding amount ..." ​

Lower the Allocated Amount. It cannot be more than the invoice's outstanding amount or the payment's remaining amount.

Allocate linked the wrong invoice ​

You did not select rows, so ERPNext used FIFO order. Select the exact invoice and payment, then select Allocate again.

"A Reconciliation Job ... is running for the same filters. Cannot reconcile now" ​

A background reconciliation is running for the same party and account. Wait until it completes.

A payment was reconciled with the wrong invoice ​

Remove the link with Unreconcile payments, then reconcile again.