GREENO ERP — SAFE SPLIT DEPLOYMENT PACKAGE

Folder structure to paste into htdocs/greeno or your existing app folder:

index.php
api.php
assets/css/greeno-app.css
assets/js/greeno-app.js
sql/01_sales_summary_tables_and_reconcile.sql
backup/Index_single_file_before_split.php

Deployment steps:
1. Take a full backup of your current htdocs app folder and MySQL database.
2. Copy index.php, api.php, and the assets folder into your app folder.
3. Run sql/01_sales_summary_tables_and_reconcile.sql in MySQL / SQLyog.
4. Open the app and test login, Sale Summary upload, duplicate check, import/repair, export, and print.
5. If anything fails, restore backup/Index_single_file_before_split.php as index.php and your previous api.php.

Important:
- This split is intentionally conservative: business logic is not redesigned.
- The large CSS and JavaScript were moved out of index.php to reduce risk and make future edits safer.
- api.php remains separate for MySQL operations.
- SQL remains separate for database changes.
