fix: strip account number when building account name in COA importer

(cherry picked from commit cbe406ee2a)
This commit is contained in:
Shllokkk
2026-07-16 00:17:35 +05:30
committed by Mergify
parent c055de2da6
commit e1ebfa7163

View File

@@ -218,6 +218,7 @@ def build_forest(data):
for row in data:
account_name, parent_account, account_number, parent_account_number = row[0:4]
if account_number:
account_number = cstr(account_number).strip()
account_name = f"{account_number} - {account_name}"
if parent_account_number:
parent_account_number = cstr(parent_account_number).strip()