AlmondTill/G3N API

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). sysId-LESS (the class); IMMUTABLE — NO update or doom op exists; posted ONLY by the movement mutations in ONE transaction with the II cache stamp.

Fields

FieldTypeNotes
idID ID!No further notes.
typeString String!No further notes.
captionString String!The derived display caption — movement + quantity; never editable.
statusString String!The FSM state: active | doomed (doomed = VOIDED, reserved for a future void-family flow — excluded from the card and the verify sum).
parentIdID ID!The parent InventoryItem.
rootIdID ID!No further notes.
movementStockMovementType StockMovementType!The canned movement type (SPEC_REGISTRY — the ops produce receive | adjust | reclass).
quantityString String!The movement MAGNITUDE — a POSITIVE strict decimal string in the variant stock UoM; direction rides the buckets.
fromBucketStockBucketThe bucket this movement DRAINS (adjust-down · reclass source); absent for receive / adjust-up.
toBucketStockBucketThe bucket this movement FILLS (receive · adjust-up · reclass target); absent for adjust-down.
unitCostMoneyEntryThe receive unit cost. Receive-only.
costImpactCostImpactThe SIGNED value delta this movement caused; absent when no cost basis exists.
reasonStringThe reason code/text — REQUIRED on adjust; carries the canned held reason on a reclass into held.
refsString [String!]Provenance document refs (bounded free strings — the PO/receipt refs land typed).
overcommittedBooleanPresent (true) EXACTLY when this movement drove a touched bucket negative.
fromBinIdIDThe bin this movement LEFT.
toBinIdIDThe bin this movement ENTERED.
lotCodeStringThe lot identity the relocate moved.
createdAtString String!No further notes.
updatedAtString String!No further notes.
revisionID ID!No further notes.
revisionNumInt Int!No further notes.

Used by