Skip to main content

AdjustStockAtLocationInput

Input for adjustStockAtLocation. Changes the physical stock of a (productId, locationId[, batchId]) tuple by a relative delta (positive or negative).

input AdjustStockAtLocationInput {
productId: ID!
locationId: ID!
delta: Int!
batchId: ID
comment: String
}

Fields​

AdjustStockAtLocationInput.productId ● ID! non-null scalar​

ID of the product.

AdjustStockAtLocationInput.locationId ● ID! non-null scalar​

ID of the location.

AdjustStockAtLocationInput.delta ● Int! non-null scalar​

Signed quantity to apply. Positive values add stock, negative values remove stock. Zero is rejected (no-op).

AdjustStockAtLocationInput.batchId ● ID scalar​

ID of the batch when batch tracking is enabled for the product.

AdjustStockAtLocationInput.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​

adjustStockAtLocation mutation