mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 16:15:02 +00:00
fix(auto attendance): Prevent marking attendance for the ongoi… (#18298)
fix(auto attendance): Prevent marking attendance for the ongoing shift
This commit is contained in:
@@ -22,7 +22,7 @@ class ShiftType(Document):
|
||||
'skip_auto_attendance':'0',
|
||||
'attendance':('is', 'not set'),
|
||||
'time':('>=', self.process_attendance_after),
|
||||
'shift_actual_start': ('<', self.last_sync_of_checkin),
|
||||
'shift_actual_end': ('<', self.last_sync_of_checkin),
|
||||
'shift': self.name
|
||||
}
|
||||
logs = frappe.db.get_list('Employee Checkin', fields="*", filters=filters, order_by="employee,time")
|
||||
|
||||
Reference in New Issue
Block a user