Technical

ERPNext Chart of Accounts Setup: Templates, Cost Centres and Openings

How to set up the chart of accounts for a new ERPNext company: choosing a template, account types, cost centres, opening balances, and the setup mistakes that are hard to reverse once transactions exist.

Kalvyai Engineering · · 10 min read

ERPNext Chart of Accounts Setup: Templates, Cost Centres and Openings (cover)
On this page

Most ERPNext accounting problems we are asked to fix were not caused by a bad transaction. They were caused by a decision made in the first hour of setup: the wrong company currency, a bank ledger with no account type, or opening balances posted against income accounts. Once real transactions exist, many of these choices are locked or expensive to change.

This post walks through setting up the chart of accounts for a new company in ERPNext, in the order we do it on client projects. Field labels and menu locations can differ slightly between versions, so check them against the version you run.

Decide these before you create the company

Some settings are easy to enter and hard to change later. Write them down and get the finance owner to confirm them before anyone clicks Save.

  • Company name and abbreviation. ERPNext appends the abbreviation to account and cost centre names, for example Debtors - ACME. It shows up everywhere, in reports, imports and integrations.
  • Default currency. This is the company's base currency. It cannot be changed once the company has transactions.
  • Country. It decides which country-specific chart templates are offered and affects tax setup.
  • Fiscal year. Create the fiscal year that contains your opening date, not just the go-live date.
  • Go-live date and opening date. The opening date is usually the last day before go-live, often the last day of the previous fiscal year.
  • Perpetual inventory. If you hold stock, decide whether stock movements post to the general ledger in real time. Turning this on or off after stock transactions exist creates reconciliation work.

Pick a starting template

When you create a company, ERPNext asks how to build the chart of accounts. The usual options are:

  1. Standard template. A generic tree with sensible groups (Application of Funds, Source of Funds, Income, Expenses and so on).
  2. Standard with Numbers. The same structure with account numbers, useful if your accountants work by code.
  3. A country template, where one exists for your country. Check which country templates your version offers in the template list.
  4. Existing company. Copies the chart of another company on the same site. This is the best choice for groups with several legal entities that should report the same way.

If none of these match your accountant's chart, use the Chart of Accounts Importer instead of hand-editing hundreds of accounts.

Importing your own chart

The importer only works on a company that has no accounting transactions yet, so do this first.

  1. Open Chart of Accounts Importer from the search bar.
  2. Select the company and download the template file.
  3. Fill in your accounts, keeping the parent-child structure intact.
  4. Upload the file and use the preview to check the tree before you import.
  5. Import, then open the chart tree and spot-check the root types and account types.

A few rows of a filled-in file might look like this. Use the column headers from the template you downloaded, not these.

Plain text
Account Name,Parent Account,Account Number,Is Group,Account Type,Root Type
Current Assets,,1100,1,,Asset
Bank Accounts,Current Assets,1110,1,,Asset
HDFC Current Account,Bank Accounts,1111,0,Bank,Asset
Accounts Receivable,Current Assets,1200,1,,Asset
Debtors,Accounts Receivable,1210,0,Receivable,Asset
Indirect Expenses,,6000,1,,Expense
Office Rent,Indirect Expenses,6100,0,,Expense

How the account tree works

Every account sits under one of five root types: Asset, Liability, Equity, Income and Expense. Asset, Liability and Equity accounts appear on the Balance Sheet. Income and Expense accounts appear on the Profit and Loss statement.

Each account is either a group or a ledger:

  • Group accounts only hold other accounts. You cannot post transactions to them.
  • Ledger accounts receive the actual postings.

Other fields worth setting deliberately:

  • Account currency. Leave it as the company currency unless the account genuinely holds foreign currency, such as a USD bank account or a foreign supplier's payable. Once a ledger has entries, its currency is locked.
  • Account number. Optional, but if you use numbers, use them consistently from day one.
  • Frozen. Blocks new postings to an account. Useful for retired accounts you want to keep for history.

Account types that change behaviour

The Account Type field is not a label. ERPNext uses it to decide which accounts appear in which fields and what validations apply. Leaving it blank on the wrong account causes problems that only show up weeks later.

The ones we check on every setup:

Account Type

What it affects

Bank

Bank accounts used for payments and bank reconciliation

Cash

Cash-in-hand accounts used in payments

Receivable

Customer balances; postings need a party, and aging reports read from these

