From 89d00ee4a229c4ac8352173338cf4be87bd3b453 Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Thu, 7 Aug 2025 01:37:33 +0530 Subject: [PATCH] fix: nonetype error on applying presentation_currency filter on financial statements and trial balance report (cherry picked from commit d7e22de44c23582a606144a258d82d2931c8c157) --- erpnext/accounts/report/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/utils.py b/erpnext/accounts/report/utils.py index 92c305e6cd8..337beaa701b 100644 --- a/erpnext/accounts/report/utils.py +++ b/erpnext/accounts/report/utils.py @@ -118,7 +118,7 @@ def convert_to_presentation_currency(gl_entries, currency_info, filters=None): len(account_currencies) == 1 and account_currency == presentation_currency and not exchange_gain_or_loss - ) and not filters.get("show_amount_in_company_currency"): + ) and not (filters and filters.get("show_amount_in_company_currency")): entry["debit"] = debit_in_account_currency entry["credit"] = credit_in_account_currency else: