← All types
Ob Object

WarehouseStockState

A warehouse stock record tracking inventory at a location

Fields

The stock record's id, as a TypeID (e.g. "wst_01K…").

Warehouse location holding this stock, as a TypeID (e.g. "wlc_01K…"). A stockable item held in two locations is two records, not one.

The material catalogue entity or durable operation output this row references, resolved from the row's stockable type and id. Members of the Stockable union are provided by core for OperationProduct and by the active vertical for catalog entities; OperationProduct resolves without a vertical. Rows the vertical cannot resolve — an unmodelled kind such as ink or tooling, or a partner-supplied id with no local record — surface as a StockableMarker carrying the original type, id, external id and label. Never null.

quantity

Float!Non-null

Total quantity on hand at this location, in unit. Never negative. Includes stock that is reserved but not yet issued.

Unit quantity is measured in. Defaults to PC (pieces).

Possible values (15)
CLICK

A billing counter rather than a physical measure: one metered page charged under a cost-per-click press or copier contract.

CM

Centimetres — metric length, a hundredth of a metre.

FT

Feet — imperial length, twelve inches.

G

Grams — metric mass, for light items stocked by weight.

IMPRESSION

A production counter rather than a physical measure: one pass of one sheet through a press. Distinct from SHEET, since a sheet printed on both sides can cost two impressions.

IN

Inches — imperial length, the unit paper sizes are quoted in outside metric markets.

KG

Kilograms — metric mass, the usual unit for reel and other bulk substrate stock.

LB

Pounds — imperial mass, roughly 0.45 kg.

M

Metres — metric length, the usual unit for material bought by the running metre such as a reel or a roll of laminate.

MM

Millimetres — metric length, a thousandth of a metre, and the granularity trim sizes and other sheet dimensions are normally given in.

OZ

Ounces — imperial mass, a sixteenth of a pound.

PC

Pieces: a plain count of discrete items, carrying no dimension at all. The unit stock and transfer quantities fall back to when none is given.

PT

Points — the typographic length unit of one seventy-second of an inch, used for type sizes and rule weights rather than for stock quantities.

REPEAT

One printed repeat of a web: a cut-off in web offset, a repeat in flexo and labels. What a roll press counts when it produces signatures.

SHEET

A count of substrate sheets, the usual unit for sheet-fed stock. Counts the physical sheets held or moved, not the press passes over them (see IMPRESSION).

Quantity committed to jobs but not yet issued. Never negative, and never more than quantity — reserved stock is still physically on hand.

Quantity free to reserve or issue: quantity minus reservedQuantity. Derived, not stored.

Supplier or production batch this stock belongs to. Null when the stock is not batch-tracked.

ISO8601 date after which this stock should not be consumed. Null when the item does not expire. Advisory — nothing blocks issuing expired stock.

ISO8601 timestamp of the last physical stock count that set quantity. Null if the record has never been counted, only transacted.

notes

StringNullable

Free-text operator notes on this stock record.

ISO8601 timestamp the stock record was created.

ISO8601 timestamp the stock record was last modified.

Referenced by (6)
Exact type SDL
"""A warehouse stock record tracking inventory at a location"""
type WarehouseStockState {
  """The stock record's id, as a TypeID (e.g. "wst_01K…")."""
  id: WarehouseStockID!
  """
  Warehouse location holding this stock, as a TypeID (e.g. "wlc_01K…"). A stockable item held in two locations is two records, not one.
  """
  locationId: WarehouseLocationID!
  """
  The material catalogue entity or durable operation output this row references, resolved from the row's stockable type and id. Members of the `Stockable` union are provided by core for OperationProduct and by the active vertical for catalog entities; OperationProduct resolves without a vertical. Rows the vertical cannot resolve — an unmodelled kind such as ink or tooling, or a partner-supplied id with no local record — surface as a `StockableMarker` carrying the original type, id, external id and label. Never null.
  """
  stockable: Stockable!
  """
  Total quantity on hand at this location, in `unit`. Never negative. Includes stock that is reserved but not yet issued.
  """
  quantity: Float!
  """Unit `quantity` is measured in. Defaults to PC (pieces)."""
  unit: MeasurementUnit!
  """
  Quantity committed to jobs but not yet issued. Never negative, and never more than `quantity` — reserved stock is still physically on hand.
  """
  reservedQuantity: Float!
  """
  Quantity free to reserve or issue: `quantity` minus `reservedQuantity`. Derived, not stored.
  """
  availableQuantity: Float!
  """
  Supplier or production batch this stock belongs to. Null when the stock is not batch-tracked.
  """
  batchNumber: String
  """
  ISO8601 date after which this stock should not be consumed. Null when the item does not expire. Advisory — nothing blocks issuing expired stock.
  """
  expiryDate: ISO8601
  """
  ISO8601 timestamp of the last physical stock count that set `quantity`. Null if the record has never been counted, only transacted.
  """
  lastCountedAt: ISO8601
  """Free-text operator notes on this stock record."""
  notes: String
  """ISO8601 timestamp the stock record was created."""
  createdAt: String!
  """ISO8601 timestamp the stock record was last modified."""
  updatedAt: String!
}