ItemPriceController
| Base path | — (paths declared per handler) |
| Module | Inventory & Portal |
| Endpoints | 6 |
| OpenAPI tag | ItemPrice |
| Source | backend/src/main/java/com/motorph/payroll/controller/ItemPriceController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/inventory/prices | inventory.prices.view | listPrices() |
GET | /api/inventory/items/{itemId}/prices | inventory.prices.view | getPricesForItem() |
GET | /api/inventory/prices/history | inventory.prices.view | getHistory() |
POST | /api/inventory/prices | inventory.prices.manage | createPrice() |
PUT | /api/inventory/prices/{priceId} | inventory.prices.manage | updatePrice() |
DELETE | /api/inventory/prices/{priceId} | inventory.prices.manage | deactivatePrice() |
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: ItemPriceService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| InventoryItem | inventory_item | Yes |
| ItemPrice | item_price | Yes |
| ItemPriceHistory | item_price_history | Yes |
| User | users | — |
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/.