PurchaseOrderLine
object type
One embedded PurchaseOrder line.
Fields
| Field | Type | Notes |
|---|---|---|
lineNo | Int Int! | 1-based position (input order) — the receipt addressing key (poLineNo). |
variantId | ID ID! | The ordered variant (ACTIVE-gated; stockless service/bundle styles refuse — stock cannot be received into a stockless junction). |
logicalFacilityId | ID ID! | The RECEIVING LogicalFacility (must belong to the buying org) — defaulted from the OrgVendor defaultShipToLogicalFacilityId when omitted at create. |
quantity | String String! | The ordered quantity (decimal string, stock UoM, strictly positive). |
unitCost | MoneyEntry MoneyEntry! | The merchandise unit cost — REQUIRED effective; in the PO snapshot currency. The landed share joins at receipt post, NOT here. |
manufacturerId | ID | Optional per-line manufacturer. |
expectedArrivalAt | String | Optional expected-arrival instant (UTC ISO-8601) — defaulted create-date + (OVI?? OrgVendor) leadTimeDays when either declares one. |
receivedQty | String String! | Rollup: total received across POSTED receipts (stamped in the receipt-post transaction under the doc OCC). |
outstandingQty | String String! | DERIVED: ordered minus received — never stored (the TR outstandingQty stance); the outstanding on partially_received IS the backorder. |
purchasePackId | ID | The pack-ENTRY audit capture: the pack whose IMMUTABLE unitsPerPack derived quantity (quantity == packQuantity x unitsPerPack, forever). |
packQuantity | Int | The entered pack count (present iff purchasePackId is). |
orderLineRef | SpecialOrderLineRef | The special_order demand line this PO line backorders. |