Scope. Everything an employee, manager, HOD, or admin sees in PaidHR that goes through "submit → reviewer(s) → approved/declined" — Leave, Loan, Salary Advance, Document signing, Exit (offboarding), Redeployment (internal transfer), Suspension (disciplinary). Plus the configuration screens that decide who approves what in what order.

Source of truth. RequestService.cs (13,676 lines), AdminRequestService.cs (3,657 lines), Approval_WorkflowsService.cs, ApprovalWorkflowService.cs, EmployeeRequest.cs.

Companion doc. technical.md — entity model, SP contracts, notification fan-out, audit shape.


Table of Contents

  1. What this subsystem is
  2. Vocabulary
  3. The 7 request types
  4. The 3 request statuses
  5. Lifecycle — from submission to closure
  6. The approval workflow engine
  7. The 7 workflow categories
  8. Built-in reviewer roles (the chain)
  9. Custom roles in workflows
  10. Configuring an approval workflow (admin UI)
  11. Routing logic — who gets it next
  12. Approver actions — approve, decline, comment
  13. Bulk review
  14. Editing a pending request
  15. What "Final approval" does per request type
  16. Leave requests in detail
  17. Loan requests in detail