Found out the correct procedure in another discussion; Have to create a Server Script, Script Type: Scheduler Event, Event Frequency: Daily.
Below example marks the Attendance till Yesterday Mid-Night
Example:
s = frappe.get_doc('Shift Type','Morning')
s.last_sync_of_checkin = frappe.utils.add_to_date(frappe.utils.today(), days=-1, as_string=True) + ' 23:59:59'
s.save()
1 Like