refactor: ignore ERR journals in Statment of Accounts

This commit is contained in:
ruthra kumar
2023-12-18 13:39:26 +05:30
parent 0cf9ff0a04
commit 39ef75e2d0
3 changed files with 26 additions and 1 deletions

View File

@@ -238,6 +238,9 @@ def get_conditions(filters):
if filters.get("voucher_no"):
conditions.append("voucher_no=%(voucher_no)s")
if filters.get("voucher_no_not_in"):
conditions.append("voucher_no not in %(voucher_no_not_in)s")
if filters.get("group_by") == "Group by Party" and not filters.get("party_type"):
conditions.append("party_type in ('Customer', 'Supplier')")