.. include:: /Includes.rst.txt .. _feature-1791274864: ================================================== Feature: Take leave by the hour and set its payout ================================================== Description =========== A leave type declares ``hourlyRequestsAllowed``, allowed only when it counts working days and, for a type with a balance, while all its policies use hours, and an ``encashmentRule`` (``never``, ``onExitOnly``, ``aboveStatutoryMinimum`` or ``any``), which vacation never sets to ``any`` and a type without balance leaves at ``never``. The leave settings gain ``compensatoryLeaveTypeId`` (a compensatory leave type of the company), ``compensatoryValidityDays`` (1 to 730, default 90) and ``hourlyRequestStepSeconds`` (300, 900, 1800 or 3600, default 900). Impact ====== The migration adds two columns to ``leave_type`` and three to ``leave_settings``. An update of the settings that omits the new fields keeps their values. .. index:: API, Frontend, Database, package:adsum-leave