Merge pull request !12856 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2026-09-17 03:00:53 +00:00
committed by Gitee
+1 -1
View File
@@ -232,7 +232,7 @@ class HrLeave(models.Model):
if holiday.request_hour_from and holiday.request_hour_to:
start_hour = float(holiday.request_hour_from)
end_hour = float(holiday.request_hour_to)
if start_hour == 9 and end_hour == 12:
if start_hour == 9 and end_hour in [13, 14]:
holiday.number_of_hours = 4
else:
hour = end_hour - start_hour