# Receipt display options

Invoice Setup controls VAT Per Product on Receipt, VAT Per Product in Retail /
Wholesale, Payment Status, Previous Customer Balance and Total Customer Balance.
The VAT options and customer-balance options default to No. Payment Status defaults
to Yes to preserve existing partial-payment receipts. These are display settings;
tax calculation, payments, stock and journals are unchanged.

VAT per product uses the item's tax amount and classification. Tax Summary remains
independent, showing one row for each tax type/rate, without a duplicate VAT / Tax
total. A4's item VAT column follows the VAT Per Product on Receipt option.

Previous Balance means other currently unpaid, non-voided sales for this customer
in the same branch, excluding this invoice. Total Balance adds this invoice's
outstanding amount. These are current balances when printing, not a historical
snapshot; later payments change them on reprint. Advances stay separate until
applied to a bill. Walk-in customers do not have customer-balance rows.

Receipt Footer accepts headings, paragraphs, bold/italic text, div/span, and br.
Safe inline CSS supports font-size (8-40px), font-weight, text-align, hex colors
and line-height. Example:

```html
<h1 style="text-align:center;font-size:24px">Thank you</h1>
<br>
<h2 style="text-align:center">Till number: 12345</h2>
```

Scripts, event handlers, external resources and arbitrary layout CSS are removed.
Browser thermal and A4 receipts render this formatting. The existing Windows
restaurant text print agent retains text and line breaks, not HTML/CSS sizing;
it will not print raw markup. No print-agent reinstall is needed for these changes.

Deploy the updated files and clear compiled views. No database migration is needed;
the options are saved in the existing system settings table.
