Skip to content

Commit

Permalink
fix: only fetch active shift assigment locations for geofencing
Browse files Browse the repository at this point in the history
  • Loading branch information
asmitahase committed Feb 5, 2025
1 parent 5715966 commit 9660419
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hrms/hr/doctype/employee_checkin/employee_checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9660419

Please sign in to comment.