Skip to content

Commit

Permalink
Merge pull request #23288 from barry86m/patch-4
Browse files Browse the repository at this point in the history
fix: consolidated financial statement sums values into wrong parent
  • Loading branch information
rohitwaghchaure authored Sep 8, 2020
2 parents b828e2f + 5b381ac commit 7296a75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def accumulate_values_into_parents(accounts, accounts_by_name, companies):
"""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

Expand Down

0 comments on commit 7296a75

Please sign in to comment.