---
title: "Feature: A violation names the law it was checked against"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1791774981@main"
source: "Changelog/1.0.0/Feature-1791774981-AViolationNamesTheLawItWasCheckedAgainst.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: A violation names the law it was checked against {#feature-1791774981}

## Description {#description}

A working-time violation records the version of the law of the employee's office it was checked against, such as
`DE.ArbZG.4.v1`, with the link to the official text. The violation lists show it in the new column
**Law (version)**. A day is checked against the version in force on that day, also when it is corrected later,
so a new limit does not make old days wrong. Where a country package sets a daily maximum or a minimum rest, the
stricter of the law's and the company's value applies; the violation names the law only where the law's limit decided.

## Impact {#impact}

`WorkingTimeViolation` in `GET /api/v1/working-time-violations` and `GET /api/v1/attendance-days/{id}` has the
new property `law` (`{version, source}` or null). A listener of `WorkingDayEvaluated` may pass `lawVersion`
and `lawSource` to `addViolation()`. Violations stored before keep no law until their day is calculated again.
