refactor: make use of date filters on ignore filterss

(cherry picked from commit 03f3ab522f)
This commit is contained in:
ruthra kumar
2024-08-05 09:58:50 +05:30
committed by Mergify
parent ac763f8c19
commit 1da744dc4d

View File

@@ -228,6 +228,7 @@ def get_conditions(filters):
"company": filters.get("company"),
"docstatus": 1,
"voucher_type": ("in", ["Exchange Rate Revaluation", "Exchange Gain Or Loss"]),
"posting_date": ["between", [filters.get("from_date"), filters.get("to_date")]],
},
as_list=True,
)
@@ -242,6 +243,7 @@ def get_conditions(filters):
"docstatus": 1,
"voucher_type": ("in", ["Credit Note", "Debit Note"]),
"is_system_generated": 1,
"posting_date": ["between", [filters.get("from_date"), filters.get("to_date")]],
},
as_list=True,
)