> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/circulation-user-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/circulation-user-manual/14-appendix-b-file-formats/account-invoice-scan-line-format.md). Agents can also search and read this documentation through its [MCP server](https://docs.navigaglobal.com/circulation-user-manual/~gitbook/mcp).

# 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.
