Merge pull request #23288 from barry86m/patch-4
fix: consolidated financial statement sums values into wrong parent
This commit is contained in:
commit
7296a75b1f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user