# TransferAdvice type


A transfer advice: an instruction to move goods from one warehouse (or bin) to another. It moves
no stock itself; the transfers that carry it out do. While it is `OPEN`, its lines reserve at
the source warehouse as much of what they still have to move as is free there.

## Fields

### id

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

The transfer advice's MAX id.

### number

`String`

The transfer advice's number. Null while the transfer advice is a draft.

### status

[`TransferAdviceStatus!`](/chameleoon-max/type/transfer-advice-status)

The transfer advice's status in its life cycle.

### state

[`TransferAdviceState!`](/chameleoon-max/type/transfer-advice-state)

How far the work on the transfer advice is.

### sourceWarehouseId

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

The MAX id of the warehouse the goods leave.

### targetWarehouseId

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

The MAX id of the warehouse the goods go to.

### legalEntityId

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

The MAX id of the company the transfer advice belongs to.

### issuedAt

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

When the transfer advice was issued.

### plannedAt

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

When the move is planned. Null when no date is planned.

### reference

`String`

The transfer advice's reference. Null when it has none.

### lines

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

Arguments:

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

The lines, by line number. A connection, paged with `first`/`after` or `last`/`before`, at
most 250 a page.

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.

### parameters

[`ParameterConnection`](/chameleoon-max/type/parameter-connection)

Arguments:

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

The text parameters, by name. A connection, paged with `first`/`after` or `last`/`before`, at
most 250 a page.

- Requires the `transferAdvice.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.

### progress

[`InstructionProgress!`](/chameleoon-max/type/instruction-progress)

How far the work on the transfer advice is. Requires the `transferAdvice.read` permission. It
is read for the whole page at once.

### transfers

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

Arguments:

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

The transfers that carry out the transfer advice, linked by their header or by a line, newest
effective first. A connection, paged with `first`/`after` or `last`/`before`, at most 250 a
page.

- Draft transfers are never listed. They are counted in `progress`.
- To filter by status, use [`transfers`](/chameleoon-max/query/transfers) with `filter: {transferAdviceIds, statuses}`.
- 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

- [`cancelTransferAdvice`](/chameleoon-max/mutation/cancel-transfer-advice) (mutation)
- [`transferAdvice`](/chameleoon-max/query/transfer-advice) (query)
- [`CreatePublicTransferAdviceResult`](/chameleoon-max/type/create-public-transfer-advice-result)
- [`LinkedTransferAdviceConnection`](/chameleoon-max/type/linked-transfer-advice-connection)
- [`TransferAdviceConnection`](/chameleoon-max/type/transfer-advice-connection)
- [`TransferAdviceEdge`](/chameleoon-max/type/transfer-advice-edge)
- [`UpdatePublicTransferAdviceResult`](/chameleoon-max/type/update-public-transfer-advice-result)
