.. include:: /Includes.rst.txt .. _feature-1791281951: =============================================== Feature: Settle leave when an exit is scheduled =============================================== Description =========== Scheduling or moving an exit now recalculates the exit year's entitlement at once, gives back approved leave after the exit date and publishes ``LeaveRemainderAtExitCalculated`` per leave type with the remaining quantity and unit at the exit date. ``getLeaveRemainderAtExit`` (``GET /employees/{id}/leave-remainder-at-exit``) shows the remainder to the employee and HR, and the leave balance page shows it above the balances. A negative remainder is reported and never booked or claimed back. Impact ====== Before, the entitlement was reduced and leave after the exit given back only once the exit date had passed. A cancelled exit recalculates the entitlement again; leave given back stays cancelled. .. index:: API, Frontend, package:adsum-leave