SetTotalStockInput
Input for setTotalStock. Sets the physical stock of a product (or of one of its batches) across all locations to an absolute quantity.
input SetTotalStockInput {
productId: ID!
quantity: Int!
batchId: ID
comment: String
}
Fields
SetTotalStockInput.productId ● ID! non-null scalar
ID of the product.
SetTotalStockInput.quantity ● Int! non-null scalar
Target physical stock quantity, including the stock in boxes and goods receipts. Must be >= 0.
SetTotalStockInput.batchId ● ID scalar
ID of the batch when batch tracking is enabled for the product.
SetTotalStockInput.comment ● String scalar
Free-text comment stored on the booked stock movements, e.g. which tool booked them and why. Shown in the stock history of the product in the Administration.
Member Of
setTotalStock mutation