Skip to content

Commit

Permalink
fix(Company): Allow Equity type account in unrealised exchange gain/l…
Browse files Browse the repository at this point in the history
…oss account (frappe#41740)
  • Loading branch information
nabinhait committed Jun 3, 2024
1 parent 2be8e0d commit d30c797
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/setup/doctype/company/company.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down

0 comments on commit d30c797

Please sign in to comment.