# JUSTSALE POS v3.1.9 Distribution

This package contains the complete JUSTSALE POS system upgraded to version 3.1.9.

## NEW FEATURES IN v3.1.9
- **Centralized Update Engine**: Improved database migration logic using `api/db.php`.
- **Streamlined Update Workflow**: Standardized "DIST" folder structure for future releases.
- **Improved Security**: Whitelisted update scripts in licensing middleware for smoother migrations.
- **Product Batches & Expiry (v3.0.0 legacy)**: Continued support for powerful inventory tracking.

## HOW TO UPDATE FROM 2.x or 3.0.x
1. **BACKUP YOUR DATABASE**: Always back up your current database before updating.
2. **UPLOAD FILES**: Upload/replace all files from this folder to your web server root.
   - *Note: Do not overwrite `api/db.php` if you want to keep your existing database configuration.*
3. **RUN DATABASE SYNC**: open your browser and go to `https://your-domain.com/finish_update.php`.
   - This will automatically detect your version and apply all necessary SQL changes.
4. **DELETE UPDATE FILE**: Once the update is successful, delete `finish_update.php` from your server for security.
5. **ENJOY**: You are now running JUSTSALE v3.1.0!

---
*Powered by [JUSTSALE](https://justsale.co.tz)*
