| 22095 |
kshitij.so |
1 |
<style>
|
|
|
2 |
.table-striped > tbody > tr:nth-child(odd) > td{
|
|
|
3 |
background: white;
|
|
|
4 |
background-color: white;
|
|
|
5 |
}
|
|
|
6 |
.table-striped > tbody > tr:nth-child(even) > td{
|
|
|
7 |
background: white;
|
|
|
8 |
background-color:white;
|
|
|
9 |
}
|
|
|
10 |
.table-striped > tbody > tr:hover > td,
|
|
|
11 |
.btn:hover{
|
|
|
12 |
color: grey;
|
|
|
13 |
text-decoration: none;
|
|
|
14 |
}
|
|
|
15 |
.btn-primary:hover{
|
|
|
16 |
color: grey;
|
|
|
17 |
text-decoration: none;
|
|
|
18 |
}
|
|
|
19 |
.modal-content{
|
|
|
20 |
background : white;
|
|
|
21 |
}
|
|
|
22 |
.modelHeaderCustom{
|
|
|
23 |
font-weight:bold;
|
|
|
24 |
}
|
|
|
25 |
.border-highlight{
|
|
|
26 |
border : 3px solid red;
|
|
|
27 |
}
|
|
|
28 |
hr{
|
|
|
29 |
background-color:#dddddd;
|
|
|
30 |
border:none;
|
|
|
31 |
height:1px;
|
|
|
32 |
background:#dddddd;
|
|
|
33 |
}
|
|
|
34 |
.control-label {
|
|
|
35 |
margin-top: 0;
|
|
|
36 |
margin-bottom: 0;
|
|
|
37 |
padding-top: 7px;
|
|
|
38 |
font-weight:bold;
|
|
|
39 |
font-size:14px;
|
|
|
40 |
}
|
|
|
41 |
.form-group{
|
|
|
42 |
border-bottom: 1px solid #eff2f7;
|
|
|
43 |
padding-bottom: 15px;
|
|
|
44 |
margin-bottom: 15px;
|
|
|
45 |
}
|
|
|
46 |
.right{
|
|
|
47 |
float:right;
|
|
|
48 |
}
|
|
|
49 |
.form-control{
|
|
|
50 |
color:black;
|
|
|
51 |
}
|
|
|
52 |
.bold-details {
|
|
|
53 |
text-transform:capitalize;
|
|
|
54 |
font-weight:600;
|
|
|
55 |
color:#212121;
|
|
|
56 |
}
|
|
|
57 |
.normal-details{
|
|
|
58 |
font-weight:400;
|
|
|
59 |
text-transform:capitalize;
|
|
|
60 |
color:#797979;
|
|
|
61 |
}
|
|
|
62 |
.extra-margin{
|
|
|
63 |
margin-left:2%;
|
|
|
64 |
}
|
|
|
65 |
.table{
|
|
|
66 |
margin-bottom:20px;
|
|
|
67 |
margin-top:20px;
|
|
|
68 |
}
|
|
|
69 |
}
|
|
|
70 |
</style>
|
|
|
71 |
#set($options="{ weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute:'numeric' }")
|
|
|
72 |
<section class="wrapper">
|
|
|
73 |
<div class="row">
|
|
|
74 |
<div class="col-lg-12">
|
| 23638 |
amit.gupta |
75 |
<h3 class="page-header"><i class="icon_table"></i>Order Details</h3>
|
| 22095 |
kshitij.so |
76 |
<ol class="breadcrumb">
|
| 22116 |
amit.gupta |
77 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
| 34179 |
tejus.loha |
78 |
<li><i class="icon_table"></i>Order Details</li>
|
| 22095 |
kshitij.so |
79 |
</ol>
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|
|
|
82 |
<div class="row" style="background:white;font-size:14px;">
|
|
|
83 |
<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
|
|
|
84 |
<h4>ORDER DETAILS</h4>
|
|
|
85 |
<div class="row">
|
|
|
86 |
<div class="col-lg-4">
|
|
|
87 |
<p class="bold-details">Order ID</p>
|
|
|
88 |
</div>
|
|
|
89 |
<div class="col-lg-6">
|
|
|
90 |
<p class="normal-details">#$fofoOrder.getId() ($fofoLineItems.size() item)</p>
|
|
|
91 |
</div>
|
|
|
92 |
</div>
|
|
|
93 |
<div class="row">
|
|
|
94 |
<div class="col-lg-4">
|
|
|
95 |
<p class="bold-details">Order Date</p>
|
|
|
96 |
</div>
|
|
|
97 |
<div class="col-lg-6">
|
|
|
98 |
<script>document.getElementById('createTimestamp').appendChild(document.createTextNode(new Date('$fofoOrder.getCreateTimestamp()').toLocaleString("en-US",$options)))</script>
|
|
|
99 |
<p class="normal-details" id="createTimestamp"></p>
|
|
|
100 |
</div>
|
|
|
101 |
</div>
|
|
|
102 |
<div class="row">
|
|
|
103 |
<div class="col-lg-4">
|
|
|
104 |
<p class="bold-details">Amount Paid</p>
|
|
|
105 |
</div>
|
|
|
106 |
<div class="col-lg-6">
|
|
|
107 |
<p class="normal-details"><span class="normal-details">₹ </span>$fofoOrder.getTotalAmount()</p>
|
|
|
108 |
</div>
|
|
|
109 |
</div>
|
|
|
110 |
</div>
|
| 32627 |
ranu |
111 |
|
| 22095 |
kshitij.so |
112 |
<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
|
|
|
113 |
<h4>BILLING DETAILS</h4>
|
| 32627 |
ranu |
114 |
#if($customerBillingAddressObj)
|
|
|
115 |
<p class="bold-details">$customerBillingAddressObj.getName() $customerBillingAddressObj.getLastName()</p>
|
|
|
116 |
<p class="normal-details">$customerBillingAddress</p>
|
|
|
117 |
#if($fofoOrder.getCustomerGstNumber() && $fofoOrder.getCustomerGstNumber() != "")
|
|
|
118 |
<p class="bold-details">GST Number <span
|
|
|
119 |
class="normal-details extra-margin">$fofoOrder.getCustomerGstNumber()</span></p>
|
|
|
120 |
#end
|
|
|
121 |
<p class="bold-details">Phone
|
|
|
122 |
<span class="normal-details extra-margin">$customerBillingAddressObj.getPhoneNumber()</span>
|
|
|
123 |
</p>
|
|
|
124 |
#else
|
|
|
125 |
<p class="bold-details">$customerDetailsObj.getFirstName() $customerDetailsObj.getLastName()</p>
|
|
|
126 |
<p class="bold-details">Phone
|
|
|
127 |
<span class="normal-details extra-margin">$customerDetailsObj.getMobileNumber()</span>
|
|
|
128 |
</p>
|
| 23378 |
ashik.ali |
129 |
#end
|
| 32627 |
ranu |
130 |
|
|
|
131 |
|
| 22095 |
kshitij.so |
132 |
</div>
|
| 34179 |
tejus.loha |
133 |
|
| 22095 |
kshitij.so |
134 |
<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
|
|
|
135 |
<h4>INVOICE DETAILS</h4>
|
|
|
136 |
<p class="bold-details">Invoice Number <span class="normal-details extra-margin">$fofoOrder.getInvoiceNumber()</span></p>
|
| 23783 |
ashik.ali |
137 |
<p class="invoice_download_option"><i class="fa fa-print" aria-hidden="true"></i><a target="_blank" href="generateInvoice?orderId=$fofoOrder.getId()" class="extra-margin" style="font-size:18px">Print Invoice</a ></i></p>
|
| 34204 |
tejus.loha |
138 |
<p class="invoice_send_on_whatsapp">WhatsApp No. <input type="number" id="whatsApp-invoice-number" value="$customerDetailsObj.getMobileNumber()" placeholder="Enter WhatsApp number"><button class="btn-success" type="button" onclick="sendInvoiceOnWApp($fofoOrder.getId())" style="margin-left: 5px">Send</button></p>
|
| 22095 |
kshitij.so |
139 |
</div>
|
|
|
140 |
|
|
|
141 |
</div>
|
|
|
142 |
|
|
|
143 |
<div class="row" style="font-size:14px;color:#688a7e;">
|
|
|
144 |
<div class="col-lg-12">
|
|
|
145 |
<table class="table table-striped table-advance table-hover">
|
|
|
146 |
<tbody>
|
|
|
147 |
<tr>
|
|
|
148 |
<th>Item Code</th>
|
| 22245 |
ashik.ali |
149 |
<th>Description</th>
|
| 22095 |
kshitij.so |
150 |
<th>Unit Price</th>
|
|
|
151 |
<th>Quantity</th>
|
|
|
152 |
<th>Total Price</th>
|
|
|
153 |
</tr>
|
|
|
154 |
#foreach( $fofoLineItem in $fofoLineItems )
|
|
|
155 |
#set ($total = $fofoLineItem.getSellingPrice() * $fofoLineItem.getQuantity())
|
|
|
156 |
<tr>
|
|
|
157 |
<td>$fofoLineItem.getItemId()</td>
|
| 22245 |
ashik.ali |
158 |
<td>
|
|
|
159 |
$fofoLineItem.getBrand() $fofoLineItem.getModelName() $fofoLineItem.getModelNumber() $fofoLineItem.getColor()
|
|
|
160 |
</td>
|
| 22095 |
kshitij.so |
161 |
<td>$fofoLineItem.getSellingPrice()</td>
|
|
|
162 |
<td>$fofoLineItem.getQuantity()</td>
|
|
|
163 |
<td>$total</td>
|
|
|
164 |
</tr>
|
|
|
165 |
#end
|
|
|
166 |
</tbody>
|
|
|
167 |
</table>
|
|
|
168 |
</div>
|
|
|
169 |
</div>
|
|
|
170 |
|
|
|
171 |
<div class="row">
|
| 22245 |
ashik.ali |
172 |
#if(!$insurancePolicies.isEmpty())
|
|
|
173 |
<div class="col-lg-8">
|
|
|
174 |
<h4>INSURANCE DETAILS</h4>
|
| 31274 |
amit.gupta |
175 |
<table class="table table-striped table-advance">
|
|
|
176 |
<tbody>
|
|
|
177 |
<tr>
|
|
|
178 |
<th>Plan Name</th>
|
|
|
179 |
<th>Device</th>
|
|
|
180 |
<th>Serial Number</th>
|
|
|
181 |
<th>Provider Name</th>
|
|
|
182 |
<th>Amount</th>
|
|
|
183 |
</tr>
|
|
|
184 |
#if(!$insurancePolicies.isEmpty())
|
|
|
185 |
#foreach( $insurancePolicy in $insurancePolicies )
|
|
|
186 |
<tr>
|
|
|
187 |
<td>$insurancePolicy.getPolicyPlan()</td>
|
|
|
188 |
<td>$insurancePolicy.getBrand() $insurancePolicy.getModelName()</td>
|
|
|
189 |
<td>$insurancePolicy.getSerialNumber()</td>
|
|
|
190 |
<td>$insurancePolicy.getInsuranceProvider().getName()</td>
|
|
|
191 |
<td>$insurancePolicy.getSaleAmount()</td>
|
|
|
192 |
</tr>
|
|
|
193 |
#end
|
| 22245 |
ashik.ali |
194 |
#end
|
|
|
195 |
</tbody>
|
|
|
196 |
</table>
|
|
|
197 |
</div>
|
|
|
198 |
#end
|
| 22095 |
kshitij.so |
199 |
<div class="col-lg-4 right" style="border-left:1px solid #f0f0f0;background:white;font-size:14px;">
|
|
|
200 |
<h4>PAYMENT DETAILS</h4>
|
|
|
201 |
#foreach( $paymentOption in $paymentOptions )
|
|
|
202 |
#if($paymentOption.getAmount() > 0)
|
|
|
203 |
<div class="row">
|
|
|
204 |
<div class="col-lg-3">
|
|
|
205 |
<p class="bold-details">$paymentOption.getType()</p>
|
|
|
206 |
</div>
|
|
|
207 |
<div class="col-lg-3">
|
|
|
208 |
<p class="nomal-details">₹ $paymentOption.getAmount()</p>
|
|
|
209 |
</div>
|
|
|
210 |
</div>
|
|
|
211 |
#end
|
|
|
212 |
#end
|
|
|
213 |
<hr/>
|
|
|
214 |
<div class="row">
|
|
|
215 |
<div class="col-lg-3">
|
|
|
216 |
<p class="bold-details">TOTAL</p>
|
|
|
217 |
</div>
|
|
|
218 |
<div class="col-lg-3">
|
|
|
219 |
<p class="nomal-details">₹$fofoOrder.getTotalAmount() </p>
|
|
|
220 |
</div>
|
|
|
221 |
</div>
|
|
|
222 |
</div>
|
|
|
223 |
</div>
|
|
|
224 |
|
|
|
225 |
</section>
|