Skip to content

Viaszx/Invoice_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Invoice Generator


A simple web-based invoice generator.

User interface

web_interface

Functionality

  • 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.

Project Files

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.

How to use

  1. Make sure you have XAMPP or a similar server installed.
  2. Copy all project files to the web server directory (e.g. htdocs for XAMPP).
  3. Start XAMPP and enable the Apache server.
  4. Open a web browser and type http://localhost/index.html.
  5. Enter the required information to generate the invoice and save the PDF.

Requirements

  • Web browser that supports JavaScript.
  • XAMPP or a similar local server.

Example of generated PDF

pdf