Payable

Supplier balances; same party requirement

Stock

Warehouse inventory accounts under perpetual inventory

Cost of Goods Sold

Expense side of stock deliveries

Stock Received But Not Billed

Holding account between purchase receipt and purchase invoice

Stock Adjustment

Differences from stock reconciliation and valuation changes

Fixed Asset, Depreciation, Accumulated Depreciation

Asset purchase and depreciation postings

Tax

Tax ledgers used in tax templates

Round Off

Small rounding differences on documents

Temporary

The balancing account for opening entries

Two rules of thumb:

  1. Every real bank account should be its own ledger with type Bank. Do not post multiple bank accounts to one ledger.
  2. Only use Receivable and Payable for party balances. A loan to a director or a deposit with a landlord usually belongs in a normal asset or liability ledger unless you want to track it by party.

Set the company defaults

After the tree is in place, open the Company record and fill in the default accounts. ERPNext uses these whenever a document does not specify an account. The ones that matter most:

  • Default Receivable Account and Default Payable Account
  • Default Cash Account and Default Bank Account
  • Default Income Account and Default Expense Account
  • Round Off Account and Round Off Cost Center
  • Exchange Gain/Loss Account, if you trade in foreign currency
  • Write Off Account
  • Default Inventory Account, Stock Adjustment Account and Stock Received But Not Billed, if you use perpetual inventory

Exact labels and their grouping on the form vary by version. If a default is missing, you will usually find out when the first invoice fails to submit, which is a better outcome than it posting to the wrong account.

Cost centres

ERPNext requires a cost centre on every Profit and Loss posting. When you create a company, it creates a root cost centre named after the company and a ledger called Main - ABBR, which is used as the default.

Design cost centres around how management reads the P&L, not around the org chart:

  • Branches or locations, if each location has its own P&L.
  • Business lines, such as Retail, Wholesale and Services.
  • Departments, only if department heads actually own budgets.

Keep it shallow. Two levels (a few groups, each with a handful of ledgers) is enough for most companies. Budgets in ERPNext are set against cost centres, so if you plan to use budget controls, build the cost centres that the budget owners need.

If you need to analyse by more than one axis, for example by branch and by sales channel, do not try to encode both in cost centre names. Use Accounting Dimensions for the second axis. And if shared costs need splitting across cost centres, look at Cost Center Allocation.

One thing to plan for: adding a cost centre later does not retag old transactions. If management wants a branch-level P&L from the start of the year, that cost centre must exist before the first transaction.

Opening balances

Opening balances bring your legacy trial balance into ERPNext as of the opening date. The method depends on what the balance represents.

  1. Confirm the fiscal year that contains the opening date exists.
  2. Get a closed trial balance from the old system as of the opening date, signed off by the accountant.
  3. Customer and supplier balances: use the Opening Invoice Creation Tool. Enter each unpaid invoice with its outstanding amount and due date, so receivable and payable aging works from day one. One lump sum per customer breaks aging and makes payment matching harder.
  4. Stock: use Stock Reconciliation with the purpose set to Opening Stock, with quantities and valuation rates per item and warehouse.
  5. Fixed assets: create Asset records marked as existing assets, with the gross purchase amount and accumulated depreciation to date, so future depreciation continues correctly.
  6. Everything else (bank balances, loans, tax liabilities, equity, accruals): post a Journal Entry with Is Opening set to Yes, dated on the opening date.
  7. Prior years' profit goes into an equity account such as retained earnings or reserves, not into income or expense accounts. ERPNext rejects Profit and Loss accounts in opening entries.

The tools in steps 3 to 5 post their other side to the Temporary Opening account. Your opening journal entries should do the same. When all openings are in, Temporary Opening must net to zero. If it does not, something is missing or entered twice.

Going live mid-year

If you go live in the middle of a fiscal year and need a full-year P&L in ERPNext, the year-to-date income and expense balances cannot go in as opening entries. Post them as a normal journal entry (Is Opening = No) dated before go-live, with the matching cost centres. Agree this with your accountant first. Going live at the start of a fiscal year avoids the problem entirely.

Checking the result

Run the Trial Balance for the opening date and compare it line by line with the legacy one. A quick query from the database console confirms Temporary Opening is clear:

SQL
SELECT account,
       SUM(debit) - SUM(credit) AS balance
