.. include:: /Includes.rst.txt .. _feature-1791799624: ======================================================= Feature: Rules of country packages are named everywhere ======================================================= Description =========== A working-time rule that a country package adds is named by its own text wherever violations appear. For offices in Germany, :guilabel:`Eight-hour average exceeded` now shows in the list of violations, the report and the dashboard like :guilabel:`Too long without a break`, and the e-mail and in-app notification of a broken rule name such a rule instead of saying that "a rule was broken". The filter :guilabel:`Rule` of the team's violations offers the rules of the installed country packages besides adsum's own, read from the new endpoint ``GET /api/v1/working-time-violation-rules``. Impact ====== A country package declares the codes of its rules by implementing ``ViolationRuleCodes`` of the attendance package. A notification parameter whose name ends in ``Text`` holds a translation key, which the mail and the screens render in the reader's language. .. index:: API, Frontend, package:adsum-core, package:adsum-attendance, package:adsum-country-de