Purpose: the complete inventory of the Requests module — the umbrella that powers Leave, Loan, Salary Advance, Document, Exit, Redeployment and Suspension requests via one generic engine + a configurable approval-workflow chain. Built inventory-first: ~101 frontend components (88 under people/requests/, 13 approval queues) + the employee raise/ESS flows, and ~21,200 lines of backend led by RequestService.cs (13,676 lines).
Legend: ✅ documented · 🟡 partial · ⚪ not yet.
business.md/technical.mdalready cover the engine + per-type detail (verified 2026-07-17).
| Service | Lines |
|---|---|
RequestService.cs |
13,676 |
Admin/AdminRequestService.cs |
3,657 |
Admin/Approval_WorkflowsService.cs |
429 |
HolidayService.cs |
473 |
ApprovalWorkflowService.cs |
269 |
Employee/RequestsService.cs |
707 |
Admin/Paid_HolidaysService.cs |
209 |
Endpoints: Admin/Requests 81, Employee/Requests 24, Requests 9, Admin/Approval_Workflows 4, Admin/Paid_Holidays.
Request types (EmployeeRequestTypeParams): Leave (1), Loan (2), Salary Advance (3), Document (4), Exit (5), Redeployment (6), Suspension (7). Statuses (EmployeeRequestStatuParams): New (3) → Approved (1) / Declined (2).
| Face | Who | Frontend | Backend |
|---|---|---|---|
| Raise | employee (self-service) | employee-dashboard/requests/createRequest/** |
Employee/Requests (24) |
| Review / approve | approver (role in the chain) | approval/requests/** (Leave, Loan, SalaryAdvance, Document, Exit, Redeployment) + approval/{absence,violations,suspensions} |
Admin/Requests review endpoints, RequestService.ReviewEmployeeRequest |
| Configure | admin | people/requests/policies/**, settings/approval-workflow/** |
Admin/Requests, Admin/Approval_Workflows |
| Type | Admin view | Policy form | Approve queue |
|---|---|---|---|
| Leave | people/requests/all/leaves |
policies/leave-policy/create-edit |
approval/requests/LeaveRequests |
| Loan | all/loans |
policies/loan-salaries-policies |
LoanRequests |
| Salary Advance | all/salary-advances |
policies/loan-salaries-policies |
SalaryAdvanceRequests |
| Document | all/documents |
policies/document-policies |
DocumentRequests |
| Exit | all/exits |
policies/exit-policies |
ExitRequests |
| Redeployment | all/redeployments |
policies/redeployment-policies |
RedployementRequests |
| Suspension | (disciplinary) | disciplinary policies | approval/suspensions |
Doc: ✅ business §per-type, technical §per-type · configuration §1–2 (policy forms) · how-to §per-type.
The heart of the module — an ordered chain of roles per request category, set per hierarchy level (Company / Department) with inheritance.
| Piece | Detail | Doc |
|---|---|---|
| Workflow categories | People Requests (document/redeployment/exit/suspension), Loans/Salary-Advance/Tax-Relief, Disciplinary, Leave→Time & Attendance, Payroll, Payment Schedules | ✅ technical (7 categories), configuration §3 |
| Chain steps | ordered roles (Head of Department, Payroll Role, Primary/Secondary Admin, Manager, custom roles…), each step = one approval | ✅ configuration §3 |
| Hierarchy + inheritance | set at Company or Department level; "applies to this level and all lower unless overridden" | ✅ configuration §3 |
| Config screen | Settings → Approval Workflows (settings/approval-workflow) — deep-documented in the Settings module |
🟡 pointer (config lives in Settings) |
| Custom roles / notifications | settings/approval-workflow/custom-roles, custom-notifications |
🟡 (Settings) |
Per-type rules (eligibility, targeting, perks). Leave policy form: Name, Description, targeting (Paybands/Paygrades/Custom Groups), Can employees apply?, Is this paid leave?, Gender-specific?, Perks. Loan/advance, document, exit, redeployment policies analogous. Doc: ✅ configuration §1–2.
Paid holidays + federal holidays (policies/paid-holidays, federal-holidays; HolidayService, Paid_HolidaysService) — feed leave/working-day calculations. Doc: 🟡 configuration §4.