ProfitController
| Base path | /api/inventory/profit |
| Module | Inventory & Portal |
| Endpoints | 3 |
| OpenAPI tag | Profit |
| Source | backend/src/main/java/com/motorph/payroll/controller/ProfitController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/inventory/profit/summary | inventory.profit.view | getSummary() |
GET | /api/inventory/profit/costing-method | inventory.profit.view | getCostingMethod() |
PUT | /api/inventory/profit/costing-method | inventory.profit.manage | updateCostingMethod() |
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: ProfitService.
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/.