From 92099b5810d3a73a9f637019edf1dc4023209ed1 Mon Sep 17 00:00:00 2001 From: Asmita Hase Date: Sun, 2 Feb 2025 18:10:35 +0530 Subject: [PATCH] fix: only fetch active shift assigment locations for geofencing (cherry picked from commit 9660419a63bc8f805647f6d3e02fd504903be1e5) --- hrms/hr/doctype/employee_checkin/employee_checkin.py | 1 + 1 file changed, 1 insertion(+) 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",