Feature: Pay out leave within its rule
Description
HR pays out leave on the new Encashment tab of a person's balance, or through
create (POST /). get tells how
much the type's encashment allows on a date: nothing under never, the remainder at exit under
on, the part above the statutory minimum during the employment under above, and
the balance under any. The payout is booked as an encashment entry that consumes the balance in the usual
order, counts as deducted in the leave figures and publishes Leave with the quantity and unit but no
amount of money; payroll values it. reverse gives the days back.
Impact
The new table leave_ is created by a migration. HR never pays out their own leave, and an employee
reads only their own encashable quantity.