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

# Feature: Penalties deduct leave {#feature-1791533307}

## Description {#description}

Where a leave policy allows it (`penaltyDeductionAllowed`, off by default) and the company uses leave
deductions as penalties, a penalty of the core penalty account deducts leave: optionally from the carried-over leave
first, never beyond the balance, and for statutory vacation never into the statutory minimum. A refused deduction is
answered with 422 and its reason (`penaltyNotAllowed`, `insufficientBalance`, `statutoryMinimum`,
`ineligible`, `unitMismatch`), and no penalty is stored. The deduction is a ledger entry of the new type
`penalty`; withdrawing the penalty gives exactly what it took back. The penalty dialog of the profile offers the
leave deduction, and the policy form the new switch.

## Impact {#impact}

The migration adds `leave_policy.penalty_deduction_allowed` and the table `leave_penalty_booking`. Ledger
lists and filters know the entry and source type `penalty`. Penalties imported by the migration book nothing.
