.. include:: /Includes.rst.txt .. _feature-1791277164: ================================================ Feature: Let carried leave expire after a period ================================================ Description =========== A leave policy declares ``carryOverExpiry``: ``none``, ``fixedDate`` with a month and day of the new leave year, or ``afterYearStart`` with a number of days or months, by default three months, 31 March of a calendar year and 30 June of a year from April. A rule without the value its kind needs is refused with 422 when the policy is saved, so no run can meet it later. ``carryOver.expiresOn`` now reports the resulting day; sent alone it still sets a fixed date. Impact ====== The migration adds three ``carry_over_expiry_*`` columns to ``leave_policy``. Existing policies keep their fixed expiry date, or none. .. index:: API, Frontend, Database, package:adsum-leave