mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 09:35:03 +00:00
fix: add validation for account key
(cherry picked from commit b6da350c20)
This commit is contained in:
@@ -101,7 +101,7 @@ def convert_to_presentation_currency(gl_entries, currency_info, filters=None):
|
|||||||
account_currencies = list(set(entry["account_currency"] for entry in gl_entries))
|
account_currencies = list(set(entry["account_currency"] for entry in gl_entries))
|
||||||
exchange_gain_or_loss = False
|
exchange_gain_or_loss = False
|
||||||
|
|
||||||
if filters:
|
if filters and isinstance(filters.get("account"), list):
|
||||||
account_filter = filters.get("account")
|
account_filter = filters.get("account")
|
||||||
gain_loss_account = frappe.db.get_value("Company", filters.company, "exchange_gain_loss_account")
|
gain_loss_account = frappe.db.get_value("Company", filters.company, "exchange_gain_loss_account")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user