refactor: posting date is not considered for ignore filters in GL

(cherry picked from commit c930f8ba9d)
This commit is contained in:
ruthra kumar
2024-08-06 10:36:26 +05:30
committed by Mergify
parent 5c5349ed16
commit f4ba879203

View File

@@ -228,7 +228,6 @@ 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,
)
@@ -243,7 +242,6 @@ 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,
)