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:
依瑪貓 2023-03-09 11:55:12 +08:00
parent df53f06094
commit 965df82c1c

View File

@ -235,9 +235,9 @@ class AccountCollector:
= {x.account.code: x for x in self.accounts}
if code in account_balance_by_code:
balance: ReportAccount = account_balance_by_code[code]
balance.url = url
if amount is not None:
balance.amount = balance.amount + amount
balance.url = url
return
# Add a new balance
if amount is None: