ABAS FINANCE HUB — PHASE 12-15 FINAL PACKAGE
================================================

STATUS:
Phase 12 — AI Insights & Reminder
Phase 13 — Security, Audit & Backup Review
Phase 14 — UAT / End-to-End Diagnosis
Phase 15 — Production Deployment

PACKAGE INI TIDAK:
- membuat ulang database
- ALTER TABLE
- DROP TABLE
- mengubah app/config/config.php

INSTALL:
1. BACKUP folder ABAS Finance Hub saat ini.
2. Extract package.
3. Merge ke root /abas-finance/.
4. JANGAN overwrite/hapus app/config/config.php.
5. Pastikan storage/backups writable oleh PHP.
6. Login sebagai OWNER.
7. Buka:
   public/insights/index.php
   public/system/security.php
   public/system/backup.php
   public/system/diagnostics.php
   public/system/production.php

PHASE 12:
- Rule-based Smart Insights agar berjalan tanpa API eksternal.
- Piutang overdue/due soon.
- Cash forecast alert.
- Task overdue.
- Quotation expiring.
- Project overdue.
- Negative stock.
- Reminder dibuat menggunakan tabel tasks existing.

PHASE 13:
- Security checklist.
- Audit log viewer.
- Login history viewer.
- One-click SQL database backup.
- Backup tersimpan di storage/backups.
- Internal folder .htaccess protection.

PHASE 14:
- Required tables diagnosis.
- Seed/role/permission/status diagnosis.
- Journal balance diagnosis.
- Negative inventory diagnosis.
- Bank → COA mapping.
- Document sequence consistency.
- Bootstrap disabled check.
- HTTPS/backup readiness.
- Manual end-to-end flow checklist.

PHASE 15:
- Production readiness page.
- Root index redirect.
- Public security headers.
- Go-live checklist.

CATATAN:
- AI V1 bersifat rule-based agar selalu dapat berjalan di shared hosting tanpa biaya API.
- AI eksternal/generative dapat ditambahkan kemudian melalui integration_sources dan integration_events.
- Backup aplikasi ini adalah lapisan tambahan. Tetap aktifkan backup hosting/cPanel.
- Jika server Apache tidak mengizinkan directive tertentu pada .htaccess dan menghasilkan 500,
  hapus directive Options -Indexes terlebih dahulu lalu tes lagi.
- Setelah install, jalankan Diagnostics. FAIL = wajib diperbaiki; WARN = ditinjau.
