Feature: Take leave by the hour
Description
For a leave type with hourly, create and preview take a time
window start and end (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
hourly, 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_ 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. Leave and Leave
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 (hourly otherwise).
Approval rules now also weigh requests under an hour-based policy, as their share of the scheduled days.