From 314dd16aa39f1481290d78c80e831a824fc2f9aa Mon Sep 17 00:00:00 2001 From: Shllokkk Date: Thu, 16 Jul 2026 00:17:35 +0530 Subject: [PATCH] fix: strip account number when building account name in COA importer (cherry picked from commit cbe406ee2afd0711fb2ca0ab287cdfe14386ef21) --- .../chart_of_accounts_importer/chart_of_accounts_importer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py b/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py index 9c4f2f8fd49..eeaa5abfc6d 100644 --- a/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py +++ b/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py @@ -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()