This folder is the canonical documentation for the Payroll subsystem of PaidHR. It is organised by audience so each reader can start from the doc written for them and cross-link into the others.

Source of truth: every document here was written by reading the actual source code (PayrollService.cs, entity configurations, stored procedures, domain enums) and — for the frontend-driven docs — by driving the live product. Where a fact still needs product/ops confirmation it is marked ⚠️ VERIFY.


The documents

Doc Audience What it answers Status
surface-map.md Everyone (coverage checklist) The complete module inventory — every area, its routes/pages/endpoints, and which doc covers it (built from all 131 frontend components + backend) ✅ Done 2026-07-17
business.md PMs, QA, Customer Care, Implementation, Solutions What payroll does and why — vocabulary, compensation model, runs, pro-ration, tax, edge cases — no code ✅ Verified 2026-07-17
technical.md Backend / DB / integration engineers How payroll is computed & stored — architecture, C#/SQL boundary, stored procs, algorithms, API surface ✅ Verified 2026-07-17
glossary.md Everyone Data dictionary — every Payroll entity, enum, and flag with its meaning and code location ✅ Done 2026-07-17
configuration.md Admins, Implementation, QA, engineers Deep dive — every field on every config form (allowances, paygrades, payroll-changes, statutory benefits, tax reliefs incl. rent relief, tax table, pay schedules, paybands, shift differentials) + reports → meaning → backend flag → effect on pay ✅ Done 2026-07-17
user-journey.md PMs, UX, Support End-to-end journeys per persona (Payroll Admin, Approver, Employee) through the real UI ✅ Done 2026-07-17 (frontend-driven)
how-to.md Admins, Support, Implementation Task-oriented step-by-step guides with real screenshots ✅ Done 2026-07-17 (frontend-driven)
knowledge-base.md End users / help-centre FAQ-style, self-service answers written for employees & admins ✅ Done 2026-07-17 (frontend-driven)
api-reference.md Frontend + integration engineers Every Payroll HTTP endpoint — route, controller, request/response, auth ✅ Done 2026-07-17
payment-pipeline.md Admins, Finance, Support, engineers The disbursement UI — Pay Schedules (Regular/Custom/Reversals), every payout action, statutory remittance, cross-border ✅ Done 2026-07-17
runbook.md On-call / Ops / Support engineers Operational playbooks — stuck runs, failed payments, recovery, concurrency locks ✅ Done 2026-07-17
onboarding.md New engineers on the Payroll team "Start here" — the 1-week ramp path into the codebase ✅ Done 2026-07-17
rfds/ Engineers, Architects Design-decision records for notable Payroll architecture choices ✅ Done 2026-07-17 (4 records)

Legend: ✅ verified against code · 🟡 in progress · ⚪ not started


How the docs relate

flowchart LR
  RB[README<br/>index + status]
  BUS[business.md<br/>product truth]
  TECH[technical.md<br/>engineering truth]
  GLO[glossary.md]
  API[api-reference.md]
  UJ[user-journey.md]
  HOW[how-to.md]
  KB[knowledge-base.md]
  RUN[runbook.md]
  ONB[onboarding.md]
  RFD[rfds/]

  RB --> BUS & TECH
  BUS <--> TECH
  BUS --> UJ --> HOW --> KB
  TECH --> API & GLO & RUN & ONB & RFD
  GLO -.terms.-> BUS
  GLO -.terms.-> TECH

Reading order by role


Verification log

Each entry records a pass where the prose docs were re-checked against the current code and the running product. This is the audit trail for the "make sure they're correct" mandate.

2026-07-17 — Correctness pass on business.md + technical.md

Method: cross-checked concrete, falsifiable claims (enums, entity/method names, stored-proc & SQL-function names, architecture) against the current core-backend-service source.