diff --git a/src/accounting/report/reports/balance_sheet.py b/src/accounting/report/reports/balance_sheet.py index 20e378f..4e0a011 100644 --- a/src/accounting/report/reports/balance_sheet.py +++ b/src/accounting/report/reports/balance_sheet.py @@ -137,6 +137,7 @@ class AccountCollector: .join(JournalEntry).join(Account)\ .filter(*conditions)\ .group_by(Account.id, Account.base_code, Account.no)\ + .having(balance_func != 0)\ .order_by(Account.base_code, Account.no) account_balances: list[sa.Row] \ = db.session.execute(select_balance).all()