Human resources
Leave management
Leave types are tenant-defined; balances accrue per employee per year; requests flow through approval and post against the balance. The system is built around the layered resolution "contract entitlement → leave-type default" so different employees can have different annual allowances cleanly.
Defining leave types
Leave types include Annual / Vacation, Sick, Wedding, Death, Birth, etc. — whatever your policy needs. Each carries a default days-per-year that applies across all employees who don't have a contract-level override. Different leave types have separate balances; consuming Wedding leave doesn't reduce Vacation leave.
Request flow
From My leave (or Leave for managers), submit a request with type, dates, and optional note. Requests sit in pending until a manager with leave.approve approves or rejects. On approval, the days deduct from the employee's balance for the affected year. Rejection leaves the balance untouched and notifies the employee with a reason.
Per-contract entitlement overrides
Contracts have a Leave entitlements section where you override the default days-per-year for any leave type — typical for negotiated annual-vacation amounts. Resolution at request time goes contract entitlement → leave-type default. Balances respect whichever resolution applies on the request's date.