Feature: Penalties deduct leave
Description
Where a leave policy allows it (penalty, off by default) and the company uses leave
deductions as penalties, a penalty of the core penalty account deducts leave: optionally from the carried-over leave
first, never beyond the balance, and for statutory vacation never into the statutory minimum. A refused deduction is
answered with 422 and its reason (penalty, insufficient, statutory,
ineligible, unit), and no penalty is stored. The deduction is a ledger entry of the new type
penalty; withdrawing the penalty gives exactly what it took back. The penalty dialog of the profile offers the
leave deduction, and the policy form the new switch.
Impact
The migration adds leave_ and the table leave_. Ledger
lists and filters know the entry and source type penalty. Penalties imported by the migration book nothing.