.. include:: /Includes.rst.txt .. _feature-1791774981: ========================================================= Feature: A violation names the law it was checked against ========================================================= 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 :guilabel:`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 ====== ``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. .. index:: API, Database, Frontend, package:adsum-attendance, package:adsum-country-de, package:adsum-core