mirror of
https://github.com/frappe/erpnext.git
synced 2026-07-31 00:04:37 +00:00
fix: strip account number when building account name in COA importer
(cherry picked from commit cbe406ee2a)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user