invoice / templates /invoice.html
Subbu1304's picture
Create templates/invoice.html
c1c5eef verified
raw
history blame contribute delete
881 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Invoice for {{ customer_name }}</title>
</head>
<body>
<h1>Restaurant Invoice</h1>
<p>Date: {{ date_time }}</p>
<h3>Customer: {{ customer_name }}</h3>
<table border="1">
<tr>
<th>Item</th>
<th>Price</th>
</tr>
{% for item, price in zip(items, prices) %}
<tr>
<td>{{ item }}</td>
<td>${{ price }}</td>
</tr>
{% endfor %}
</table>
<p><strong>Subtotal:</strong> ${{ subtotal }}</p>
<p><strong>Tax (8%):</strong> ${{ tax }}</p>
<p><strong>Total:</strong> ${{ total }}</p>
<h3>{{ wish_message }}</h3>
<footer>
<p>Thank you for dining with us!</p>
</footer>
</body>
</html>