Audience: New engineers picking up reporting. It's large — treat AdminReportService as its own module.
Operational DBs → DataSynchronizationService (30s, SyncBIData) → Warehouse (Stores + Containers)
│
AdminReportService reads it → Paginator envelope → frontend table
Two hard facts: reports read the Warehouse, not live data (eventual consistency), and AdminReportService is ~7,000 lines (find the method, don't read it whole).
WarehouseDbContext.cs — the 5 Stores + 5 Containers. This is the reporting data model.DataSynchronizationService.cs — the 30s worker; see the SyncBIData() calls into Person/Payroll/Requests/Contractor/Payment.ReportModel.cs — ReportFilterParams (After/Before/Between/On/YTD).AdminReportService.cs (7,058) — jump to the specific report method (Employee_Summary, Statutory_Payments, the custom builder). Don't read top-to-bottom.Admin/ReportsController.cs — the 26 endpoints; also the server-driven-tables initiative's anchor.pages/dashboard/documents/reports/ — CustomReport, EmployeeReportBuilder, EnhancedReportTable (the render engine).| You want to change… | Go to |
|---|---|
| A report's logic | the specific method in AdminReportService.cs |
| The warehouse schema | WarehouseDbContext • the Store/Container entities |
| BI sync | DataSynchronizationService • each service's SyncBIData() |
| Container aggregation | the SQL procedures (not the C#) |
| Custom builder / templates | AdminReportService builder methods + settings/documents/reports FE |
| Table rendering | EnhancedReportTable.tsx (+ the SDT format) |
AdminReportService is huge — module-sized; navigate by method.SyncBIData() quietly ages reports. Monitor it.