fix: Wrong filter (#22375)

This commit is contained in:
Anurag Mishra
2020-06-22 17:22:05 +05:30
committed by GitHub
parent 0093b3b27c
commit 7672166ce3

View File

@@ -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)