.. include:: /Includes.rst.txt .. _feature-1791252636: ================================= Feature: Name the kind of a break ================================= Description =========== HR keeps break types per company under :guilabel:`Administration > Break types`: a code, a name in English and German, and an active flag. A break type is never deleted; a deactivated one keeps its breaks and takes no new ones. An employee chooses a break type from the menu beside the break button of the clock; the button itself still starts a break without a type. ``createPunch`` takes the optional ``breakTypeId`` on a ``breakStart`` and refuses an inactive type or a type of another company with 422. The attendance day shows ``breakSecondsByType`` and the tab :guilabel:`Breaks by type`. Break types are informational: compliance still counts every break by its length. The punch source ``import`` is reserved for the spreadsheet import; like every source, it is never accepted in the body of ``createPunch``. Impact ====== The new operations ``listBreakTypes``, ``createBreakType``, ``getBreakType`` and ``updateBreakType``. A punch carries ``breakTypeId``. Run the database migrations. .. index:: package:adsum-attendance