Skip to content

Commit

Permalink
Merge pull request #2764 from frappe/mergify/bp/version-15-hotfix/pr-…
Browse files Browse the repository at this point in the history
…2763

fix: Only fetch active shift assignment locations for geofencing (backport #2763)
  • Loading branch information
asmitahase authored Feb 5, 2025
2 parents 69a8b8c + 92099b5 commit c00d069
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 c00d069

Please sign in to comment.