FROM `tabGL Entry`
WHERE company = 'Acme Trading Pvt Ltd'
  AND is_cancelled = 0
  AND account LIKE 'Temporary Opening%'
GROUP BY account;

A balance of zero means your openings are complete and balanced against each other.

Mistakes that are hard to undo

These are the ones we see most often when we are called in after go-live.

Wrong company currency

Once transactions exist, the company currency is fixed. The usual fix is a new company and a re-migration.

Wrong account currency on a ledger

A foreign currency supplier booked against an INR payable, or the reverse. After entries exist, the currency cannot be changed. You create a new ledger, move balances with journal entries and freeze the old one.

Group and ledger confusion

A ledger with entries cannot be turned into a group, and a group with children cannot become a ledger. Teams often post to a ledger like Expenses and later want sub-accounts under it. Plan the groups up front.

Accounts under the wrong root type

An advance from a customer sitting under Assets, or a security deposit under Expenses, will misstate both the Balance Sheet and the P&L. Moving accounts with history is restricted, so check root types during import, not after.

Missing account types

Bank accounts without the Bank type, or stock accounts without the Stock type, cause payments, reconciliation and stock postings to behave unexpectedly. Setting the type later does not fix documents already posted with the wrong defaults.

Openings posted wrongly

Lump-sum party openings, openings dated after go-live, or Temporary Opening left with a balance all produce a trial balance that never ties back to the old system. Cancelling and reposting is possible but tedious once later transactions depend on those balances.

Changing perpetual inventory mid-stream

Switching perpetual inventory after stock transactions means the stock ledger and the general ledger no longer agree, and you have to reconcile the difference manually.

Deleting and renaming

Accounts with GL entries cannot be deleted. They can be renamed, and in some cases merged into another account of the same type, but merging is permanent. Test it on a copy of the site first.

Use a test company

The cheapest way to avoid all of this is to set up a test company with the same chart, post a week of realistic transactions and review the reports with your accountant. The Company form has a Delete Transactions option that clears a company's transactions so you can start again. Use it only on test companies, and never on a site with live data you need to keep.

Pre-go-live checklist

  • Company currency, abbreviation and fiscal year confirmed in writing
  • Chart imported and spot-checked for root types and account types
  • Every bank account is its own ledger with type Bank
  • Company default accounts filled in
  • Cost centres match how management reads the P&L
  • Openings entered per invoice, per item and per asset
  • Temporary Opening nets to zero
  • Trial balance matches the legacy system on the opening date

How Kalvyai can help

We set up and migrate ERPNext accounting for companies moving from spreadsheets, Tally and other systems, including chart design, cost centres, opening balance migration and reconciliation against the legacy trial balance. You can read more about our ERPNext work at https://kalvyai.com/erpnext, and our ERPNext and Odoo apps are listed at https://store.kalvyai.com.

If you are planning a new ERPNext company or untangling one that went live with the wrong setup, talk to us.

Share this article

  • ERPNext
  • Chart of Accounts
  • Accounting
  • Cost Centres
  • Opening Balances
  • ERP Implementation

Kalvyai Engineering · Engineering team

The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.

Comments

No comments yet. Questions and corrections are welcome.

Rate this post or leave a comment

Your rating (optional)
Not rated

Comments appear after an editor approves them. See our privacy notice.

Read next

ERPNext Bank Reconciliation: Import, Match and Clear Transactions (cover)Technical
Kalvyai EngineeringERPNext

ERPNext Bank Reconciliation: Import, Match and Clear Transactions

A practical guide to bank reconciliation in ERPNext: setting up bank accounts, importing statements, matching Payment Entries and Journal Entries in the Bank Reconciliation Tool, and dealing with transactions that don't match.

8 min read

Indian GST in ERPNext with India Compliance: A Setup Guide (cover)Technical
Kalvyai EngineeringERPNext

Indian GST in ERPNext with India Compliance: A Setup Guide

How to set up Indian GST in ERPNext with the India Compliance app: GSTIN, GST accounts, tax templates, HSN codes, e-invoicing, e-way bills, and the GSTR-1 and GSTR-3B reports.

9 min read

Newsletter

Get new guides in your inbox.

Practical notes on Odoo, ERPNext, Shopify and AI agents, written by the engineers who build them. No spam, and you can ask to stop at any time.

Prefer a feed? Subscribe by RSS. We use your email only to send new articles. See our privacy policy.