Merge duplicate accounts ​

When two accounts in a chart of accounts stand for the same thing, merge them. ERPNext moves every link and posting from the source account to the target account, then deletes the source account.

For example, the company has SaaS Subscription Expenses and Software Subscription Expenses for the same costs. You keep Software Subscription Expenses and merge the other into it.

WARNING

There is no "unmerge" action. Take a backup before you merge accounts on a production site.

Prerequisites ​

Both accounts must have the same:

  • Is Group (both groups or both ledgers);
  • Root Type;
  • Company;
  • Currency.

Also:

  • Compare the purpose, parent, account type, tax use, and defaults of both accounts. If one of them must stay visible in reports, do not merge.
  • Run the General Ledger and the Trial Balance for both accounts, to compare afterwards.
  • Stop accounting work on the site. ERPNext blocks the merge if a GL entry was updated in the last 5 minutes.

To rename one account, do not merge. Select Actions > Update Account Name / Number instead.

Merge the accounts ​

  1. Open the source account: the account that will disappear.
  2. Select Actions > Merge Account.
  3. In the Merge with Existing Account dialog, enter the full name of the target account, with the company abbreviation, for example Software Subscription Expenses - NET.
  4. Check the direction: the open account is removed, and the account in the dialog stays.
  5. Select Merge.

Check the result ​

  1. Search for the source account. It no longer exists.
  2. Open the target account and select View > General Ledger. The postings of both accounts are there.
  3. Run the Trial Balance and the financial statements. The company totals must be the same as before the merge.

Posted amounts, dates, and parties do not change. Only the account that groups them changes.

Troubleshooting ​

Merging is only possible if following properties are same in both records ​

Is Group, Root Type, Company, or Account Currency differ between the two accounts. Do not change these only to pass the check.

This operation is not allowed while system is actively being used ​

A GL entry was updated less than 5 minutes ago. Wait 5 minutes without accounting activity, and try again.

The target account is not found ​

Enter the full account name with the company abbreviation. Check that you have write permission on both accounts.