Skip to main content

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
ModulePayroll
Endpoints4
OpenAPI tagPayroll reports
Sourcebackend/src/main/java/com/motorph/payroll/controller/PayrollReportController.java

Endpoints​

MethodPathRequiresHandler
GET/api/payroll-reports/catalogpayroll.dashboard.view or payroll.manage or payroll.approve or hr.employees.view or hr.dashboard.viewcatalog()
GET/api/payroll-reports/diagnosticspayroll.dashboard.view or payroll.manage or payroll.approve or hr.employees.view or hr.dashboard.viewdiagnostics()
GET/api/payroll-reports/payslip/{payslipId}payroll.manage or payroll.approve or payroll.payslip.viewpayslip()
GET/api/payroll-reports/{code}payroll.dashboard.view or payroll.manage or payroll.approve or hr.employees.view or hr.dashboard.viewrender()

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/.