From 83a2612a188ac047258020b03e8e515522e290c0 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 15 Jun 2018 18:03:50 +0530 Subject: [PATCH] [Fix] Consolidated Financial Statement report (#14537) --- .../consolidated_financial_statement.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 380e3a2fbd..b90a919de1 100644 --- a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py +++ b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py @@ -193,6 +193,8 @@ def get_data(companies, root_type, balance_must_be, fiscal_year, filters=None, i accounts, accounts_by_name = get_account_heads(root_type, companies, filters) + if not accounts: return [] + company_currency = get_company_currency(filters) gl_entries_by_account = {} @@ -246,7 +248,7 @@ def get_account_heads(root_type, companies, filters): accounts = get_accounts(root_type, filters) if not accounts: - return None + return None, None accounts, accounts_by_name, parent_children_map = filter_accounts(accounts)