# Account Invoice Scan Line Format

**File type:** Fixed length.

**Location:** Prints on account invoice (not exported). Business Rules determine whether a scan line is printed and the two digit company number to use. The printer must also be set up to print scan lines (in `Setup | System | Device | Specifics | Device Control`).

<table><thead><tr><th width="150" align="center">Length</th><th width="595.4285714285713">Description</th></tr></thead><tbody><tr><td align="center">2</td><td>Lockbox company (from Business Rules)</td></tr><tr><td align="center">8</td><td>Invoice amount (last two digits are decimals)</td></tr><tr><td align="center">13</td><td>Invoice number</td></tr><tr><td align="center">1</td><td>Check digit (based on positions 1-23)</td></tr><tr><td align="center">13</td><td>Invoice Number</td></tr><tr><td align="center">1</td><td>Check digit (based on positions 25-37)</td></tr><tr><td align="center">8</td><td>Invoice Amount</td></tr><tr><td align="center">1</td><td>Check digit (based on positions 1-46)</td></tr></tbody></table>

### Formula for Calculating Check Digit

To calculate the check digit, the odd positions are multiplied by 2, the even by 1, and the resulting digits are totaled. The last digit of the total is subtracted from 10, and the remainder is the check digit. Note that it is the digits that are totaled, not the numbers. So, if on odd position were 7, then 7 \* 2 would be 14; when totaled, Circulation would not add 14, but 5 (1 + 4).

For example, with the number `76543210`, Multiplying the odd digits by 2 and the even by one would give us:

`1461046220`

The sum of these digits is 26. 10 - 6 = 4. So the check digit will be 4.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.navigaglobal.com/circulation-user-manual/14-appendix-b-file-formats/account-invoice-scan-line-format.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
