Audience: an engineer joining the leave domain. Companion: technical.md, surface-map.md.
There's no LeaveService. The leave request lifecycle lives in RequestService (leave = type 1); this subsystem is a rich entity model — policies, per-paygrade entitlement, balances (+ audit log), perks, holidays, absences. Learn the entities and how a balance changes, and you understand the module.
Day 1 — Concepts. business.md + glossary.md. In the product: create a leave policy, request leave, run the Leave Balance Report.
Day 2 — Entity model. technical.md §2: LeavePolicy → LeavePolicyItem (per-paygrade) → EmployeeLeaveBalance (+ Log); perks; holidays; absence.
Day 3 — Balance mechanics. technical.md §3: grant/accrue → consume on approval → rollover. Trace the deduction in RequestService.ReviewEmployeeRequest (leave branch).
Day 4 — Payroll links. technical.md §4: paid vs unpaid, holidays excluded from working days, absences reducing DaysWorked.
Day 5 — Config & edges. Policy/perk/holiday forms (configuration); accrual/rollover ⚠️ VERIFY items; runbook.
| You want… | Go to |
|---|---|
| Leave request lifecycle | Implementations/RequestService.cs (leave = type 1) |
| Holidays | HolidayService.cs, Admin/Paid_HolidaysService.cs |
| Entities | Domain/Entities/Tenant/ (LeavePolicy*, EmployeeLeaveBalance*, LeavePerk*, EmployeeAbsence*, PublicHoliday, AccrualType) |
| Absence status enum | Domain/Models/TimeTrackingModel.cs |
| Frontend | web-app/src/pages/dashboard/people/requests/policies/leave-policy/**, approval/absence/** |
TimeTrackingModel).