From 5dc8387ad932d5d06e988f86a88f9f4d1301ff87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 8 Mar 2023 14:48:51 +0800 Subject: [PATCH] Fixed the incorrect account in the __add_current_period method of the AccountCollector class in the "accounting.report.reports.balance_sheet" module. --- src/accounting/report/reports/balance_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounting/report/reports/balance_sheet.py b/src/accounting/report/reports/balance_sheet.py index 21d9dd1..e1d5c1a 100644 --- a/src/accounting/report/reports/balance_sheet.py +++ b/src/accounting/report/reports/balance_sheet.py @@ -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.