setStockAtWarehouse
Sets the absolute stock quantity for a (product, warehouse[, batch]) tuple. Computes the delta against the current per-warehouse total and writes one stock movement against the stock-correction special location.
setStockAtWarehouse(
input: SetStockAtWarehouseInput!
): WarehouseStock!
Arguments
setStockAtWarehouse.input ● SetStockAtWarehouseInput! non-null input
Type
WarehouseStock object
Per-warehouse aggregate stock line for a product. One line per (product, warehouse) tuple, maintained by Pickware as a denormalised sum of the matching per-bin Stock lines. Use this when you want "how much of this product lives in warehouse X" without scanning per-bin lines.