Fixed the incorrect account in the __add_current_period method of the AccountCollector class in the "accounting.report.reports.balance_sheet" module.

This commit is contained in:
依瑪貓 2023-03-08 14:48:51 +08:00
parent 26b70bb625
commit 5dc8387ad9

View File

@ -209,7 +209,7 @@ class AccountCollector:
amount: Decimal | None = self.__query_currency_period()
url: str = url_for("accounting.report.income-statement",
currency=self.__currency, period=self.__period)
self.__add_owner_s_equity(Account.ACCUMULATED_CHANGE, amount, url)
self.__add_owner_s_equity(Account.NET_CHANGE, amount, url)
def __query_currency_period(self) -> Decimal | None:
"""Queries and returns the net income or loss for current period.