.. include:: /Includes.rst.txt .. _feature-1791276599: ======================================== Feature: Start the leave year on any day ======================================== Description =========== A leave policy declares ``leaveYearStart`` as month and day (``MM-DD``, default ``01-01``, never ``02-29``). Grants, pro-rating, monthly accruals, carry-over, the forecast and the entitlement recalculation follow the leave year that starts on that day: under a year from 1 April the grant is valid to 31 March, a hire in October gets six months, and New Year books nothing. All policies of a type share the leave year; a differing one is rejected with 422 naming the existing policy. Impact ====== The migration adds ``leave_policy.leave_year_start_month`` and ``leave_year_start_day``; existing policies keep the calendar year. The daily runs also accrue the leave year named after the previous year while it lasts, and a carry-over waits until its leave year has ended. Months of a leave year are counted from its start in the entitlement breakdown. .. index:: API, Frontend, Database, package:adsum-leave