Source of truth: web-app develope @ 8ff381cc4 and core-backend-service develop @ 78e0e76bd (the pair that deploys to dev), read on 6 Oct 2026. Approval logic was also read from the live dev database (read-only). Same on staging and production? Core's requisition services are identical on develop, staging and master. The web screens on staging/main are older versions of the same flows (same endpoints; mostly layout changes since).

What this module is

Employees ask the company for something: an item, a service or money (equipment, travel, an expense to be paid back). Each request goes through an approval chain. Once it is approved, HR fulfils it and closes it. A money request can also be paid to the employee through the next payroll.

This is the Requests → Requisitions module. It is not the Hiring "job requisition" (see §11).

1. Who uses it and where

Actor Screen (route) What decides access
Employee /employee/dashboard/requests/requisitions: list, plus a details drawer An active employee profile in the company
Employee /employee/dashboard/requests/requisitions/:key: full-page detail Same. ⚠️ Nothing in the app links here; you can only reach it by URL
Approver /approval/requests/requisitions: "Requisition approvals" Being the current step's reviewer. Primary and secondary admins see every pending requisition
HR / fulfiller /dashboard/requests/list/requisitions: "Requests" tab Permission can_fulfill_requisitions (side-nav item hidden without it)
HR setup /dashboard/requests/requisitions/setup: "Requisition types" tab can_fulfill_requisitions
Payroll payout Button inside the HR details drawer can_payout_requisitions
Approval chain config Settings → Approval workflow → Requisitions (category 11) Settings access

2. Flow map

flowchart LR
  UF1["UF1 Set up requisition types"] --> UF3
  UF2["UF2 Configure approval chain"] --> UF5
  UF3["UF3 Employee raises a requisition"] --> UF5
  UF4["UF4 HR raises one for an employee"] --> UF5
  UF5["UF5 Approver decides"] -->|Returned| UF6["UF6 Employee edits, resubmits or cancels"]
  UF6 --> UF5
  UF5 -->|Approved| UF7["UF7 HR fulfils and closes"]
  UF5 -->|Approved, money| UF8["UF8 Pay through payroll"]
  UF7 -->|Fulfilled, money| UF8

3. Status model

A requisition carries three independent statuses. Only the main status drives the flow.

stateDiagram-v2
  [*] --> Draft: Save draft
  Draft --> PendingApproval: Submit (approval workflows on)
  Draft --> Approved: Submit (approval workflows off)
  PendingApproval --> PendingApproval: A step approves, more steps remain
  PendingApproval --> Approved: Last step approves
  PendingApproval --> Declined: Decline (comment required)
  PendingApproval --> Returned: Return (comment required, all approvals wiped)
  Returned --> PendingApproval: Resubmit (chain restarts at step 1)
  Draft --> Cancelled: Employee cancels
  Returned --> Cancelled: Employee cancels
  PendingApproval --> Cancelled: Employee cancels, only before the first approval
  Approved --> Fulfilled: HR marks fulfilled
  Fulfilled --> Closed: HR closes
  Declined --> [*]
  Cancelled --> [*]
  Closed --> [*]
Id Status Chip tone Who moves it here
1 Draft neutral Employee or HR saves
2 Pending approval pending, with "1 of 3 approvals" underneath Submit
3 Returned warning Approver returns
4 Approved success Last approver, or submit when workflows are off
5 Declined danger Approver
6 Cancelled danger Employee
7 Fulfilled success HR
8 Closed neutral HR

Side statuses:

UF1. HR sets up a requisition type

Entry: HR Requisitions page → Requisition types tab.

flowchart TD
  A["Requisition types tab: list of types"] --> B{"New or edit?"}
  B -->|New requisition type| C["Step 1 Basic details"]
  B -->|Row menu, Edit| C
  C --> D["Step 2 Request rules"]
  D --> E["Step 3 Fixed options"]
  E --> F["Save: POST or PUT /Admin/Requisition_Setup/Types"]
  F -->|400| E
  F -->|200| A
  A -->|Row menu: Activate or Deactivate| G["POST /Types/{key}/Activation"]
  G --> A
Card Screen What the user does What the system does
UF1.1 Types table Sees name, amount mode (Not allowed / Optional / Required), fixed options, attachment (Required/Optional), active state GET /Admin/Requisition_Setup/Types?includeInactive=true
UF1.2 Step 1 · Basic details Name, optional description, Available to employees toggle If the toggle is off, only HR can raise this type (UF4)
UF1.3 Step 2 · Request rules Amount: do not collect / optional / required. Optional min–max amount. Enable payroll payout plus Payroll payable type (non-deduction payables). Optional min–max quantity. Require a needed-by date. Require a time period, with optional min–max days. Require an attachment. Payable types come from GET /Admin/Payrolls/GetPayableTypes?forEmployee=false
UF1.4 Step 3 · Fixed options Optional list of option names (e.g. "Laptop", "Monitor"). Allow "Other" lets the employee type their own Each option gets a code generated from its name
UF1.5 Save — Server checks: name and code required; amount limits not allowed when amount is "do not collect"; ranges valid; payout needs an active payable type from this company; "Other" needs fixed options; at least one active option; option codes unique. Code clash gives "A requisition type with this code already exists."
UF1.6 Activate / Deactivate Row menu Deactivated types disappear from the employee and HR create forms

The API can do more than the screen: per-option default amount, per-option maximum, per-option time period and per-option "available to employees". The screen never sends them, so editing a type in the UI wipes any of those values set through the API.