Set up accounting dimensions
An accounting dimension adds a business tag, such as department, branch, or product line, to each ledger entry. The account says what happened, for example a sale or an advertising cost. The dimension says which segment it belongs to. One chart of accounts can then answer many management questions.
ERPNext has two dimensions built in: Cost Center and Project. Create an accounting dimension when you need another one.
Prerequisites
- You have the Accounts Manager or System Manager role.
- The values of the dimension exist as documents of a DocType. For example, a Department dimension uses Department documents. For a new concept such as Product Line, create a custom DocType with the values first.
- Enable Accounting Dimensions is selected in Accounts Settings.
Create an accounting dimension
- Open the Accounting Dimension list and select Add Accounting Dimension.
- Select the Reference Document Type, for example Department. Its documents become the values of the dimension. You cannot change it later.
- Check the Dimension Name. It is the label on documents and reports.
- Save. ERPNext adds the dimension field to accounting documents and reports in the background.
Set company defaults and mandatory rules
In Dimension Defaults, add a row for each company:
| Field | Effect |
|---|---|
| Company | The company of the row |
| Default Dimension | The value that ERPNext fills on new documents |
| Mandatory For Profit and Loss Account | Income and expense rows must have a value |
| Mandatory For Balance Sheet | Asset, liability, and equity rows must have a value |
| Automatically post balancing accounting entry | Posts an entry to the Offsetting Account so that each dimension value balances on its own |
| Offsetting Account | The asset or liability account for those balancing entries |
Test mandatory rules with sample invoices, payments, and journals before users depend on them. Turn on balancing entries only after your accountant approves the treatment.
Use the dimension on documents
The dimension appears in the Accounting Dimensions section of Sales Invoices, Purchase Invoices, Payment Entries, Journal Entries, and other accounting documents. On documents with Item or account rows, you can set a different value on each row.
After you submit, select View > Accounting Ledger to check that the value reached each ledger entry.
To control which values go with which accounts, see Restrict dimension values by account.
Filter reports by the dimension
The dimension becomes a filter of the General Ledger, the Profit and Loss report, the Balance Sheet, and other reports. Reports include only entries that carry the value.
A new dimension does not tag older entries. Decide how to handle comparisons with earlier periods before you start.
Disable a dimension
Open the dimension and select Disable. Existing values stay on posted entries, so old reports keep their tags. Disable a dimension instead of deleting it. Reload the browser if the field still shows.
Troubleshooting
The new dimension is not on documents
ERPNext creates the fields in a background job. Wait, then reload the browser. If it is still missing, ask an administrator to check failed background jobs.
A document says the dimension is mandatory
Set the value on every row that posts to an account of the mandatory type.
A filtered report is empty
Check the company, dates, and filter. Entries posted before the dimension existed, or without a value, do not show.