Update chart_of_accounts.py

This commit is contained in:
Nabin Hait
2018-04-20 11:00:20 +05:30
committed by GitHub
parent cba3570cf6
commit c36524ec54

View File

@@ -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