fix(auto attendance): Prevent marking attendance for the ongoing shift

This commit is contained in:
karthikeyan5 2019-07-12 15:57:37 +05:30
parent 397013ec92
commit 625ec43fc9

View File

@ -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")