<aside> 🔁 Synced from GitHub #eac398547747. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.

</aside>

Exit settlement & pay rules

Status: Built New on staging, not yet confirmed as released to production. The screens and endpoints are wired up and there is no feature flag: it runs for any exit that has been approved.

💡 In plain words

This is the money side of someone leaving: working out their final pay and getting it approved and paid.

When an exit is approved, PaidHR builds a statement of everything the leaver is owed or owes. It fills in the easy parts itself: the last month's salary, unused leave, length-of-service pay, anything confirmed during clearance, money owed back for things not returned. HR can tweak lines, add extras, then send it to be checked. Someone other than the person who prepared it signs it off, and only then does it go to payroll.

Like the final bill when you check out of a long hotel stay: room charges, the minibar, a refund for the night you left early, all added up into one figure.

Who's involved: HR (prepares it), approvers (a line manager or a role holder sign it off), finance (must finish their clearance first), payroll (pays it), and the leaver (can be shown their statement).

In one paragraph

Once an exit is approved, PaidHR builds a settlement for it: a statement of final-pay lines, each an earning or a deduction. Most lines are worked out automatically — final salary, unused paid leave, length-of-service pay from the company's pay rules, payment in lieu of notice, clearance recoveries and payments, notice not served, and a leaver's end-of-service balance. HR can override a figure (with a reason), exclude a line, or add a line by hand, then submit it for approval. A company can require an ordered chain of approvers; the person who prepared it cannot approve it, and all finance clearance must be settled first. On approval the settlement is sent to payroll as one-off payroll changes. The statement separates what the leaver is owed (net payable) from what they owe the company (net recoverable), because payroll can only pay out, never collect.

Key ideas

Term Meaning
Settlement One statement per exit, with a status: Draft, Awaiting approval, Approved, Posted to payroll
Line (component) One earning or deduction. Source is system (calculated), clearance (from a cleared clearance item), or manual (added by hand)
Calculated figure What PaidHR worked out. A line keeps both the calculated figure and the figure in use, so an override is visible
Override Changing a calculated figure. Needs a reason; records who, when and the figure replaced
Counted / not counted Each line can be included or excluded from the totals. A calculated line can't be removed, only unticked
Pay rule (benefit rule) A company's own length-of-service benefit: gratuity or severance, paid in days or months of pay per year of service
End of service scheme Worked out from the settings, never stored: none, formula (pay rules), funded (a benefit fund) or both
EOSB End-of-service benefit (End of service benefit — a running balance of what an employee has built up towards their end-of-service payout) balance, held in a fund and paid out at exit
Net payable / net recoverable What the leaver is owed, or what they owe — kept as two separate figures, never one negative number
PILON Pay in lieu of notice (Payment in lieu of notice — paying notice as money instead of working it), recorded once when the exit is approved

How it works

flowchart TD
  A[Exit approved] --> B[Settlement built in Draft]
  B --> C[System proposes lines:<br/>final salary, leave, pay rules,<br/>EOSB, PILON, clearance, notice]
  C --> D[HR edits: override, exclude,<br/>add manual lines]
  D --> E{Submit for approval}
  E --> F[Awaiting approval]
  F --> G{Finance clearance<br/>all settled?}
  G -- no --> F
  G -- yes --> H[Approval chain, in order<br/>preparer cannot approve]
  H -- more steps --> F
  H -- last step --> I[Approved]
  I --> J{Leaver owes on net?}
  J -- yes --> K[Held: collect from leaver directly]
  J -- no --> L[Posted to payroll<br/>one-off payroll changes]

What the statement is built from

When a settlement is opened for an approved, still-open exit, PaidHR works out the lines it proposes and brings the stored ones into line with them. Recalculation refreshes calculated figures but never changes an overridden figure or whether a line is counted — those are decisions a person made. A line whose source has gone (a clearance item reopened, a leave balance used up, a waived notice shortfall) is dropped.

The lines it can propose: