This commit is contained in:
李鹏宇
2026-04-13 11:57:20 +08:00
@@ -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