From 68348d413091b1587519f031dc37349f4091ea6c Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Thu, 30 Aug 2018 17:25:58 +0530 Subject: [PATCH] [Attendance-Tool] Filter employees based on date of joining (#15262) --- .../employee_attendance_tool/employee_attendance_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/employee_attendance_tool/employee_attendance_tool.py b/erpnext/hr/doctype/employee_attendance_tool/employee_attendance_tool.py index 6ddb722c1b..ea5f4bdeca 100644 --- a/erpnext/hr/doctype/employee_attendance_tool/employee_attendance_tool.py +++ b/erpnext/hr/doctype/employee_attendance_tool/employee_attendance_tool.py @@ -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":