From fe1c7669b61539499aa9be0c5e5430de4aea049d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 18 Mar 2023 19:16:10 +0800 Subject: [PATCH] Added owner's equity accounts (base code starts with "3") when calculating the change of owner's equity in the specified period. --- 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 ea0bd17..d29c9a3 100644 --- a/src/accounting/report/reports/balance_sheet.py +++ b/src/accounting/report/reports/balance_sheet.py @@ -213,7 +213,7 @@ class AccountCollector: :return: The balance. """ conditions.extend([sa.not_(Account.base_code.startswith(x)) - for x in {"1", "2"}]) + for x in {"1", "2", "3"}]) balance_func: sa.Function = sa.func.sum(sa.case( (JournalEntry.is_debit, JournalEntry.amount), else_=-JournalEntry.amount))