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

This commit is contained in:
Nabin Hait
2024-06-03 18:33:48 +05:30
committed by GitHub
parent 2be8e0dce0
commit d30c797d24

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" },