Canonical documentation for PaidHR's reporting layer — pre-built reports (payroll, employee, statutory), a custom report builder with saved templates, and the Warehouse analytics store that feeds them.
Source of truth:
core-backend-servicesource (AdminReportService.cs7,058 lines + 26 endpoints,WarehouseDbContext,DataSynchronizationService) plus a live pass (Playwright, "Pade Demo" tenant, 2026-07-21; screenshots).
See also the server-driven-tables initiative — the effort to make one JSON envelope render every table/report. Reporting is a primary consumer. (RFD-003)
Start with surface-map.md.
| Doc | Audience | What it answers | Status |
|---|---|---|---|
| surface-map.md | Everyone | Inventory, categories, warehouse | ✅ Done 2026-07-21 |
| business.md | PMs, QA, Support, Finance/HR | What reporting offers | ✅ Done 2026-07-21 |
| technical.md | Engineers, DBAs | Report engine, warehouse, BI sync | ✅ Done 2026-07-21 |
| configuration.md | Admins, Finance | Build a custom report, filters, templates | ✅ Done 2026-07-21 |
| glossary.md | Everyone | Data dictionary | ✅ Done 2026-07-21 |
| api-reference.md | Engineers | The 26-endpoint surface | ✅ Done 2026-07-21 |
| user-journey.md | PMs, UX, Support | Build, run, download, schedule journeys | ✅ Done 2026-07-21 |
| how-to.md | Admins, Finance | Run/build/download/schedule reports | ✅ Done 2026-07-21 |
| knowledge-base.md | End users | FAQ — stale data, exports, custom reports | ✅ Done 2026-07-21 |
| runbook.md | On-call / Ops | Stale warehouse, stuck sync, slow reports | ✅ Done 2026-07-21 |
| onboarding.md | New engineers | Ramp into the report engine + warehouse | ✅ Done 2026-07-21 |
| rfds/ | Engineers | Design decisions | ✅ Done 2026-07-21 (3 records) |
Reporting has two halves. Pre-built reports — organised in the product into Payroll, Employee, and Custom categories — cover the common needs (Payroll Journal, Employee Summary, Leave Balances, Custom Fields, and the Nigerian statutory reports NHF/NSITF/Pension/Tax). A custom report builder (the Employee Report Builder) lets an admin pick columns from employee personal + compensation data, filter by date (After/Before/Between/On/YTD), group, scope to workplaces/departments, and save the result as a reusable template. Both read not from the live operational databases but from a separate Warehouse — denormalized Stores (PersonStore, PayrollItemSummaryStore, …) plus pre-aggregated Containers (trends, gender summary, top companies). The warehouse is kept current by DataSynchronizationService, a 30-second background worker that calls SyncBIData() across the domain services — so reports are eventually consistent, seconds behind live. Reports export to CSV/XLS, can be emailed, and can be scheduled.
AdminReportService is ~7,000 lines — the report engine is effectively its own module.Verified live: the three report categories under Reports — Custom (/dashboard/report/custom, the Employee Report Builder), Employee (/employees: Employee Requests, Leave Balances, Custom Fields, Employee Summary), Payroll (/payroll: Payroll Journal, Consolidated Payroll Journal, Payroll Summary). Each is a landing page of report cards.
Established from code: the Warehouse architecture (WarehouseDbContext — 5 Stores + 5 Containers); the BI sync worker (DataSynchronizationService, 30s, SyncBIData() across Person/Payroll/Requests/Contractor/Payment); the custom-builder + template endpoints; date filters (After/Before/Between/On/YTD); statutory reports (NHF/NSITF/Pension/Tax) with CSV/XLS export; and the link to the server-driven-tables initiative.
Source-path caveat: report frontend is under pages/dashboard/documents/reports/ (the Documents grab-bag), but routes are /dashboard/report/*.