# TradeERP Simple Wholesale Update

## Added in this version

- Fixed sidebar bottom visibility with proper scroll, bottom spacing and lighter menu grouping.
- Added automatic Hijri Shamsi display under every Gregorian date input.
- Added Quick Add Customer modal directly inside Sale Invoice screen.
- Added Quick Add Supplier modal directly inside Purchase screen.
- Improved sale product search: search by name/SKU, click item to add, stock and price shown clearly.
- Added WhatsApp configuration in Settings.
  - Default WhatsApp number: 0702172665
  - If WhatsApp phone is empty, system uses business phone.
  - Invoice, purchase, receipt and supplier payment slips now have WhatsApp share buttons.
- Added color settings in Settings.
  - Main success color
  - Dark success color
  - Soft success color
  - Sidebar color
- Improved invoice and purchase print templates.
  - A4 print
  - 80mm thermal print
  - 58mm thermal print
  - Signature, customer/supplier signature and stamp spaces
  - QR code option
- Added smooth success toast notifications and optional success sound.
- Added more Pashto/Dari translation keys for new UI labels.

## Run after replacing files

```bash
composer dump-autoload
php artisan optimize:clear
php artisan route:clear
php artisan view:clear
php artisan config:clear
```

If you want the new default settings and translations inserted into the database, run:

```bash
php artisan db:seed
```

## Note

The QR image uses an online QR image service in the print template. If the system is used fully offline, the invoice will still print normally, but the QR image may not load until internet is available.
