# StockDemand type


What confirmed orders wait for of one product variant in one warehouse, in base units.

## Fields

### variantId

[`UUID!`](/chameleoon-max/type/uuid)

The product variant's MAX id.

### warehouseId

[`UUID!`](/chameleoon-max/type/uuid)

The warehouse's MAX id.

### productVariant

[`ProductVariant`](/chameleoon-max/type/product-variant)

The product variant. Requires the `item.read` permission. Without it, the field is null with a
`FORBIDDEN_ROLE` error at its path, and the rest of the row is returned.

### waiting

[`Decimal!`](/chameleoon-max/type/decimal)

What confirmed orders wait for here, as in [`StockFigures`](/chameleoon-max/type/stock-figures). Always more than 0.

### incoming

[`Decimal!`](/chameleoon-max/type/decimal)

What OPEN transfer advices will make reservable here, less `filter.exceptAdviceIds`. See
[`stockDemand`](/chameleoon-max/query/stock-demand).

### missing

[`Decimal!`](/chameleoon-max/type/decimal)

What is not on its way yet: `waiting` minus `incoming`, and at least 0.

## Used by

- [`StockDemandConnection`](/chameleoon-max/type/stock-demand-connection)
- [`StockDemandEdge`](/chameleoon-max/type/stock-demand-edge)
