Fix rounding errors on invoices ​

Quantities, rates, discounts, taxes, and exchange rates can produce amounts with more decimals than the currency allows. ERPNext rounds these amounts. This page covers the two common problems with rounding: a missing round-off account, and totals that are rounded when you do not expect it.

Fix "Please mention 'Round Off Account' in Company" ​

When the debit and credit totals of a document differ by a small amount, ERPNext posts the difference to the round-off account of the company. If the company has no round-off account, you cannot submit the document, and ERPNext shows one of these messages:

Please mention 'Round Off Account' in Company: Nova Industries
Please mention 'Round Off Cost Center' in Company: Nova Industries

To fix the error:

  1. In the Chart of Accounts, find or create a ledger account for rounding differences, for example "Round Off" under expenses.
  2. Open the Company form.
  3. In the Round Off section, set Round Off Account and Round Off Cost Center.
  4. Reload the document and submit it again.

If the document is an opening entry, also set Round Off for Opening in the same section. ERPNext uses that account for rounding differences on opening entries, and shows Please set 'Round Off for Opening' in Company when it is empty.

When the document has its own Cost Center, ERPNext posts the rounding difference to that cost center instead of the company default.

The error remains after you set the account ​

  • Check that the account and the cost center belong to the same company as the document.
  • Check that the account is a ledger, not a group account.
  • Reload the document after you save the Company.

WARNING

The round-off account is for differences of a few cents. A large difference means that a rate, tax, exchange rate, or precision is wrong. Find and fix the cause instead of posting the difference to the round-off account.

Fix totals that are rounded when you do not expect it ​

Two settings control how ERPNext rounds the total and the amount in words on a printed invoice:

SettingWhereEffect
Disable Rounded TotalGlobal DefaultsWhen selected, ERPNext does not calculate a Rounded Total on sales and purchase documents.
Smallest Currency Fraction ValueThe Currency formThe smallest coin of the currency, for example 0.01 for a currency with cents. ERPNext rounds the Rounded Total to this value.

To make the printed total match your rounding policy:

  1. In Global Defaults, select or clear Disable Rounded Total to match your policy.
  2. Open the Currency of the invoice and check Smallest Currency Fraction Value. Set it to the real smallest unit of the currency.
  3. Reload the invoice and print it again.

Changes to these settings apply to new calculations. ERPNext does not recalculate submitted invoices or their ledger entries.

The amount in words still differs from the total ​

Compare Grand Total, Rounded Total, and In Words on the invoice. Then check the print format: a custom print format can show a different field. If the numbers on the form are correct, the problem is in the print format, not in the ledger.