PayrollReportController
Server-side payroll reports (JasperReports): the catalogue the caller may run, and each report as PDF, XLSX or CSV.
| Base path | /api/payroll-reports |
| Module | Payroll |
| Endpoints | 4 |
| OpenAPI tag | Payroll reports |
| Source | backend/src/main/java/com/motorph/payroll/controller/PayrollReportController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/payroll-reports/catalog | payroll.dashboard.view or payroll.manage or payroll.approve or hr.employees.view or hr.dashboard.view | catalog() |
GET | /api/payroll-reports/diagnostics | payroll.dashboard.view or payroll.manage or payroll.approve or hr.employees.view or hr.dashboard.view | diagnostics() |
GET | /api/payroll-reports/payslip/{payslipId} | payroll.manage or payroll.approve or payroll.payslip.view | payslip() |
GET | /api/payroll-reports/{code} | payroll.dashboard.view or payroll.manage or payroll.approve or hr.employees.view or hr.dashboard.view | render() |
Notes
GET /api/payroll-reports/diagnostics— Whether each report the caller may run has data: run reports for payrollId, monthly and yearly reports for year/month.
note
This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 3 of its 4 endpoints inherit it rather than declaring their own.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: PayrollReportService, ReportDiagnosticsService.
Tables reached
None through a Spring Data repository — this controller is stateless, or its work is delegated to a component that reaches storage another way.
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.