From 82c2c8c299ef07b546cfa578c9d27cfee4597f32 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Tue, 17 Dec 2024 15:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_wechat/models/hr_attendance_detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_wechat/models/hr_attendance_detail.py b/yuthon_wechat/models/hr_attendance_detail.py index 32f4992a7..b686abddf 100644 --- a/yuthon_wechat/models/hr_attendance_detail.py +++ b/yuthon_wechat/models/hr_attendance_detail.py @@ -254,7 +254,7 @@ class HrAttendanceDetail(models.Model): min_hour_from = attendance_obj.employee_id.resource_id.calendar_id.attendance_ids[0].hour_from min_hour = int(min_hour_from) min_minute = int(min_hour_from * 10 % min_hour_from) - max_hour_to = checkin_time.employee_id.resource_id.calendar_id.attendance_ids[-1].hour_to + max_hour_to = attendance_obj.employee_id.resource_id.calendar_id.attendance_ids[-1].hour_to max_hour = int(max_hour_to) max_minute = int(max_hour_to * 10 % max_hour_to) if attendance_obj.is_approval: