fix: Wrong filter (#22375)
This commit is contained in:
parent
0093b3b27c
commit
7672166ce3
@ -86,6 +86,7 @@ def get_conditions(filters):
|
|||||||
|
|
||||||
if filters.get("period"):
|
if filters.get("period"):
|
||||||
conditions.append("month(start_date) = '%s' " % (filters["period"]))
|
conditions.append("month(start_date) = '%s' " % (filters["period"]))
|
||||||
|
conditions.append("year(start_date) = '%s' " % (frappe.utils.getdate().year))
|
||||||
|
|
||||||
return " and ".join(conditions)
|
return " and ".join(conditions)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user