# SmartPay360 — Accounts Receivable Module (Scaffold)

Generated: 2025-08-21 12:05

This ZIP contains the folder structure and placeholder files for the AR module:
- Customers, Invoices, Receipts (with allocations), Credit Notes
- Reports (Ageing, Statements, By Sales, Route/Vehicle)
- AJAX endpoints
- SQL schema starter (modules/ar/sql/schema.sql)
- Partial components (`_partials/ar_nav.php`, `_partials/ar_badges.php`)

## How to use
1. Unzip into your project root so paths line up like `/smartpay360/modules/ar/...`.
2. Import `modules/ar/sql/schema.sql` into MySQL (adjust names/indexes as needed).
3. Open any placeholder page and replace the alert with real logic.
4. Wire routes into your sidebar if not already present.

> All PHP files assume your existing `config/db.php` and `includes/layout2.php`.
