A simple web-based invoice generator.
-
Add item: Add items to your invoice by entering the appropriate information in the user interface.
-
View or Download: View or download the generated invoice. When you download, the invoice is saved on the server and the unique invoice number will automatically increment.
-
Tax and Discount: Performs calculations by taking into account additional parameters such as tax and discount.
| File | Description |
|---|---|
| index.html | The main HTML file for the user interface. |
| script.js | JavaScript script to control interaction with the interface. |
| pdfmake.min.js | A pdfmake library for generating PDF documents. |
| invoice_number.php | PHP script to generate a unique invoice number. |
| save_pdf.php | PHP script to save the generated PDF invoice. |
| read_invoice_number.php | PHP script to read invoice number from the database. |
| styles.css | Styles file to give the appearance of the user interface. |
- Make sure you have XAMPP or a similar server installed.
- Copy all project files to the web server directory (e.g.
htdocsfor XAMPP). - Start XAMPP and enable the Apache server.
- Open a web browser and type
http://localhost/index.html. - Enter the required information to generate the invoice and save the PDF.
- Web browser that supports JavaScript.
- XAMPP or a similar local server.

