!4897 添加功能

Merge pull request !4897 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-09-04 11:44:32 +00:00
committed by Gitee
@@ -244,6 +244,9 @@ class HrAttendanceDetail(models.Model):
('current_data', '=', current_data),
],
)
if check_in_time and check_out_time and check_in_time == check_out_time:
check_out_time = None
# 获取正常上下班时间
sch_check_in_time, sch_check_out_time = self.normal_clock_in_time(template, current_data)
is_early_card, is_late_card, is_abnormal, is_warning, absenteeism_card, is_no_card = self.state_judgment(employee, check_in_time, check_out_time, sch_check_in_time, sch_check_out_time, current_data, is_manual)