When recording or approving a request, the system checks:
- Date overlap: if the employee has another request on the same dates, it is not allowed.
- Notice period: if the leave type has a notice period (say 7 days ahead), it is enforced.
- Maximum consecutive days: if a cap is set.
- Minimum service: Hajj leave, for example, needs 24 months of service.
- Gender: maternity leave is female employees only.
- Sufficient balance: if the balance is short, approval is refused — unless the leave type is "deduct from salary", in which case a negative balance is allowed and is deducted as unpaid leave in the payroll calculation.
- Approving is a separate permission from creating the request.