Revised the ledger not to show the accumulated balance of the nominal accounts. The accumulated balance does not make sense for nominal accounts.

This commit is contained in:
2023-03-18 19:34:03 +08:00
parent 5f7fc0b8e8
commit 8c10f1e96a
5 changed files with 23 additions and 7 deletions

View File

@ -178,6 +178,8 @@ class EntryCollector:
:return: None.
"""
if self.__account.is_nominal:
return None
balance: Decimal = 0 if self.brought_forward is None \
else self.brought_forward.balance
for entry in self.entries: