diff --git a/hrms/hr/doctype/employee_checkin/employee_checkin.py b/hrms/hr/doctype/employee_checkin/employee_checkin.py index ec3792dd1a..0a4f59d924 100644 --- a/hrms/hr/doctype/employee_checkin/employee_checkin.py +++ b/hrms/hr/doctype/employee_checkin/employee_checkin.py @@ -90,6 +90,7 @@ def validate_distance_from_shift_location(self): "start_date": ["<=", self.time], "shift_location": ["is", "set"], "docstatus": 1, + "status": "Active", }, or_filters=[["end_date", ">=", self.time], ["end_date", "is", "not set"]], pluck="shift_location",