diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index 21067eed3..be60b40e4 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -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