Set receivable and payable accounts ​

ERPNext normally posts all customer balances to one receivable account and all supplier balances to one payable account. These are control accounts. The Party on each invoice and payment gives the customer-level or supplier-level detail, so you do not need one ledger account for each party.

For example, invoices for three customers all post to Debtors - NI. The Accounts Receivable report still shows what each customer owes, and the General Ledger has one balance to reconcile.

Give a party its own account only for a real accounting reason, such as a different currency or a separate reporting line.

How ERPNext selects the account ​

DocumentAccountParty detail
Sales InvoiceThe customer's account for the company, else the Default Receivable AccountCustomer
Purchase InvoiceThe supplier's account for the company, else the Default Payable AccountSupplier
Payment EntryThe receivable or payable account of the partyCustomer or supplier

On submit, the account balance and the party balance change together.

Prerequisites ​

  • The accounts exist in the chart of accounts, belong to the company, and are not groups.
  • The receivable account has Account Type set to Receivable. The payable account has Account Type set to Payable.

Set the company defaults ​

  1. Open the Company and go to the Accounts tab.
  2. Set Default Receivable Account and Default Payable Account.
  3. Save.

Ledger accounts belong to one company. Set the defaults on each company.

Give one party a different account ​

The party's account overrides the company default for that company.

  1. Open the Customer or Supplier.
  2. On the Accounting tab, add a row to the Default Accounts table.
  3. Select the Company and the Default Account. You can also set an Advance Account for advances from this party.
  4. Save.

For example, a company with USD as its currency can use an EUR receivable account for a customer that it bills in euros. Do not create a separate account only to see the balance of each customer. The reports already show it.

Troubleshooting ​

The account is not available in the field ​

Check that the account belongs to the company of the document, is not a group, is not disabled, and has the account type Receivable or Payable. Also check the account currency.

An invoice uses an unexpected account ​

Check the Default Accounts table on the Accounting tab of the customer or supplier. A row for the company wins over the company default. Remove or correct the row if you no longer need it.

Party balances do not match the control account ​

Run the Accounts Receivable or Accounts Payable report and the General Ledger for the same company and date. Check opening entries, journal entries with a party, cancelled documents, and reconciliations before you post an adjustment.