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:
commit
7be89f232c
@ -22,7 +22,7 @@ class ShiftType(Document):
|
|||||||
'skip_auto_attendance':'0',
|
'skip_auto_attendance':'0',
|
||||||
'attendance':('is', 'not set'),
|
'attendance':('is', 'not set'),
|
||||||
'time':('>=', self.process_attendance_after),
|
'time':('>=', self.process_attendance_after),
|
||||||
'shift_actual_start': ('<', self.last_sync_of_checkin),
|
'shift_actual_end': ('<', self.last_sync_of_checkin),
|
||||||
'shift': self.name
|
'shift': self.name
|
||||||
}
|
}
|
||||||
logs = frappe.db.get_list('Employee Checkin', fields="*", filters=filters, order_by="employee,time")
|
logs = frappe.db.get_list('Employee Checkin', fields="*", filters=filters, order_by="employee,time")
|
||||||
|
Loading…
Reference in New Issue
Block a user