mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
fix: TypeError while concatenating account number and name in COA (#22886)
This commit is contained in:
@@ -225,7 +225,7 @@ def build_tree_from_json(chart_template, chart_data=None):
|
|||||||
|
|
||||||
account['parent_account'] = parent
|
account['parent_account'] = parent
|
||||||
account['expandable'] = True if identify_is_group(child) else False
|
account['expandable'] = True if identify_is_group(child) else False
|
||||||
account['value'] = (child.get('account_number') + ' - ' + account_name) \
|
account['value'] = (cstr(child.get('account_number')).strip() + ' - ' + account_name) \
|
||||||
if child.get('account_number') else account_name
|
if child.get('account_number') else account_name
|
||||||
accounts.append(account)
|
accounts.append(account)
|
||||||
_import_accounts(child, account['value'])
|
_import_accounts(child, account['value'])
|
||||||
|
|||||||
Reference in New Issue
Block a user