Audience: Admins, Implementation, QA, engineers. Every field on the leave-policy, perk, and holiday forms → meaning → backend → effect.
Companion: how-to.md, business.md, technical.md.
Verbatim from the live forms (2026-07-17) + leave entities. The leave-request approval chain is configured in Settings → Approval Workflows under the Time & Attendance category — see requests/configuration §1.
requests/policies/create/leaves (3-step wizard)Create/edit is a 3-step wizard (frontend people/requests/policies/leave-policy/create-edit/): Policy → Members → Balances. It saves in one shot on Finish via POST /admin/requests/{add|update}_leavepolicy (see api-reference §3).
PolicyTab)
Leave policy form
| Field | Meaning | Backend |
|---|---|---|
| Name | Leave type name (Annual, Sick, Maternity…) | LeavePolicy.Description |
| Description | Free text | — |
| Choose a group | Who it applies to — Paybands / Paygrades / Custom Groups | targeting → LeavePolicyItemPersonContainer |
| Can employees apply? | Yes/No — can staff self-request | IsEmployeeEnabled |
| Is this a paid leave? | Yes/No — paid vs unpaid (unpaid pro-rates payroll) | IsPaid |
| Is this policy gender specific? | Yes/No — reveals a Gender dropdown (e.g. Female for maternity) | GenderId |
| Choose perks for this policy | Attach perks (e.g. Hotel Accommodation) | LeavePolicyPerk → §2 |
PaygradesTab): per-member entitlementOne entry per selected payband / paygrade / custom group (LeavePolicyItem). "Use same setting for all selected paybands" copies one config across all. Fields per member:
| Field (live label) | Meaning | Backend |
|---|---|---|
| Total days per year | Entitlement days for this member | WorkingDays |
| Earned (e.g. "Throughout the year in pay periods") | Accrual type — granted up-front vs earned over the year | AccrualTypeId (lookup AccrualType) |
| Will employees go through a waiting period…? | Yes → days after hire before accruing | WaitingPeriod |
| Is there a limit to days carried over year to year? | Yes → rollover cap + reset date | HasRolloverLimit, RolloverDays, RolloverDate |
| Notice Period | Required advance notice (days) | NoticePeriod |
Different members can have different entitlements under the same policy — one policy item each.
BalancesTab): starting balances per employeeThe final step seeds/edits each existing employee's opening balance. Employees for the selected members are loaded via POST /admin/employees/getleavepolicyitememployees, whose response carries each person's current balance — and that value pre-fills the row. So the "Working days" table lists Employee / Payband / a Days input already set to the live balance; each attached perk gets its own panel (pre-filled from perkBalance, submitted with leave_perk_id → EmployeeLeavePerkBalance). A header textbox sets the same value for all at once.
On Finish these are folded into the save payload as starting_balances: [{ person_id, starting_balance, leave_perk_id? }] per member and written to EmployeeLeaveBalance — the bulk, config-time balance writer (contrast the ad-hoc profile "Edit Balance").
Because rows are pre-filled with the current balance, re-saving a policy without touching the table is effectively a no-op for those balances — it round-trips the same numbers. It is not a blind reset.
⚠️ Overwrite risk (only when you change a value): the UI warns "Be careful not to overwrite employees' unused balances from previous paybands." The sharp edge is the "same value for all" header textbox — it stamps one number across every employee, clobbering their individual (accrued/used) balances. Editing a single row only affects that row. See runbook §1a.
⚠️ Naming quirk: the Step-3 per-employee input is keyed working_days in the form but submitted as starting_balance — not the Step-2 working_days (annual entitlement).
A perk is an extra granted with a leave (allowance, accommodation). Catalogue = LeavePerk; attach to a policy via the "Choose perks for this policy" field (LeavePolicyPerk); each employee accrues an EmployeeLeavePerkBalance. Perks can pay a payroll allowance alongside the leave.