mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
[Fix] Consolidated Financial Statement report (#14537)
This commit is contained in:
committed by
Nabin Hait
parent
77a45b43aa
commit
83a2612a18
@@ -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,
|
accounts, accounts_by_name = get_account_heads(root_type,
|
||||||
companies, filters)
|
companies, filters)
|
||||||
|
|
||||||
|
if not accounts: return []
|
||||||
|
|
||||||
company_currency = get_company_currency(filters)
|
company_currency = get_company_currency(filters)
|
||||||
|
|
||||||
gl_entries_by_account = {}
|
gl_entries_by_account = {}
|
||||||
@@ -246,7 +248,7 @@ def get_account_heads(root_type, companies, filters):
|
|||||||
accounts = get_accounts(root_type, filters)
|
accounts = get_accounts(root_type, filters)
|
||||||
|
|
||||||
if not accounts:
|
if not accounts:
|
||||||
return None
|
return None, None
|
||||||
|
|
||||||
accounts, accounts_by_name, parent_children_map = filter_accounts(accounts)
|
accounts, accounts_by_name, parent_children_map = filter_accounts(accounts)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user