[Attendance-Tool] Filter employees based on date of joining (#15262)

This commit is contained in:
Shreya Shah 2018-08-30 17:25:58 +05:30 committed by Nabin Hait
parent 75ae844d70
commit 68348d4130

View File

@ -16,7 +16,7 @@ class EmployeeAttendanceTool(Document):
def get_employees(date, department = None, branch = None, company = None):
attendance_not_marked = []
attendance_marked = []
filters = {"status": "Active"}
filters = {"status": "Active", "date_of_joining": ["<=", date]}
if department != "All":
filters["department"] = department
if branch != "All":