mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
fix: Wrong filter (#22375)
This commit is contained in:
@@ -86,6 +86,7 @@ def get_conditions(filters):
|
||||
|
||||
if filters.get("period"):
|
||||
conditions.append("month(start_date) = '%s' " % (filters["period"]))
|
||||
conditions.append("year(start_date) = '%s' " % (frappe.utils.getdate().year))
|
||||
|
||||
return " and ".join(conditions)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user