# ReceiptAdviceLine type


One announced line of a receipt advice.

## Fields

### id

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

The line's MAX id.

### lineNo

`Int!`

The line's number within the advice.

### variantId

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

The MAX id of the product variant. Null on a `DRAFT` line that is not matched yet, and on an
item line (`itemId` set) of any status.

### itemId

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

The MAX id of the product that an item line expects, in any of its variants. Null on a variant line.

### supplierSku

`String`

The supplier's own code of the product.

### quantity

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

The quantity as announced, in `unit`.

### unit

`String!`

The unit code of `quantity`.

### unitFactor

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

How many base units one `unit` held when the line was written.

### baseQuantity

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

The announced quantity in base units: `quantity` times `unitFactor`.

### unitPrice

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

The price per `unit`, in the advice's currency, with or without VAT as the advice's
`pricesIncludeVat` says.

### vatPercent

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

The VAT rate in percent.

### expectedAt

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

When the line's goods are due.

### batchCode

`String`

The batch that the supplier's paperwork names.

### expiresAt

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

The expiry that the paperwork names, as a UTC date.

### serialNumber

`String`

The serial number that the paperwork names.

### settlement

[`ReceiptAdviceLineSettlement`](/chameleoon-max/type/receipt-advice-line-settlement)

What a user in MAX decided about the line's difference. Null while nothing is decided.

### received

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

What arrived on open and completed receipts, in base units. MAX reads it only when you select
it.

### remaining

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

What is still announced, in base units: `baseQuantity` less `received`, never below 0.

### inProgress

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

What is on draft receipts, in base units: scanned on a handheld or typed in MAX, on its way in
but not yet received.

### receiptStatus

[`ReceiptAdviceLineReceiptStatus!`](/chameleoon-max/type/receipt-advice-line-receipt-status)

Where the line stands: what arrived against it, judged by the organisation's receipt tolerance.

### receiptLines

[`AdviceReceiptLineConnection`](/chameleoon-max/type/advice-receipt-line-connection)

Arguments:

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

The receipt lines that answered this line, on receipts that are not drafts, oldest first.

- A connection, paged with `first`/`after` or `last`/`before`, at most 250 a page.
- Also requires the `receipt.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

- [`ReceiptAdviceLineConnection`](/chameleoon-max/type/receipt-advice-line-connection)
- [`ReceiptAdviceLineEdge`](/chameleoon-max/type/receipt-advice-line-edge)
- [`ReceiptLine`](/chameleoon-max/type/receipt-line)
