Hi daani,
Sorry to have taken so long to responde, I’ve been off this for a time and now I’m kind of getting back to it.
I think I’ve found a way to work with what erpnext is giving us and also accommodate the Spanish chart of accounts to fit in. Here I show some screenshots and then I’ll explain:
An Example:
In Spain we have (among many groups, subroups and accounts, with their numbers):
- Group 5 CUENTAS FINANCIERAS
- Subgroup 55 OTRAS CUENTAS NO BANCARIAS
- 551 - Cuenta corriente con socios y administradores → ASSET
559 - Derivados financieros a corto plazo → LIABILITY
So I decided to reestructure the Spanish chart of accounts to duplicate those groups and subgroups that have different root type inside (example: ASSET and LIABILITY in the same subtree) by adding a sufix to the number of the group or subgroup, such as 5-ACT (for ASSET) or 5-PAS (for LIABILITY), and so on… for groups and subgroups it is ok to have it like this, then I respect the account number as it is in the Spanish chart of accounts. So I have a nice tree with the main root types and branches (main groups) and subranches (subgroups) of the tree may be the same but with different numbers: 5-ACT vs 5-PAS. So accounting reports calculations built in ERPNEXT works and the tree makes kind of sense to find things, while keeping the numbers of accounts as they should be (modifying only the numbers of groups by adding ACT, PAS,… )
Here some screenshots (ASSET in green, LIABILITY in red)
Main groups, notice ACT, PAS for ASSET and LIABILITY (PASIVO in Spanish), grou 5 has both kinds, so it is duplicated but with 5-ACT and 5-PAS
Now we go into both branches 5-ACT and 5-PAS, I keep giving the -ACT under the ACITVO root (ASSET) to each subgroup that I know have the 2 types of accounts, then the account number remains same as the official chart of accounts but under the group that it belongs.:
In the next picture, we can see what happens when group 5 goes under the LIABILITY root type (PASIVO in Spanish).
We can see, for instance subgroup 55, it has -ACT and PAS, but root accounts still the official number.
I’m just getting started, I expect this is loyal to ERPNEXT treatment of accounting and at the same time it helps organize the chart tree of accounts accordingly to Spanish accounting, the account numbers are loyal to it, it only adds in the group and subgroups a suffix to the number, but I think that’s ok, Same works for the other main roots, INCOME, EXPENSE and EQUITY.
I hope this helps and if anyone has a different approach to it, I’m interested in learning it.
Best regards to all.