# PurchaseOrderLine

object type

One embedded PurchaseOrder line.

## Fields

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