[Fix] Consolidated Financial Statement report (#14537)

This commit is contained in:
rohitwaghchaure 2018-06-15 18:03:50 +05:30 committed by Nabin Hait
parent 77a45b43aa
commit 83a2612a18

View File

@ -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)