---
title: "Feature: Take leave by the hour"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1791285707@main"
source: "Changelog/1.0.0/Feature-1791285707-TakeLeaveByTheHour.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Take leave by the hour {#feature-1791285707}

## Description {#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 {#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.
