Inventory reference
2 pages, 9 routes, 9 connections and 4 CLI commands, generated from the declarations of Inventory without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 3
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| List | inventory.balances | list | /view/inventory/list | 0 | StockBalance | in navigation | |
| Item stock | inventory.item | detail | /view/inventory/item/{item_ref} | 0 | inventory.balances | StockBalance | hidden |
| Dashboard | inventory.dashboard | /view/inventory/dashboard | in navigation |
Connections · 9
Inventory.Adjust
Apply a signed manual correction (count / shrinkage) to on-hand.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_ref | required | |||
| location_ref | required | |||
| quantity_delta | required |
- Output keyinventory.result
- Classificationreal
- POST /inventory/adjustHTTP route
Inventory.Available
On-hand / reserved / available for an item, per location and rolled up across all locations.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_ref | required |
- Output keyinventory.result
- Classificationroute_handler
- POST /inventory/availableHTTP route
- inventory availableCLI command
Inventory.Balances
List stock balances, optionally filtered by item and/or location.
- Output keyinventory.result
- Classificationroute_handler
- GET /inventory/balancesHTTP route
- inventory balancesCLI command
Inventory.Movements
The append-only stock movement log (audit trail), optionally filtered by item/location.
- Output keyinventory.result
- Classificationroute_handler
- POST /inventory/movementsHTTP route
Inventory.Receive
Add inbound stock at a location (production output / supplier shipment).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_ref | required | |||
| location_ref | required | |||
| quantity | required |
- Output keyinventory.result
- Classificationreal
- POST /inventory/receiveHTTP route
- inventory receiveCLI command
Inventory.Release
Cancel a hold (reserved -= qty).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_ref | required | |||
| location_ref | required | |||
| quantity | required |
- Output keyinventory.result
- Classificationreal
- POST /inventory/releaseHTTP route
Inventory.Reserve
Hold stock for a cart/order (reserved += qty; requires available stock).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_ref | required | |||
| location_ref | required | |||
| quantity | required |
- Output keyinventory.result
- Classificationreal
- POST /inventory/reserveHTTP route
Inventory.Sell
Fulfil a sale (on_hand -= qty, consuming any reservation).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_ref | required | |||
| location_ref | required | |||
| quantity | required |
- Output keyinventory.result
- Classificationreal
- POST /inventory/sellHTTP route
Inventory.Transfer
Move stock between two locations atomically (out leg then in leg).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_ref | required | |||
| from_location | required | |||
| to_location | required | |||
| quantity | required |
- Output keyinventory.result
- Classificationreal
- POST /inventory/transferHTTP route
- inventory transferCLI command
CLI commands · 4
inventory available
On-hand / reserved / available for an item across locations
inventory available {"item_ref":"mug"}inventory balances
List stock balances (optional item/location filter)
inventory balances
inventory receive
Add inbound stock (item_ref + location_ref + quantity)
inventory receive {"item_ref":"mug","location_ref":"outlet:oak","quantity":10}inventory transfer
Move stock between two locations atomically
inventory transfer {"item_ref":"mug","from_location":"outlet:oak","to_location":"outlet:pdx","quantity":3}Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerInventory
- SQL projectionnone · DDL declarations: 0
- StockBalance
- StockMovement
- StockBalance
- StockMovement
- None declared.
- None declared.
- None declared.
- No model warnings were reported.
Capabilities and dependencies
- Protocol
Structure review · 1
- Inventory · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)