Subbu1304 commited on
Commit
c1c5eef
·
verified ·
1 Parent(s): e1f99af

Create templates/invoice.html

Browse files
Files changed (1) hide show
  1. templates/invoice.html +36 -0
templates/invoice.html ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Invoice for {{ customer_name }}</title>
7
+ </head>
8
+ <body>
9
+ <h1>Restaurant Invoice</h1>
10
+ <p>Date: {{ date_time }}</p>
11
+
12
+ <h3>Customer: {{ customer_name }}</h3>
13
+ <table border="1">
14
+ <tr>
15
+ <th>Item</th>
16
+ <th>Price</th>
17
+ </tr>
18
+ {% for item, price in zip(items, prices) %}
19
+ <tr>
20
+ <td>{{ item }}</td>
21
+ <td>${{ price }}</td>
22
+ </tr>
23
+ {% endfor %}
24
+ </table>
25
+
26
+ <p><strong>Subtotal:</strong> ${{ subtotal }}</p>
27
+ <p><strong>Tax (8%):</strong> ${{ tax }}</p>
28
+ <p><strong>Total:</strong> ${{ total }}</p>
29
+
30
+ <h3>{{ wish_message }}</h3>
31
+
32
+ <footer>
33
+ <p>Thank you for dining with us!</p>
34
+ </footer>
35
+ </body>
36
+ </html>