From 7d264696f3da3d2345588fa391aece975ec82b09 Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Mon, 8 Jan 2024 13:07:42 +0530 Subject: [PATCH] fix: account currency from existing company coa --- .../doctype/account/chart_of_accounts/chart_of_accounts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py b/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py index 9f56455990..05ff2a178a 100644 --- a/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py +++ b/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py @@ -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