PEARL PREMIUM CARS LIMITED - DATABASE DOCUMENT PORTAL

Upload portal.php to public_html.

Open:
yourdomain.com/portal.php

Login:
Username: admin
Password: Pearl2025!

Included:
- Proforma Invoice
- Commercial Invoice
- Final Invoice
- Advance Payment Invoice with bank details
- Payment Receipt
- Save to Database button
- Load saved records
- Download Selected PDF button

Database:
This uses SQLite and creates pearl_documents.sqlite automatically in the same folder.
If saving does not work, make sure PHP SQLite3 extension is enabled on hosting.

PDF:
Click Download Selected PDF, then choose Save as PDF in the print window.
Use A4 / Portrait.

This version is one single PHP file.
The logo is embedded inside portal.php.

Commercial invoice updated to match the uploaded sample format.


DIRECT PDF DOWNLOAD FIX:
The Download Selected PDF button now downloads the selected document directly as a PDF.
It uses html2pdf.js CDN:
https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js

If the button does not download, make sure the browser/server can load external CDN scripts.
