Feature: Take leave by the hour 

Description 

For a leave type with hourlyRequestsAllowed, createLeaveRequest and previewLeaveRequest take a time window startAt and endAt (local date-times of the company) instead of dates and parts. The window belongs to the working day whose planned working window contains its start, for a night shift the day before; it keeps the step hourlyRequestStepSeconds, is not longer than the day's scheduled time and is charged in seconds (part hours). Windows of an employee never overlap, which five-minute slots in leave_request_time_slot keep also under concurrent submissions; they never share a date with a full day, and beside a half day they fit into the scheduled time. Approval rules weigh a window as its share of the day. LeaveApproved and LeaveCancelled carry the window, and the working-day calendar lowers the day's target by its seconds. The request form offers By the hour, and the lists and the request show the times.

Impact 

A type that keeps a balance is taken by the hour only under a policy in hours (hourlyNotSupported otherwise). Approval rules now also weigh requests under an hour-based policy, as their share of the scheduled days.