diff --git a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py index cee7822286c..78baf4484d5 100644 --- a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py +++ b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py @@ -656,7 +656,11 @@ def set_gl_entries_by_account( query = query.where(Criterion.all(additional_conditions)) gl_entries = query.run(as_dict=True) - if filters and filters.get("presentation_currency") != d.default_currency: + if ( + filters + and filters.get("presentation_currency") + and filters.get("presentation_currency") != d.default_currency + ): currency_info["company"] = d.name currency_info["company_currency"] = d.default_currency convert_to_presentation_currency(gl_entries, currency_info)