Skip to content
1 viewer
View

Inventory reference

2 pages, 9 routes, 9 connections and 4 CLI commands, generated from the declarations of Inventory without reading storage or running anything.

AboutCode

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

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Listinventory.balanceslist/view/inventory/list0StockBalancein navigation
Item stockinventory.itemdetail/view/inventory/item/{item_ref}0inventory.balancesStockBalancehidden
Dashboardinventory.dashboard/view/inventory/dashboardin navigation
3 rows

Connections · 9

Inventory.Adjust

Apply a signed manual correction (count / shrinkage) to on-hand.

Inventory.Adjust input
FieldTypeRequiredDescriptionAllowed
item_refrequired
location_refrequired
quantity_deltarequired
3 rows
Calls and output
  • 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.

Inventory.Available input
FieldTypeRequiredDescriptionAllowed
item_refrequired
1 row
Calls and output

Inventory.Balances

List stock balances, optionally filtered by item and/or location.

Calls and output

Inventory.Movements

The append-only stock movement log (audit trail), optionally filtered by item/location.

Calls and output
  • Output keyinventory.result
  • Classificationroute_handler
  • POST /inventory/movementsHTTP route

Inventory.Receive

Add inbound stock at a location (production output / supplier shipment).

Inventory.Receive input
FieldTypeRequiredDescriptionAllowed
item_refrequired
location_refrequired
quantityrequired
3 rows
Calls and output

Inventory.Release

Cancel a hold (reserved -= qty).

Inventory.Release input
FieldTypeRequiredDescriptionAllowed
item_refrequired
location_refrequired
quantityrequired
3 rows
Calls and output
  • Output keyinventory.result
  • Classificationreal
  • POST /inventory/releaseHTTP route

Inventory.Reserve

Hold stock for a cart/order (reserved += qty; requires available stock).

Inventory.Reserve input
FieldTypeRequiredDescriptionAllowed
item_refrequired
location_refrequired
quantityrequired
3 rows
Calls and output
  • Output keyinventory.result
  • Classificationreal
  • POST /inventory/reserveHTTP route

Inventory.Sell

Fulfil a sale (on_hand -= qty, consuming any reservation).

Inventory.Sell input
FieldTypeRequiredDescriptionAllowed
item_refrequired
location_refrequired
quantityrequired
3 rows
Calls and output
  • Output keyinventory.result
  • Classificationreal
  • POST /inventory/sellHTTP route

Inventory.Transfer

Move stock between two locations atomically (out leg then in leg).

Inventory.Transfer input
FieldTypeRequiredDescriptionAllowed
item_refrequired
from_locationrequired
to_locationrequired
quantityrequired
4 rows
Calls and output

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.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerInventory
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Protocol

Structure review · 1

Warnings · 1
  • Inventory · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)