Split shared costs with cost center allocation ​

A Cost Center Allocation splits the amounts posted to one main cost center across several other cost centers by percentage. Users select only the main cost center on the document. When ERPNext posts the ledger entries, it replaces the main cost center with the receiving cost centers.

Example: a software bill of 10,000 each month serves two teams. You post it to Shared Services and allocate 60% to Retail Operations and 40% to Online Sales.

Cost center on the ledgerPercentageAmount
Retail Operations60%6,000
Online Sales40%4,000

The document stays one document, and its total, taxes, and supplier balance do not change. Only the cost center of the income or expense entries is split.

INFO

Older ERPNext versions had a Distributed Cost Center option on the cost center. Cost Center Allocation replaces it.

Prerequisites ​

  • The main cost center and the receiving cost centers exist in the same company. See Set up cost centers.
  • The percentages have a clear business basis, such as headcount, floor area, revenue, or usage.

Create an allocation ​

  1. Open the Cost Center Allocation list and select Add Cost Center Allocation.
  2. Select the Main Cost Center and the Company.
  3. Enter Valid From: the first posting date that the rule applies to.
  4. In Cost Center Allocation Percentages, add each receiving Cost Center and its Percentage (%). The total must be 100.
  5. Save and submit. ERPNext uses only submitted allocations.

Rules:

  • The main cost center cannot be a receiving cost center in the same allocation.
  • A cost center that receives in one allocation cannot be the main cost center of another, and the reverse.
  • Valid From must be after the last ledger entry posted to the main cost center.

Check the result ​

  1. Submit a document with the main cost center.
  2. Select View > Accounting Ledger. The amount is split across the receiving cost centers, and the parts add up to the original.
  3. Run the Profit and Loss report with a cost center filter to compare the teams.

Change the percentages ​

Create a new allocation for the same main cost center with a later Valid From date. ERPNext uses the allocation that applies on each posting date. When a new allocation starts, ERPNext tells you that the previous one applies only up to the day before. Do not change old documents to apply new percentages.

Troubleshooting ​

Total percentage against cost centers should be 100 ​

Check that each row has a cost center and a percentage, and that the total is exactly 100.

The amount was not split ​

Check that the allocation is submitted, that Valid From is on or before the posting date, and that the document uses the exact main cost center.

Valid From must be after ... ​

Ledger entries already exist for the main cost center on or after that date. Use a later date.