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