Merge pull request #39193 from GursheenK/coa-from-existing-company

fix: account currency from existing company COA
This commit is contained in:
Nabin Hait 2024-01-08 21:46:52 +05:30 committed by GitHub
commit 96530b9c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,6 +231,8 @@ def build_account_tree(tree, parent, all_accounts):
tree[child.account_name]["account_type"] = child.account_type
if child.tax_rate:
tree[child.account_name]["tax_rate"] = child.tax_rate
if child.account_currency:
tree[child.account_name]["account_currency"] = child.account_currency
if not parent:
tree[child.account_name]["root_type"] = child.root_type