Merge pull request #38820 from ruthra-kumar/ignore_err_in_statements

refactor: ignore ERR journals in Statment of Accounts
This commit is contained in:
ruthra kumar
2023-12-18 15:55:11 +05:30
committed by GitHub
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')")