<aside> 🔁 Synced from GitHub #967c57271080. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.
</aside>
Status: Live
💡 In plain words
Approvals decide who has to say yes, and in what order.
A company sets up a chain of steps for each kind of thing: leave, payroll, loans and more. Each step names a role (like HR Admin) or a person (like your line manager). A company can have extra chains for a particular office, department or leave type, and the most specific one wins. Approvers can often approve straight from the email.
Like a document passed down a row of desks. Each desk must stamp it before it moves on, and the last stamp makes it final.
Who's involved: admins (set up the chains) and approvers (act on each step). Main admins can step in at any point.
An approval chain is an ordered list of steps; each step names a role (or a specific person, such as the line manager). Companies set up one chain per workflow (leave, payroll, loans…) and can add more specific chains for a workplace, department, duty location, shift plan, leave policy or requisition type. When something is submitted, the most specific chain that applies decides who approves it and in what order. Approval workflows can be switched off per company (GlobalConfigSettings.ApprovalWorkflowsEnabled); then an admin approves in one step.
| Id | Workflow | Covers |
|---|---|---|
| 1 | People | Employee changes |
| 2 | Time Tracking and Leave | Leave requests, timesheets, absences |
| 3 | Loans, Salary Advance and Tax Relief | Loans, advances, tax relief |
| 4 | Payrolls | Regular payroll runs |
| 6 | Payroll changes | Bonuses, deductions, payables, reimbursements |
| 7 | Custom payment schedules | One-off payment batches |
| 8 | Disciplinary | Violations |
| 9 | Off-cycle payroll | Off-cycle runs |
| 10 | Employee profile updates | Self-service profile changes |
| 11 | Requisitions | Requisitions |
| Scope type | Example |
|---|---|
| 1 Company | Default for everyone |
| 2 Workplace | Lagos office has its own leave approvers |
| 3 Department | Finance department |
| 4 Duty location | A specific site |
| 5 Shift plan | Night shift |
| 6 Leave policy | Maternity leave goes to HR directly |
| 7 Requisition type | IT equipment requests go to IT |
For a leave request the order is leave policy → workplace → department → company: the first scope with a chain wins.
flowchart LR
REQ[Leave request] --> LP{Chain for this<br/>leave policy?}
LP -- yes --> USE[Use it]
LP -- no --> WP{Chain for the<br/>workplace?}
WP -- yes --> USE
WP -- no --> DP{Chain for the<br/>department?}
DP -- yes --> USE
DP -- no --> CO[Company chain]
The request stores WorkflowStepsCount and ReviewStepsCount. Computed columns, driven by SQL functions such as fnGetNextReviewEntityIdFromEmployeeRequestId and fnGetNextReviewEntityRoleIdFromEmployeeRequestId, work out the next reviewer (a person) and next reviewer role from the chain and the reviews so far. A user may act when:
When WorkflowStepsCount − ReviewStepsCount = 1, the current approval is the last one and the item becomes Approved.
Payroll runs, payroll changes, payment schedules and requisitions follow the same pattern with their own review tables (PayrollReviews, PayrollChangeReviews, PaymentScheduleReviews, RequisitionReviews).