Reconcile payments in the background ​

Process Payment Reconciliation runs payment reconciliation as a background job. You set the scope once: the company, party, and account. ERPNext then allocates the unallocated payments of that party to its outstanding invoices in first-in, first-out (FIFO) order, the oldest payment to the oldest invoice.

Use it when a party has many payments and invoices, or when you want to reconcile without keeping a form open. When you need to choose which payment settles which invoice, use the Payment Reconciliation tool instead.

Prerequisites ​

  • In Accounts Settings, on the Payments tab, in the Payment Reconciliation Settings section, select Auto reconcile Payments.
  • The scheduler of your site is active. Background jobs do not run without it.
  • The invoices and payments are submitted, and post to the same receivable or payable account.

Two more settings in the same section control the job:

SettingDefaultWhat it does
Auto Reconciliation job trigger15How often, in minutes, ERPNext picks up queued jobs. Between 1 and 59.
Reconciliation queue size5How many jobs ERPNext starts each time. Between 5 and 100.

Create and run a job ​

  1. Open the Process Payment Reconciliation list and select Add Process Payment Reconciliation.
  2. Select the Company, the Party Type, the Party, and the Receivable/Payable Account.
  3. If the company books advances in a separate account, select the Default Advance Account.
  4. Optional: in the Filters section, set From Invoice Date, To Invoice Date, From Payment Date, To Payment Date, the Cost Center, or the Bank/Cash Account.
  5. Save and submit. The status becomes Queued.

ERPNext starts the job at the next trigger. To start it now, select Start / Resume.

Submitting the job does not reconcile anything yet. The allocations happen while the job runs.

Follow the progress ​

While the job runs, the form shows a progress bar, for example "2/2 processed". Each job has a Process Payment Reconciliation Log with the allocations it made.

StatusMeaning
QueuedSubmitted and waiting for the scheduler.
RunningAllocating payments. Select Pause to stop it.
PausedStopped. Select Start / Resume to continue.
CompletedAll allocations are done.
Partially ReconciledSome allocations failed. See the log.
FailedThe job stopped with an error. See Error Log.
CancelledYou cancelled the job.

When the job completes, open a Payment Entry or an invoice of the party to check the result. For example, a Payment Entry of 600 now lists the invoice under Payment References, with an Unallocated Amount of 0, and the invoice's outstanding amount is 600 lower.

Troubleshooting ​

"Auto Reconciliation of Payments has been disabled. Enable it through Accounts Settings" ​

Select Auto reconcile Payments in Accounts Settings, then select Start / Resume.

The job stays Queued ​

Check that Auto reconcile Payments is selected and that the scheduler is active. "Scheduler is Inactive. Can't trigger job now." means that background jobs are off on the site. Ask your System Manager to enable the scheduler.

The job completes but a payment is still unallocated ​

Compare the payment with the job's scope: party, account, dates, Cost Center, and Bank/Cash Account. The payment must still have an unallocated amount, and the invoice an outstanding amount. Use Payment Reconciliation for that payment.

Payment Reconciliation says that a job is running ​

While a job runs for a party and account, the Payment Reconciliation tool cannot reconcile the same party and account. Wait until the job completes, or pause it.