Set customer credit limits ​

A credit limit is the most a customer may owe you. When a new Sales Order or Sales Invoice would take the customer above the limit, ERPNext stops the submission. A user with the bypass role can still submit.

Prerequisites ​

  • A credit policy agreed with your finance team, including who may approve exceptions.
  • Current receivables. The check uses the customer's outstanding balance, so invoices, payments, and credit notes must be up to date.

How ERPNext chooses the limit ​

ERPNext looks for a limit for the transaction's company in this order:

  1. The limit on the Customer.
  2. If the customer has none, the limit on the customer's Customer Group.
  3. If the group has none, the Credit Limit on the Company.

A limit of 0 is not a limit. ERPNext moves on to the next level. A customer group limit applies to each customer separately. It is not a shared pool for the whole group.

Set a limit on a customer ​

  1. Open the Customer.
  2. In the Credit & Overdue Limits table, add a row.
  3. Select the Company and enter the Credit Limit.
  4. Select Bypass credit limit check at sales order if the limit should apply to invoices only. See the next section.
  5. Save.

Add one row for each company that sells to the customer.

To set a limit for a group, add the same row in the Credit & Overdue Limits table of the Customer Group. To set a fallback for all customers, enter Credit Limit on the Company's Buying and Selling tab.

What ERPNext checks ​

  • Sales Order: by default, open order values count toward the customer's balance. The check runs when you submit the order.
  • Sales Invoice: outstanding receivables count toward the balance. The check runs when you submit the invoice.
  • Payments and credit notes: a submitted Payment Entry or credit note reduces the balance and frees credit.

For example, a customer has a limit of 50,000 and owes 42,000. A new order for 10,000 is blocked, because the balance would be 52,000.

Skip the check on sales orders ​

Select Bypass credit limit check at sales order on the credit limit row when you accept orders freely and control credit only at billing. Sales Orders then skip the check, and Sales Invoices are still checked. This option does not give the customer unlimited credit.

Choose who can bypass the limit ​

  1. Open Accounts Settings.
  2. On the Credit Limits tab, select a role in Role allowed to bypass credit limit.
  3. Save.

Users with this role can submit a transaction above the limit. Give the role only to people who may accept credit risk. Older documentation calls this setting "Credit Controller".

Block invoices for overdue customers ​

On the same tab, Prevent Sales Invoice when Customer is Overdue blocks new Sales Invoices for customers with overdue invoices. Role Allowed to Bypass Over Billing Restriction sets who can still submit them.

Troubleshooting ​

"Credit limit has been crossed for customer" ​

The new transaction takes the customer's balance above the limit. The message shows the balance and the limit. To fix it:

  1. Check the customer's outstanding invoices in Accounts Receivable.
  2. Submit and allocate any payments and credit notes that are still pending.
  3. Then do one of these: collect payment, reduce the transaction, raise the limit, or ask a user with the bypass role to submit.

The message lists the users who can extend the limit. If no user has the bypass role, the message asks you to contact your administrator.

The customer's limit is ignored ​

The limit row is for another company, or the amount is 0. ERPNext then uses the customer group or company limit.

A sales order is not checked ​

Bypass credit limit check at sales order is selected on the customer's row.

A payment did not free credit ​

The Payment Entry is not submitted, or it is for another customer or company.