@@ -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
|
||||
|
||||
Reference in New Issue
Block a user