InventoryEntry
object type
ONE posted Stock-Card movement fact: the magnitude rides quantity (positive), the direction rides fromBucket/toBucket (the classic in/out card form; a bucket balance = sum of to minus sum of from).
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | |
type | String String! | |
caption | String String! | The derived display caption — movement + quantity; never editable. |
status | String String! | The state: active | doomed (doomed = voided, reserved for a future void-family flow — excluded from the card and the verify sum). |
parentId | ID ID! | The parent InventoryItem. |
rootId | ID ID! | |
movement | StockMovementType StockMovementType! | The canned movement type. |
quantity | String String! | The movement magnitude — a positive strict decimal string in the variant stock UoM; direction rides the buckets. |
fromBucket | StockBucket | The bucket this movement drains (adjust-down · reclass source); absent for receive / adjust-up. |
toBucket | StockBucket | The bucket this movement fills (receive · adjust-up · reclass target); absent for adjust-down. |
unitCost | MoneyEntry | The receive unit cost. Receive-only. |
costImpact | CostImpact | The signed value delta this movement caused; absent when no cost basis exists. |
reason | String | The reason code/text — required on adjust; carries the canned held reason on a reclass into held. |
refs | String [String!] | Provenance document refs (bounded free strings — the PO/receipt refs land typed). |
overcommitted | Boolean | Present (true) exactly when this movement drove a touched bucket negative. |
fromBinId | ID | The bin this movement left. |
toBinId | ID | The bin this movement entered. |
lotCode | String | The lot identity the relocate moved. |
createdAt | String String! | |
updatedAt | String String! | |
revision | ID ID! | |
revisionNum | Int Int! |