PurchasePack
object type
A purchase pack — a purchasing/handling packaging definition ON a variant (case of 24, pallet of 480): NOT a UoM conversion; a pack is packaging metadata + a line-ENTRY breakdown step (PO/Receipt lines entered in packs resolve to stock units at entry: packQuantity x unitsPerPack). Parent = the variant (0..N packs per variant). unitsPerPack is immutable at birth, which keeps every stored document line reconstructible forever. The code is a dup-gated label. Live packs block the parent Variant doom (the children law); live OrgVendorItems naming a pack block ITS doom; deactivate stays free everywhere (an inactive pack refuses NEW line entry while its unitsPerPack keeps denominating stored terms).
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like PK-… — stable for the record’s life. |
type | String String! | The kind of record — always PurchasePack here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of active, inactive or doomed. |
parentId | ID ID! | The parent Variant; for a PurchasePack parentId!== rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
code | String String! | The pack label (at most 64 chars) — dup-gated among live siblings on the same variant; editable (re-gated). |
unitsPerPack | String String! | Stock units per pack in the variant stock UoM (strictly positive decimal, 4 dp — covers weight-UoM variants). Immutable at birth. |
packGtin | String | Optional pack GTIN — GTIN-14/ITF-14 validated; optional + editable. |
nominalWeightKg | String | Optional nominal pack weight in kilograms; optional + editable. |
lengthCm | String | Optional outer length in centimeters; optional + editable. |
widthCm | String | Optional outer width in centimeters (the dims trio); optional + editable. |
heightCm | String | Optional outer height in centimeters (the dims trio); optional + editable. |