├── README.md ├── index.html └── js └── app.js /README.md: -------------------------------------------------------------------------------- 1 | VueJS Invoice Template 2 | ====================== 3 | This project is a simple invoice template built with HTML, Vue 3, and Bootstrap 5. 4 | 5 | It's designed to help you easily generate dynamic invoices by adding/removing products or services, automatically calculating totals, and applying taxes. 6 | 7 | ## Features 8 | Add or remove products/services: Easily modify the invoice items. 9 | Automatic calculations: Subtotal, tax (10% default), and total are calculated in real-time. 10 | Responsive design: Works seamlessly on all devices using Bootstrap 5. 11 | Editable fields: Quickly update the product/service details, quantity, and price. 12 | 13 | Demo : https://chihebnabil.github.io/vuejs-invoice-template 14 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
38 | {{invoice.from.address}}
39 | {{invoice.from.details}}
40 |
51 | {{invoice.to.address}}
52 | {{invoice.to.details}}
53 |
63 | | Service | 64 |Description | 65 |Hrs/Qty | 66 |Rate/Price | 67 |Sub Total | 68 |
---|---|---|---|---|---|
73 | | {{p.title}} | 74 |{{p.description}} | 75 |{{p.qty}} | 76 |${{p.price.toFixed(2)}} | 77 |${{(p.qty * p.price).toFixed(2)}} | 78 |
81 | | 82 | | 83 | | 84 | | 85 | | ${{(newProduct.qty * newProduct.price).toFixed(2)}} | 86 |
Sub Total: | 95 |${{getSubTotal.toFixed(2)}} | 96 | 97 |
---|---|
TAX ({{(invoice.taxRate * 100).toFixed(2)}}%): | 100 |${{(getSubTotal * invoice.taxRate).toFixed(2)}} | 101 |
Total: | 104 |${{(getSubTotal + getSubTotal * invoice.taxRate).toFixed(2)}} | 105 |