Applied the is_nominal pseudo property to the __get_brought_forward_entry method of the EntryCollector of the ledger.

This commit is contained in:
依瑪貓 2023-03-18 19:21:33 +08:00
parent cabe02f7d0
commit 700c179774

View File

@ -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),