添加功能
This commit is contained in:
@@ -382,10 +382,10 @@ class HrAttendanceDetail(models.Model):
|
||||
if late_delta > 10:
|
||||
is_late_card = True
|
||||
|
||||
# 迟到超过60分钟标记为旷工
|
||||
if late_delta > 60:
|
||||
absenteeism_card = True
|
||||
is_late_card = False
|
||||
# 迟到超过60分钟标记为旷工
|
||||
if late_delta > 60:
|
||||
absenteeism_card = True
|
||||
is_late_card = False
|
||||
else:
|
||||
if check_in > start_datetime:
|
||||
is_late_card = True
|
||||
|
||||
Reference in New Issue
Block a user