The Dammam Airport Company (DACO) Invoice System is a web-based tool designed for comparing commercial offers from various suppliers. The system allows users to enter supplier data, compare pricing, and save historical invoices. It includes features like automatic calculations for VAT and totals, as well as options to download the invoice table in PDF or Excel format.
-
Supplier Comparison Table:
A table to input and compare details for three suppliers, including service number, description, unit, quantity, unit price, and total price. -
Dynamic Calculations:
Automatic calculation of subtotal, VAT (15%), and total price for each supplier based on the entered data. -
Supplier Names:
Users can input supplier names which will appear in the comparison table header and on downloaded PDF/Excel files. -
History Tracking:
The ability to save and view previous comparisons, maintaining a historical record of invoices. -
Download Options:
Export the table as a PDF or Excel file with the calculated values, formatted properly.
- HTML5: To structure the content of the web page.
- Tailwind CSS: For responsive and modern styling of the page.
- JavaScript: For dynamic functionality, including calculations and data persistence.
- jsPDF: To generate PDF files of the invoice table.
- xlsx.js: To export the table data into an Excel file.
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/daco-invoice-system.git
-
Open the
index.htmlfile in your preferred web browser.
- Enter the names of the suppliers in the text fields provided.
- Fill in the comparison table with service details, including quantity and unit prices.
- The system will automatically calculate the subtotal, VAT (15%), and total amount for each supplier.
- Click the "Save History" button to save the current comparison for future reference.
- To download the invoice table, use the provided buttons to export it as a PDF or Excel file.
- Click the "History" button to view the saved comparison history on a separate page.
-
Clone the Repository:
git clone https://github.com/yourusername/daco-invoice-system.git
-
Open the Project:
- Navigate to the project directory and open
index.htmlin any modern web browser to start using the system.
- Navigate to the project directory and open
Contributions are welcome! If you have suggestions for improvements or encounter issues, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.