Inventory
These statements move stock in and out of an Inventory location.
| Statement | What it does | Example |
|---|---|---|
STORE | Add stock to an inventory. It puts in what fits; add WAIT to wait until the whole amount fits | STORE 5 "PartA" INTO "Warehouse" |
TAKE | Remove stock. It takes what is there and carries on; add EXACT to take all or nothing | TAKE 1 "PartA" FROM "Warehouse" |
REQUEST | Withdraw stock, waiting until the whole amount is there | REQUEST 10 "PartA" FROM "Warehouse" |
UNSTORE is another name for TAKE. Use these to consume parts at an activity, put stock into a store, and hold an entity until the stock it needs is there: in a Queue’s Action Logic the entity waits in its place in the queue, and in an Activity’s Action Logic it holds the activity and any resource it already has, so a queue is the usual place to wait for stock. An item’s own reorder level and reorder quantity, set on the Items tab, place orders for it automatically.

