diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index a59100f22..63796ce0d 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -198,6 +198,7 @@ class YuthonVacationReports(models.Model): valid_attendances = [ att for att in attendances if (att.check_in or att.check_out) # 有有效打卡 + and att.shift_name != '休息' ] if valid_attendances: actual_attendance += 1