# BinRefill type


A product variant's level on one picking bin, and the refill it asks for. Quantities are 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.

### location

[`Location!`](/chameleoon-max/type/location)

The picking bin.

### minQuantity

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

Under this, the bin is to be refilled. Null when unset.

### maxQuantity

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

What a refill fills the bin up to. Null when unset: a refill fills up to the minimum.

### onLocation

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

What of the variant is on the bin: its lot released, and not expired where the warehouse blocks
expired stock.

### coming

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

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

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

What to move here now, as [`binRefills`](/chameleoon-max/query/bin-refills) works it out. It is exactly the sum of `sources`.

### status

[`BinRefillStatus!`](/chameleoon-max/type/bin-refill-status)

What the level asks for now.

### sources

[`[BinRefillSource!]!`](/chameleoon-max/type/bin-refill-source)

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.

## Used by

- [`BinRefillConnection`](/chameleoon-max/type/bin-refill-connection)
- [`BinRefillEdge`](/chameleoon-max/type/bin-refill-edge)
