# PlanningCard type


A stock card that has a minimum: its figures, its levels and what to order to cover it, in the
variant's base unit. Requires the `stockCard.read` permission.

## 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 card is returned.

### quantity

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

What is physically in the warehouse, as in [`StockFigures`](/chameleoon-max/type/stock-figures).

### reserved

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

What is reserved, as in [`StockFigures`](/chameleoon-max/type/stock-figures).

### waiting

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

What confirmed orders wait for, as in [`StockFigures`](/chameleoon-max/type/stock-figures). It is already taken off `available`.

### available

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

What may still be promised, as in [`StockFigures`](/chameleoon-max/type/stock-figures).

### onOrder

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

What is on order, as in [`StockFigures`](/chameleoon-max/type/stock-figures).

### advised

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

What is advised, as in [`StockFigures`](/chameleoon-max/type/stock-figures), less the remaining quantity of `filter.exceptAdviceIds`.

### minQuantity

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

The minimum. Under it, the card is short.

### maxQuantity

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

What an order fills the card up to. Null when unset: an order fills up to `minQuantity`.

### reorderMultiple

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

The pack size an order rounds up to. Null when unset.

### belowMinimum

`Boolean!`

Whether `available` is under `minQuantity`.

### proposedQuantity

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

What to order. When `available` + `onOrder` + `advised` is under `minQuantity`, it is
`maxQuantity` (or else `minQuantity`) minus that sum, rounded up to `reorderMultiple`; otherwise
0. It is more than 0 exactly when the card matches `expectedBelowMinimum`. The dashboard's "to
order" list proposes the same quantity.

## Used by

- [`PlanningCardConnection`](/chameleoon-max/type/planning-card-connection)
- [`PlanningCardEdge`](/chameleoon-max/type/planning-card-edge)
