[Attendance-Tool] Filter employees based on date of joining (#15262)
This commit is contained in:
parent
75ae844d70
commit
68348d4130
@ -16,7 +16,7 @@ class EmployeeAttendanceTool(Document):
|
|||||||
def get_employees(date, department = None, branch = None, company = None):
|
def get_employees(date, department = None, branch = None, company = None):
|
||||||
attendance_not_marked = []
|
attendance_not_marked = []
|
||||||
attendance_marked = []
|
attendance_marked = []
|
||||||
filters = {"status": "Active"}
|
filters = {"status": "Active", "date_of_joining": ["<=", date]}
|
||||||
if department != "All":
|
if department != "All":
|
||||||
filters["department"] = department
|
filters["department"] = department
|
||||||
if branch != "All":
|
if branch != "All":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user