From 700c179774a4c3d34579eb44ec7af5a69d172084 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:21:33 +0800 Subject: [PATCH] Applied the is_nominal pseudo property to the __get_brought_forward_entry method of the EntryCollector of the ledger. --- src/accounting/report/reports/ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounting/report/reports/ledger.py b/src/accounting/report/reports/ledger.py index 270029d..d525f15 100644 --- a/src/accounting/report/reports/ledger.py +++ b/src/accounting/report/reports/ledger.py @@ -111,7 +111,7 @@ class EntryCollector: """ if self.__period.start is None: return None - if self.__account.base_code[0] not in {"1", "2", "3"}: + if self.__account.is_nominal: return None balance_func: sa.Function = sa.func.sum(sa.case( (JournalEntry.is_debit, JournalEntry.amount),