.. include:: /Includes.rst.txt .. _bugfix-1791275916: ========================================================= Bugfix: Grant leave to a hire of the current year at once ========================================================= Description =========== An employee hired during the year had no balance of yearly policies until the next year-start run, because the recalculation after a hire only adjusts years that already have a grant. A hire in the current year now runs the year-start grant for the new employee alone, pro-rated from the entry date, under every policy that applies, for example one scoped to the employment type. Regression tests prove that a new type is offered at once and that a policy without scope grants every employee. Impact ====== Each such hire records a leave run for the one employee. Hires backdated into earlier years get no grant; their years come from opening balances. .. index:: package:adsum-leave