fix(Company): Allow Equity type account in unrealised exchange gain/loss account (backport #41740) (#41747)

fix(Company): Allow Equity type account in unrealised exchange gain/loss account (#41740)

(cherry picked from commit d30c797d24)

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
This commit is contained in:
mergify[bot]
2024-06-03 18:38:25 +05:30
committed by GitHub
parent 806ff5bc19
commit 460ee5d542

View File

@@ -251,7 +251,10 @@ erpnext.company.setup_queries = function (frm) {
["discount_allowed_account", { root_type: "Expense" }],
["discount_received_account", { root_type: "Income" }],
["exchange_gain_loss_account", { root_type: ["in", ["Expense", "Income"]] }],
["unrealized_exchange_gain_loss_account", { root_type: ["in", ["Expense", "Income"]] }],
[
"unrealized_exchange_gain_loss_account",
{ root_type: ["in", ["Expense", "Income", "Equity", "Liability"]] },
],
[
"accumulated_depreciation_account",
{ root_type: "Asset", account_type: "Accumulated Depreciation" },