btech.parts
btech.parts provides the part catalogue and object stores.
Where a BtechPartRef accepts a packed integer ID, that ID must be from 0
through 2,147,483,647; values outside this range raise mux.arg.invalid.
Functions
| Function | Description |
|---|---|
adjust_stores | Adjusts a stored part quantity. |
categories | Lists the canonical part categories. |
list | Lists parts, optionally restricted to one category. |
resolve | Resolves a part reference to its canonical record. |
search | Searches the part catalogue by name. |
set_cost | Sets a part’s configured cost. |
store_quantity | Returns one stored part quantity. |
stores | Lists every stored part with a nonzero quantity. |