# Acceptance test checklist

## Automated baseline

Run `php artisan test`. The shipped suite must pass before deployment. It covers VAT math, ZATCA TLV, document sequences, inventory/accounting transaction flows, returns, immutability, every report query, and PDF generation.

## Manual functional acceptance

- [ ] Login, logout, reset-password email, inactive-user rejection, Arabic language switch, and RTL layout work.
- [ ] A restricted user cannot open an unauthorized transaction URL or use credit override.
- [ ] Company name, VAT number `302176698800003`, address, SAR, VAT rate, logo, and invoice footer are correct.
- [ ] Product barcode search, English-to-Arabic suggestion, unit conversion, duplicate detection, XLSX import, and Excel export work.
- [ ] Purchase finalization increases the correct warehouse, updates weighted average cost, supplier balance, input VAT, and a balanced journal.
- [ ] Sale finalization blocks excess stock/credit, decreases stock, freezes cost/profit snapshots, posts output VAT/accounts, and cannot be finalized twice.
- [ ] Partial sales and purchase returns cannot exceed the source quantity and correctly reverse stock, VAT, ledger, and accounts.
- [ ] Receipt/payment allocations reduce selected document balances and reject over-allocation.
- [ ] Van loading transfers stock from main to van; van sale reduces only van stock; closing shows cash and stock variances.
- [ ] A4 print, downloaded PDF, and 80mm thermal layouts show bilingual product snapshots and exact totals.
- [ ] Decode the invoice QR and confirm tags 1–5, seller VAT, timestamp, total including VAT, and VAT total.
- [ ] Trial balance debit equals credit; P&L, balance sheet, cash/bank book, aging, VAT, stock valuation, and profitability reconcile to source documents.
- [ ] Locked financial periods reject backdated transactions.
- [ ] Backup creation/download succeeds; checksum matches; a restore is tested on a separate database.

## Browser and device acceptance

- [ ] Current Chrome, Edge, and Firefox on desktop.
- [ ] Tablet billing and van workflows.
- [ ] Mobile dashboard, lookup, reports, van workflow, and basic billing.
- [ ] Keyboard billing shortcuts, barcode scanner input, validation focus, and print dialogs.
