@@ -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
|
||||
|
||||
Reference in New Issue
Block a user