.. include:: /Includes.rst.txt .. _feature-1791366290: ======================================= Feature: Recording disciplinary actions ======================================= Description =========== HR records a disciplinary action for one or several employees with ``POST /api/v1/disciplinary-actions``. Each employee gets an action of their own, so no action names other recipients. An action has a type, a description of at most 2000 characters, an optional letter (PDF or image of at most 10 MB) and a period: whole local days from a start date, or seconds from a local start time, counted on the timeline, so a night with a clock change lasts as long as it does. Warnings may expire for managers with ``expiresOn``. HR changes and withdraws actions; a withdrawn action stays in the history. The employee is told through the notification ``employee.disciplinaryActionRecorded`` in their language, without the description. Impact ====== Run the database migrations. Letters are stored below ``var/storage/disciplinary-letters`` (``app.disciplinary_letter_directory``). .. index:: Backend, Database, API, package:adsum-core