# InstructionProgress type


How far the work on an instruction, such as a transfer advice, has got. MAX reads it off the
documents that carry out the instruction, linked by their header or by a line.

- A `CANCELLED` document counts for nothing.
- It is not a status and never a refusal: an instruction that somebody is working on can still
  be changed.
- Times are on the MAX clock.

## Fields

### linesStarted

`Int!`

The number of lines with anything done or in progress.

### linesDone

`Int!`

The number of lines that are fully done, with nothing remaining.

### linesInProgress

`Int!`

The number of lines with anything on a draft document that carries them out: scanned or typed,
but not yet moved.

### linesRemaining

`Int!`

The number of lines still owed: lines with a remaining quantity above zero while the
instruction is `OPEN`. 0 once the instruction is closed or cancelled.

### activeDocuments

`Int!`

The number of documents that carry out the instruction and are not finished: a draft (from a
handheld or typed in MAX) or an open continuous document. Above zero means that somebody is
working on the instruction.

### startedAt

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

When the first linked document that carries out the instruction was created. Null while
nobody has started.

### lastActivityAt

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

When a linked document that carries out the instruction, or one of its scans, last changed.
Null while nobody has started.

## Used by

- [`ReceiptAdvice`](/chameleoon-max/type/receipt-advice)
- [`TransferAdvice`](/chameleoon-max/type/transfer-advice)
