Subbu1304 commited on
Commit
5ae3562
·
verified ·
1 Parent(s): 962c472

Update templets/innvoice.html

Browse files
Files changed (1) hide show
  1. templets/innvoice.html +95 -0
templets/innvoice.html CHANGED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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</title>
7
+ <style>
8
+ /* Style for invoice (same as your order page, just extended for invoice) */
9
+ body {
10
+ font-family: Arial, sans-serif;
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+ .invoice-container {
15
+ width: 80%;
16
+ margin: 20px auto;
17
+ padding: 30px;
18
+ border: 1px solid #ddd;
19
+ border-radius: 8px;
20
+ background-color: #f9f9f9;
21
+ }
22
+ .invoice-header {
23
+ text-align: center;
24
+ margin-bottom: 20px;
25
+ }
26
+ .invoice-header h2 {
27
+ font-size: 2rem;
28
+ color: #333;
29
+ }
30
+ .invoice-details, .invoice-items {
31
+ margin-bottom: 20px;
32
+ }
33
+ .invoice-items table {
34
+ width: 100%;
35
+ border-collapse: collapse;
36
+ }
37
+ .invoice-items th, .invoice-items td {
38
+ padding: 8px;
39
+ border: 1px solid #ddd;
40
+ text-align: left;
41
+ }
42
+ .invoice-total {
43
+ font-size: 1.5rem;
44
+ font-weight: bold;
45
+ text-align: right;
46
+ }
47
+ footer {
48
+ text-align: center;
49
+ margin-top: 30px;
50
+ }
51
+ </style>
52
+ </head>
53
+ <body>
54
+ <div class="invoice-container">
55
+ <div class="invoice-header">
56
+ <h2>Invoice</h2>
57
+ <p><strong>Invoice Number:</strong> {{ order['Invoice_No'] }} | <strong>Invoice Date:</strong> {{ order['Invoice_Date'] }}</p>
58
+ </div>
59
+
60
+ <div class="invoice-details">
61
+ <p><strong>Customer Name:</strong> {{ order['Customer_Name'] }}</p>
62
+ <p><strong>Delivery Address:</strong> {{ order['Delivery_Address'] }}</p>
63
+ <p><strong>GSTIN:</strong> {{ order['GSTIN'] }}</p>
64
+ </div>
65
+
66
+ <div class="invoice-items">
67
+ <h3>Order Details</h3>
68
+ <table>
69
+ <tr>
70
+ <th>Item</th>
71
+ <th>Quantity</th>
72
+ <th>Price</th>
73
+ </tr>
74
+ {% for item in order['Order_Details'] %}
75
+ <tr>
76
+ <td>{{ item['name'] }}</td>
77
+ <td>{{ item['quantity'] }}</td>
78
+ <td>{{ item['price'] }}</td>
79
+ </tr>
80
+ {% endfor %}
81
+ </table>
82
+ </div>
83
+
84
+ <div class="invoice-total">
85
+ <p><strong>Total Amount:</strong> ₹{{ order['Total_Amount'] }}</p>
86
+ <p><strong>Discount:</strong> ₹{{ order['Discount'] }}</p>
87
+ <p><strong>Total Bill:</strong> ₹{{ order['Total_Bill'] }}</p>
88
+ </div>
89
+
90
+ <footer>
91
+ <p>Thank you for your order! We hope to serve you again.</p>
92
+ </footer>
93
+ </div>
94
+ </body>
95
+ </html>