# StockSourceLine type


One row a need takes from, and how much, 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 bin.

### lotId

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

The lot's MAX id. Null without a lot.

### lot

[`Lot`](/chameleoon-max/type/lot)

The lot, with its expiry. Null without one. Requires the `lot.read` permission. Without it, the
field is null with a `FORBIDDEN_ROLE` error at its path, and the rest of the line is returned.

### quantity

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

How much to take from this row.

## Used by

- [`StockSourcesResult`](/chameleoon-max/type/stock-sources-result)
