Removed the rows with zero balance from the income statement.
This commit is contained in:
parent
7df4051452
commit
7a5b3b78fc
@ -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] \
|
||||
|
Loading…
Reference in New Issue
Block a user