← All types

PerformStockCountPayload

Result of performStockCount: the recounted stock, the adjustments raised for any discrepancies, or the validation errors that blocked them.

Fields

The stock records after the count, with their on-hand quantity set to the counted figure and lastCountedAt stamped — returned for every counted record, including those that matched. Null when validation failed.

Stock movements recording the discrepancies, one per record whose count differed from the system quantity by more than 0.001, with reason ADJUSTED, status COMPLETED and the absolute difference as the quantity. Null when every count matched (or when validation failed).

errors

[FieldError!]!Non-null

Per-field validation errors (paths such as "counts[0].countedQuantity"), including stock records not found at the given location. Empty on success; when non-empty nothing was adjusted.

Referenced by (1)
Exact type SDL
"""
Result of `performStockCount`: the recounted stock, the adjustments raised for any discrepancies, or the validation errors that blocked them.
"""
type PerformStockCountPayload {
  """
  The stock records after the count, with their on-hand quantity set to the counted figure and `lastCountedAt` stamped — returned for every counted record, including those that matched. Null when validation failed.
  """
  updatedStocks: [WarehouseStockState!]
  """
  Stock movements recording the discrepancies, one per record whose count differed from the system quantity by more than 0.001, with reason ADJUSTED, status COMPLETED and the absolute difference as the quantity. Null when every count matched (or when validation failed).
  """
  adjustments: [WarehouseTransferState!]
  """
  Per-field validation errors (paths such as "counts[0].countedQuantity"), including stock records not found at the given location. Empty on success; when non-empty nothing was adjusted.
  """
  errors: [FieldError!]!
}