# TransferLine type


One product moved by a transfer.

## Fields

### id

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

The line's MAX id.

### lineNo

`Int!`

The line's number within the transfer.

### 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, null with
a `FORBIDDEN_ROLE` error at its path (`extensions.permission`). The rest is returned.

### product

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

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

### quantity

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

The quantity in `unit`, as entered.

### unit

`String!`

The code of the unit that `quantity` is in.

### 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 that the goods moved at, without VAT, as a positive number. Null while
costing is pending, on a line of a set sold as its components, and on the lines of a cancelled
transfer.

### value

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

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

- Inside one valuation area, the line moves no value. Between two areas, it moves this much
  value from the source warehouse's area to the target warehouse's.
- A line of an `OPEN` transfer that is not yet applied 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` transfer that is not yet applied.

### lot

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

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

### sourceLocationCode

`String`

The code of the location the goods were taken from. Null when the source warehouse tracks no
locations, or when it is outside your API key's warehouse scope. In the second case, with the
`warehouse.read` permission, `sourceWarehouse` returns `FORBIDDEN_SCOPE`.

### targetLocationCode

`String`

The code of the location the goods were put to. Null when the target warehouse tracks no
locations, or when it is outside your API key's warehouse scope. In the second case, with the
`warehouse.read` permission, `targetWarehouse` returns `FORBIDDEN_SCOPE`.

### transferAdviceLineId

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

The MAX id of the transfer advice line that this line carries out. Null on a line entered
directly. Requires the `transferAdvice.read` permission. Without it, null with a
`FORBIDDEN_ROLE` error at its path (`extensions.permission`).

### transferAdviceLine

[`TransferAdviceLine`](/chameleoon-max/type/transfer-advice-line)

The whole transfer advice line that this line carries out. Null on a line entered directly.
The same permission applies as for `transferAdviceLineId`.

## Used by

- [`AdviceTransferLineConnection`](/chameleoon-max/type/advice-transfer-line-connection)
- [`AdviceTransferLineEdge`](/chameleoon-max/type/advice-transfer-line-edge)
- [`TransferLineConnection`](/chameleoon-max/type/transfer-line-connection)
- [`TransferLineEdge`](/chameleoon-max/type/transfer-line-edge)
