<aside> 🔁 Synced from GitHub #67d072e228cc. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.
</aside>
Status: Live
💡 In plain words
Exit is how someone leaves the company, whether they resign, are let go or reach the end of a contract.
HR (or the employee) starts it, it's approved like any other request, and then PaidHR runs the leaving process: an exit case that tracks the handover, an optional exit interview, who still has to sign off that the person has returned laptops and keys and settled what they owe, the letters (which can carry the company's letterhead), any company documents the person must read or sign before they go, and the final pay. The person and their login are closed either straight away or on their last day. Early pay (EWA) stops once payroll marks the person as gone.
It's the checklist for someone's last day — and the weeks around it — run as one tracked case from the moment the exit is raised until HR closes it.
Who's involved: HR or the employee (starts it), approvers, the line manager (confirms the handover and their part of the checklist), whoever owns each clearance item (IT, finance, facilities), and payroll (final pay).
An exit is how someone leaves the company: resignation, termination, end of contract. It is still request type 5 on the requests engine, driven by an exit policy that sets the notice period and optionally an exit survey, and approved through the usual chain. Behind every exit request now sits an exit case — one case per request — that carries the whole leaving process: notification and last-working-day dates, the reason, a handover, an optional exit interview, a clearance checklist (return assets, revoke access, settle money owed), letters and documents, and the final settlement. The case has its own status that follows the request through approval and then moves on through serving notice, clearance, settlement and closure. When the exit is approved PaidHR records the departure, can pay PILON through payroll, and terminates the person and their login either immediately or on the exit date. Early wage access (EWA) stops when payroll marks the person as no longer active. Exited people can still sign in to see payslips and their wallet.
| Term | Meaning |
|---|---|
| Exit request | Policy, exit date, reason, document, send email notification, optional PILON. Request type 5, approved through the usual chain |
| Exit case | The offboarding record that sits behind one exit request. Holds the handover, interview, clearance, documents, settlement and history. Created the first time the request is saved or touched |
| Case status | Draft → Pending approval → Serving notice → Clearance in progress → Settlement in progress → Ready for closure → Closed. Plus three endings: Cancelled, Rejected, Withdrawn |
| Exit policy | Name, type, whether employees may apply themselves, optional survey, notice period, optional company documents to hand the leaver |
| Exit reason | Why the person is leaving, grouped into a category. Each reason carries a default on whether losing someone for it is "regrettable". A company gets a starter list it can edit |
| Employee exit | EmployeeExits: written on approval; the row payroll and the daily exit job read. IsExited once it takes effect |
| User exit | UserExits (membership): schedules the login's termination |
| PILON | Payment in lieu of notice. Admin only. Part of the settlement |
| Clearance item | One thing to clear before the exit can close: return an asset, revoke access, settle a balance. Owned by a person or a role. Seeded from clearance templates |
| Company document | An approved document from the company's document library (the Documents module) handed to the leaver with their exit, to read or sign on their usual documents page. Comes from the exit policy or is added by HR. One that asks for a signature can be made required: the exit can't close until it is signed or waived |
| Letterhead | An image (logo, address) the company uploads once in exit settings; printed across the top of exit letters |
| Sensitive exit | A case marked sensitive (dismissals, disputes). Hidden from people who otherwise work on exits unless they have the "Can view sensitive exits" permission |
| Rehire | Bring an exited person back (Admin/Employees/Rehire) |
The exit request is unchanged: it is raised (by HR or the employee), checked (policy required, not the primary admin, no other pending exit, rehired if they left before), and approved through the chain. The case is kept in its own table, apart from EmployeeExits, on purpose: a case has to exist while the request is still a draft or awaiting approval, but EmployeeExits is only written on approval and is what payroll and the daily job treat as a real departure.
Case bookkeeping is best-effort and runs on every save and review of an exit request: if it fails, the request is still saved and the case is rebuilt from the request the next time. So an exit always shows up, even if the richer case details lag by one action.
stateDiagram-v2
[*] --> Draft: request raised
Draft --> PendingApproval: submitted
PendingApproval --> Rejected: declined
PendingApproval --> Withdrawn: leaver withdraws
PendingApproval --> Cancelled: HR cancels
PendingApproval --> ServingNotice: approved, exit date in future
PendingApproval --> ClearanceInProgress: approved, exit date today/past
ServingNotice --> ClearanceInProgress: exit date arrives
ClearanceInProgress --> ReadyForClosure: nothing outstanding
ClearanceInProgress --> SettlementInProgress: settlement being worked
SettlementInProgress --> ReadyForClosure: nothing outstanding
ReadyForClosure --> SettlementInProgress: a blocker reappears
ReadyForClosure --> Closed: HR closes it
ServingNotice --> Cancelled: HR cancels / leaver withdraws
ClearanceInProgress --> Cancelled: HR cancels / leaver withdraws
The request's own status drives the case's: a declined request makes a Rejected case, withdrawn makes Withdrawn, cancelled makes Cancelled. On approval, a future exit date puts the case into Serving notice; a date today or in the past goes straight to Clearance in progress — once the date has passed there is nothing left to serve, only things to clear. A case that has already moved on into clearance, settlement or closure is never dragged back by its request: approval only ever starts that part of the journey. Looking at a case's closure view nudges its status forward (or back) automatically as blockers clear or reappear.
A case records the notification date (when the person resigned or was told), the last working day, and the effective exit date (which mirrors the request's start date — the date payroll and the daily job act on). With nothing said, the person is taken to have given notice today and to work up to the day they leave, which is what an exit meant before these dates were captured. Pulling the exit date earlier drags the last working day in with it; nobody works past the day they leave.
Notice required is read from the policy for that person (by band, grade or group) when the case is raised, and re-read while the request is still open — but left as it stood once approved. Notice served is notification date to last working day. The shortfall is the required days minus the served days, and is zero if notice was waived.
At 02:01 (Lagos time) the daily procedures still run spProcessEmployeeExit (people whose date has arrived become Terminated) and spProcessUserExit (their logins set to terminated); DailyJobLogs keeps each to once a day. The same daily run now also walks every open case and sends clearance reminders, escalations and exit-date notices (see Reminders and emails).