Fixed the logic in the __add_owner_s_equity method of the AccountCollector of the balance sheet, that when there is an existing balance, only set the URL when there's amount to be added.
This commit is contained in:
parent
df53f06094
commit
965df82c1c
@ -235,9 +235,9 @@ class AccountCollector:
|
|||||||
= {x.account.code: x for x in self.accounts}
|
= {x.account.code: x for x in self.accounts}
|
||||||
if code in account_balance_by_code:
|
if code in account_balance_by_code:
|
||||||
balance: ReportAccount = account_balance_by_code[code]
|
balance: ReportAccount = account_balance_by_code[code]
|
||||||
balance.url = url
|
|
||||||
if amount is not None:
|
if amount is not None:
|
||||||
balance.amount = balance.amount + amount
|
balance.amount = balance.amount + amount
|
||||||
|
balance.url = url
|
||||||
return
|
return
|
||||||
# Add a new balance
|
# Add a new balance
|
||||||
if amount is None:
|
if amount is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user