# TransferAdviceLine type


One product that a transfer advice instructs to move.

## Fields

### id

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

The line's MAX id.

### lineNo

`Int!`

The line's number within the transfer advice.

### variantId

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

The MAX id of the product variant to move.

### quantity

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

The quantity in `unit`, as entered on the transfer advice. A transfer advice created through
the API always uses the base unit.

### unit

`String!`

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

### unitFactor

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

How many base units one `unit` holds. `baseQuantity` is `quantity` times this factor.

### baseQuantity

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

The quantity in base units.

### sourceLocationId

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

The MAX id of the bin to take the goods from. Null when the line names none.

### targetLocationId

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

The MAX id of the bin to put the goods to. Null when the line names none.

### lotId

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

The MAX id of the lot to move. Null when the line names none.

### moved

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

The quantity that linked transfers have moved, in base units.

### remaining

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

The quantity still to move, in base units. While the transfer advice is open, as much of it as
is free at the source warehouse is reserved for it.

### inProgress

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

The quantity on draft transfers, scanned on a handheld or typed in MAX, in base units. It is
in progress and not yet moved.

### transferLines

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

Arguments:

- `first`: `Int`
- `after`: `String`
- `last`: `Int`
- `before`: `String`

The transfer lines that carried out this line, on transfers that are not drafts, oldest first.
A connection, paged with `first`/`after` or `last`/`before`, at most 250 a page.

- Also requires the `transfer.read` permission. Without it, null with `FORBIDDEN_ROLE` at its
  path.
- Null, with an error at its path, when its page cannot be read, for example because of a
  cursor of another parent. The rest of the response is returned.
- A page costs 2 + first (or last) × the cost of one node.

## Used by

- [`TransferAdviceLineConnection`](/chameleoon-max/type/transfer-advice-line-connection)
- [`TransferAdviceLineEdge`](/chameleoon-max/type/transfer-advice-line-edge)
- [`TransferLine`](/chameleoon-max/type/transfer-line)
