diff --git a/src/accounting/report/reports/income_statement.py b/src/accounting/report/reports/income_statement.py index 8d34105..ccaa360 100644 --- a/src/accounting/report/reports/income_statement.py +++ b/src/accounting/report/reports/income_statement.py @@ -269,6 +269,7 @@ class IncomeStatement(BaseReport): .join(JournalEntry).join(Account)\ .filter(*conditions)\ .group_by(Account.id)\ + .having(balance_func != 0)\ .order_by(Account.base_code, Account.no) balances: list[sa.Row] = db.session.execute(select_balances).all() accounts: dict[int, Account] \