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
The product variant's MAX id.
warehouseId
The warehouse's MAX id.
productVariant
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
What is physically in the warehouse, as in StockFigures.
reserved
What is reserved, as in StockFigures.
waiting
What confirmed orders wait for, as in StockFigures. It is already taken off available.
available
What may still be promised, as in StockFigures.
onOrder
What is on order, as in StockFigures.
advised
What is advised, as in StockFigures, less the remaining quantity of filter.exceptAdviceIds.
minQuantity
The minimum. Under it, the card is short.
maxQuantity
What an order fills the card up to. Null when unset: an order fills up to minQuantity.
reorderMultiple
The pack size an order rounds up to. Null when unset.
belowMinimum
Boolean!
Whether available is under minQuantity.
proposedQuantity
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.