# StocktakeCountedLine type


One counted line of a stocktake.

## Fields

### variantId

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

The product variant's MAX id.

### productVariant

[`ProductVariant`](/chameleoon-max/type/product-variant)

The product variant. Its `externalRefs` name it in the external system. Requires the
`item.read` permission. Without it, the field is null with a `FORBIDDEN_ROLE` error at its
path, and the rest of the response is returned.

### locationId

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

The bin's MAX id.

### locationCode

`String!`

The bin's code.

### lotId

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

The lot's MAX id. Null for a line without a lot, or a batch first found while counting.

### lot

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

The lot. 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 response is returned.

### newBatchCode

`String`

The number of a batch found while counting, which has no lot yet. Requires the `lot.read`
permission. Without it, the field is null without an error.

### newSerialNumber

`String`

The new batch's serial number. Requires the `lot.read` permission. Without it, the field is
null without an error.

### newExpiresAt

[`Time`](/chameleoon-max/type/time)

The new batch's expiry. Requires the `lot.read` permission. Without it, the field is null
without an error.

### quantity

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

What was counted, in base units, after the manager's corrections.

## Used by

- [`StocktakeCountedLineConnection`](/chameleoon-max/type/stocktake-counted-line-connection)
- [`StocktakeCountedLineEdge`](/chameleoon-max/type/stocktake-counted-line-edge)
