---
title: "Feature: Penalty account of an employee"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1791529705@main"
source: "Changelog/1.0.0/Feature-1791529705-PenaltyAccountOfAnEmployee.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Penalty account of an employee {#feature-1791529705}

## Description {#description}

HR records penalties of an employee (`createEmployeePenalty`): an amount in minor units of the company currency, a
leave deduction, or both, each only of a kind the company enabled. The employee, managers in scope and HR read them
(`listEmployeePenalties`). Packages record penalties through the same service with the records they are for, such
as a late arrival; a record belongs to at most one penalty, and recording it again is answered with that penalty.
`PenaltyRecorded` is published once with the penalty ID as idempotency key, and the employee is told through
`employee.penaltyRecorded`.

A leave deduction is checked by the leave package before the penalty is stored; without it, a leave deduction is
refused.

## Impact {#impact}

Two new tables (one migration). Payroll and leave book from `PenaltyRecorded` once they consume it.
