EwtController
| Base path | /api |
| Module | PH Statutory |
| Endpoints | 8 |
| OpenAPI tag | Expanded Withholding Tax |
| Source | backend/src/main/java/com/motorph/payroll/controller/EwtController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/ewt-payees | payroll.ewt.manage | listPayees() |
POST | /api/ewt-payees | payroll.ewt.manage | createPayee() |
PUT | /api/ewt-payees/{id} | payroll.ewt.manage | updatePayee() |
DELETE | /api/ewt-payees/{id} | payroll.ewt.manage | deletePayee() |
GET | /api/ewt-transactions | payroll.ewt.manage | listTransactions() |
POST | /api/ewt-transactions | payroll.ewt.manage | createTransaction() |
PUT | /api/ewt-transactions/{id} | payroll.ewt.manage | updateTransaction() |
DELETE | /api/ewt-transactions/{id} | payroll.ewt.manage | deleteTransaction() |
note
This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 8 of its 8 endpoints inherit it rather than declaring their own.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: EwtService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| EwtPayee | ewt_payees | Yes |
| EwtTransaction | ewt_transactions | 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/.