← All types
Ob Object

ReceivePurchaseOrderPayload

Result of receivePurchaseOrder: the updated order and lines, any stock booked in, or the validation errors that blocked it.

Fields

The purchase order after the receipt, with its status moved to RECEIVED (and receivedAt stamped) or PARTIALLY_RECEIVED. Null when validation failed.

The lines touched by this receipt, with their cumulative received quantity and receipt timestamp updated. Null when validation failed.

Warehouse stock created by putting the goods away. Null when no warehouse location was given, or when no received line carried a substrate.

errors

[FieldError!]!Non-null

Per-field validation errors (unknown order, cancelled order, unknown line, non-positive quantity). Empty on success; when non-empty nothing was persisted.

Referenced by (1)
Exact type SDL
"""
Result of `receivePurchaseOrder`: the updated order and lines, any stock booked in, or the validation errors that blocked it.
"""
type ReceivePurchaseOrderPayload {
  """
  The purchase order after the receipt, with its status moved to RECEIVED (and `receivedAt` stamped) or PARTIALLY_RECEIVED. Null when validation failed.
  """
  purchaseOrder: PurchaseOrderState
  """
  The lines touched by this receipt, with their cumulative received quantity and receipt timestamp updated. Null when validation failed.
  """
  updatedLines: [PurchaseOrderLineState!]
  """
  Warehouse stock created by putting the goods away. Null when no warehouse location was given, or when no received line carried a substrate.
  """
  stockEntries: [WarehouseStockState!]
  """
  Per-field validation errors (unknown order, cancelled order, unknown line, non-positive quantity). Empty on success; when non-empty nothing was persisted.
  """
  errors: [FieldError!]!
}