commit | 5b381ac5b782030d0bc9aff0777c27d440efa199 | [log] [tgz] |
---|---|---|
author | barry86m <65860880+barry86m@users.noreply.github.com> | Tue Sep 08 00:27:57 2020 +0100 |
committer | GitHub <noreply@github.com> | Tue Sep 08 00:27:57 2020 +0100 |
tree | 015f79decebcdff4269fdea9088ea556afce557d | |
parent | b828e2fcf4131f6127f76e4c1715c24014b3dc6b [diff] |
fix: consolidated financial statement sums values into wrong parent fix proposed by Andriesvn in bug report closes #22180
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 219871b..d011689 100644 --- a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py +++ b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py
@@ -256,7 +256,7 @@ """accumulate children's values in parent accounts""" for d in reversed(accounts): if d.parent_account: - account = d.parent_account.split('-')[0].strip() + account = d.parent_account.split(' - ')[0].strip() if not accounts_by_name.get(account): continue