BinRefill type
A product variant's level on one picking bin, and the refill it asks for. Quantities are in base units.
Fields
variantId
The product variant's MAX id.
warehouseId
The warehouse's MAX id.
location
The picking bin.
minQuantity
Under this, the bin is to be refilled. Null when unset.
maxQuantity
What a refill fills the bin up to. Null when unset: a refill fills up to the minimum.
onLocation
What of the variant is on the bin: its lot released, and not expired where the warehouse blocks expired stock.
coming
What OPEN transfer advices inside the warehouse still have to bring to this bin, except those
of filter.exceptAdviceIds. It counts as already there when the need is worked out, so it is
not proposed twice.
refill
What to move here now, as binRefills works it out. It is exactly the sum of sources.
status
What the level asks for now.
sources
Where the refill comes from, in the order to take it: at most 20, and empty when refill is 0.
Priced as 20 sources, however many it holds.
Costs 20 points plus 20 × one source's selection.