mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
Update chart_of_accounts.py
This commit is contained in:
@@ -165,7 +165,7 @@ def build_account_tree(tree, parent, all_accounts):
|
|||||||
tree[child.account_name] = {}
|
tree[child.account_name] = {}
|
||||||
|
|
||||||
# assign account_type and root_type
|
# assign account_type and root_type
|
||||||
if child.account_type:
|
if child.account_number:
|
||||||
tree[child.account_name]["account_number"] = child.account_number
|
tree[child.account_name]["account_number"] = child.account_number
|
||||||
if child.account_type:
|
if child.account_type:
|
||||||
tree[child.account_name]["account_type"] = child.account_type
|
tree[child.account_name]["account_type"] = child.account_type
|
||||||
@@ -175,4 +175,4 @@ def build_account_tree(tree, parent, all_accounts):
|
|||||||
tree[child.account_name]["root_type"] = child.root_type
|
tree[child.account_name]["root_type"] = child.root_type
|
||||||
|
|
||||||
# call recursively to build a subtree for current account
|
# call recursively to build a subtree for current account
|
||||||
build_account_tree(tree[child.account_name], child, all_accounts)
|
build_account_tree(tree[child.account_name], child, all_accounts)
|
||||||
|
|||||||
Reference in New Issue
Block a user