mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
refactor: make use of date filters on ignore filterss
This commit is contained in:
@@ -230,6 +230,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,
|
||||
)
|
||||
@@ -244,6 +245,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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user