commit | 1cf71d96b18d6383166ed29accee69a364dcda4a | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Fri Sep 28 17:06:57 2018 +0530 |
committer | GitHub <noreply@github.com> | Fri Sep 28 17:06:57 2018 +0530 |
tree | d375c8f13ccd73b25968c3704eacab0afc513e6c | |
parent | c2dd9ab77847bf745648b4236f7f7c681aaa05e3 [diff] | |
parent | ea0ef955397e5dae88497159a42f5bc8292d76c5 [diff] |
Merge pull request #15530 from rohitwaghchaure/consolidated_report_issue_v11 [Fix] Consolidated Financial Statement report
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 b6d4875..2d13469 100644 --- a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py +++ b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py
@@ -238,6 +238,9 @@ for d in reversed(accounts): if d.parent_account: account = d.parent_account.split('-')[0].strip() + if not accounts_by_name.get(account): + continue + for company in companies: accounts_by_name[account][company] = \ accounts_by_name[account].get(company, 0.0) + d.get(company, 0.0)