.. include:: /Includes.rst.txt .. _feature-1791279426: ====================================== Feature: Show how a leave year adds up ====================================== Description =========== ``getMyLeaveBalances`` and ``listLeaveBalances`` return ``figures`` for the leave year that contains the date: ``broughtForward``, ``entitled``, ``used``, ``deducted``, ``expired``, ``remaining``, ``pending`` and ``planned``, in days or seconds. All come from the same entries as the balance, and ``remaining`` always equals ``broughtForward + entitled - used - deducted - expired`` and the balance. The balance cards and the list of balances show them, and the leave figures for reports use them. Impact ====== The report ``leave-balances`` now shows the figures of the leave year of its date: on 1 January the entitlement is the new year's, no longer the sum of all years. .. index:: API, Frontend, package:adsum-leave, package:adsum-reporting