Merge pull request #57218 from frappe/mergify/bp/version-15-hotfix/pr-57198

fix: strip account number when building account name in COA importer (backport #57198)
This commit is contained in:
Shllokkk
2026-07-17 11:38:48 +05:30
committed by GitHub

View File

@@ -215,6 +215,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()