# IssueLine type


One product issued.

## Fields

### id

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

The line's MAX id.

### lineNo

`Int!`

The line's number within the issue.

### productVariantId

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

The MAX id of the product variant.

### productVariant

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

The product variant the line moves. Requires the `item.read` permission. Without it, the
field is null with a `FORBIDDEN_ROLE` error at its path (`extensions.permission`), and the rest
of the response is returned.

### product

[`Product`](/chameleoon-max/type/product)

The variant's parent product. Requires the `item.read` permission. Without it, the field is
null with a `FORBIDDEN_ROLE` error at its path (`extensions.permission`), and the rest of the
response is returned.

### quantity

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

The quantity in `unit`, as entered.

### unit

`String!`

The unit code of `quantity`.

### baseQuantity

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

The quantity in `baseUnit`.

### baseUnit

`String!`

The code of the product's base unit ([`Product`](/chameleoon-max/type/product)).

### unitCost

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

The cost per base unit at which the goods left stock, without VAT, as a positive amount. It is
the valuation area's average cost.

Null in these cases:

- While costing is pending.
- On an exploded set line. Its value is its components' value, and they have no single price
  per set.
- On the lines of a cancelled issue.

### value

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

What the line's goods were worth, without VAT, as a positive amount. Null while costing is
pending.

A line of an `OPEN` issue that is not yet applied to stock has `value` null and
`costingPending` `false`, and is not counted in `totalValue`.

### costingPending

`Boolean!`

`true` while any of the line's stock movements waits to be costed. `false` for a line of an
`OPEN` issue that is not yet applied to stock.

### lot

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

The batch or serial number issued, when the product tracks one.

### locationCode

`String`

The location the goods were taken from, when the warehouse tracks locations.

## Used by

- [`IssueLineConnection`](/chameleoon-max/type/issue-line-connection)
- [`IssueLineEdge`](/chameleoon-max/type/issue-line-edge)
