fix(payment entry): fetch gain loss account from company boot

(cherry picked from commit 8e54be7808)
This commit is contained in:
ravibharathi656
2025-12-11 16:17:26 +05:30
committed by Mergify
parent 552cb5c528
commit c01e40da3c
2 changed files with 4 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ def boot_session(bootinfo):
bootinfo.docs += frappe.db.sql(
"""select name, default_currency, cost_center, default_selling_terms, default_buying_terms,
default_letter_head, default_bank_account, enable_perpetual_inventory, country from `tabCompany`""",
default_letter_head, default_bank_account, enable_perpetual_inventory, country, exchange_gain_loss_account from `tabCompany`""",
as_dict=1,
update={"doctype": ":Company"},
)