PayslipController
| Base path | /api/payslips |
| Module | Payroll |
| Endpoints | 6 |
| OpenAPI tag | Payslips |
| Source | backend/src/main/java/com/motorph/payroll/controller/PayslipController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/payslips/me/years | employee.payslip.view | listMyYears() |
GET | /api/payslips/me | employee.payslip.view | listMine() |
GET | /api/payslips/me/ytd | employee.payslip.view | getMyYearToDateFigures() |
GET | /api/payslips/me/{id} | employee.payslip.view | getMyPayslipById() |
GET | /api/payslips | payroll.payslip.view or payroll.manage or payroll.approve | list() |
GET | /api/payslips/{id} | payroll.payslip.view or payroll.manage or payroll.approve | getById() |
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: PayslipService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| Payslip | payslip | Yes |
| PayslipDeductionItem | payslip_deduction_items | Yes |
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/.