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:
Aditya Hase 2019-07-12 21:38:59 +05:30 committed by GitHub
commit 7be89f232c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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