diff --git a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py index 858b0cb72..bf26e75da 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -573,6 +573,10 @@ class HrAttendanceDetail(models.Model): if late_delta > 60: absenteeism_card = True is_late_card = False + if not check_out: + is_no_card = True + absenteeism_card = True + is_abnormal = True # 早退判断 if check_out and end_datetime: early_delta = (end_datetime - check_out).total_seconds() / 60