@@ -133,8 +133,10 @@ class AppletAttendance(Controller):
|
||||
limit=1
|
||||
)
|
||||
sch_check_in_time, sch_check_out_time = request.env(user=SUPERUSER_ID)['hr.attendance.detail'].normal_clock_in_time(template, current_date)
|
||||
start_time_str = sch_check_in_time.strftime('%H:%M')
|
||||
end_time_str = sch_check_out_time.strftime('%H:%M')
|
||||
start_time = sch_check_in_time + timedelta(hours=8)
|
||||
end_time = sch_check_out_time + timedelta(hours=8)
|
||||
start_time_str = start_time.strftime('%H:%M')
|
||||
end_time_str = end_time.strftime('%H:%M')
|
||||
is_early_card = attendance_id.is_early_card
|
||||
is_late_card = attendance_id.is_late_card
|
||||
check_in_status = '缺卡' if not check_in else ('迟到' if is_late_card else '')
|
||||
|
||||
Reference in New Issue
Block a user