Merge pull request !887 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2024-12-23 02:49:18 +00:00
committed by Gitee
+1 -1
View File
@@ -667,7 +667,7 @@ class HrAttendanceDetail(models.Model):
min_hour_from = self.env['resource.calendar'].search([])[0].attendance_ids[0].hour_from
min_hour = int(min_hour_from)
min_minute = int(min_hour_from * 10 % min_hour_from)
max_hour_to = self.env['resource.calendar'].search([])[-1].attendance_ids[0].hour_to
max_hour_to = self.env['resource.calendar'].search([])[0].attendance_ids[-1].hour_to
max_hour = int(max_hour_to)
max_minute = int(max_hour_to * 10 % max_hour_to)
# 判断打卡情况排除未打卡情况