| 23584 |
ashik.ali |
1 |
<style>
|
|
|
2 |
.modal-content{
|
|
|
3 |
background : white;
|
|
|
4 |
}
|
|
|
5 |
.modelHeaderCustom{
|
|
|
6 |
font-size:14px;
|
|
|
7 |
font-weight:bold;
|
|
|
8 |
}
|
|
|
9 |
.border-highlight{
|
|
|
10 |
border : 3px solid red;
|
|
|
11 |
}
|
|
|
12 |
hr{
|
|
|
13 |
background-color:#dddddd;
|
|
|
14 |
border:none;
|
|
|
15 |
height:1px;
|
|
|
16 |
background:#dddddd;
|
|
|
17 |
}
|
|
|
18 |
.control-label {
|
|
|
19 |
margin-top: 0;
|
|
|
20 |
margin-bottom: 0;
|
|
|
21 |
padding-top: 7px;
|
|
|
22 |
font-weight:bold;
|
|
|
23 |
font-size:14px;
|
|
|
24 |
}
|
|
|
25 |
.right{
|
|
|
26 |
float:right;
|
|
|
27 |
}
|
|
|
28 |
.form-control{
|
|
|
29 |
color:black;
|
|
|
30 |
text-transform:uppercase;
|
|
|
31 |
}
|
|
|
32 |
.bold-details {
|
|
|
33 |
text-transform:capitalize;
|
|
|
34 |
font-weight:600;
|
|
|
35 |
color:#212121;
|
|
|
36 |
}
|
|
|
37 |
.normal-details{
|
|
|
38 |
font-weight:400;
|
|
|
39 |
text-transform:capitalize;
|
|
|
40 |
color:#797979;
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
}
|
|
|
44 |
</style>
|
|
|
45 |
#set($options="{ weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute:'numeric' }")
|
|
|
46 |
<section class="wrapper">
|
|
|
47 |
<div class="row" style="background:white;font-size:14px;">
|
|
|
48 |
<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
|
|
|
49 |
<h4>ORDER DETAILS</h4>
|
|
|
50 |
<div class="row">
|
|
|
51 |
<div class="col-lg-4">
|
|
|
52 |
<p class="bold-details">Order ID</p>
|
|
|
53 |
</div>
|
|
|
54 |
<div class="col-lg-6">
|
| 24277 |
amit.gupta |
55 |
<p class="normal-details">#$fofoOrder.getId() ($fofoOrderItems.size() item)</p>
|
| 23584 |
ashik.ali |
56 |
</div>
|
|
|
57 |
</div>
|
|
|
58 |
<div class="row">
|
|
|
59 |
<div class="col-lg-4">
|
|
|
60 |
<p class="bold-details">Order Date</p>
|
|
|
61 |
</div>
|
|
|
62 |
<div class="col-lg-6">
|
|
|
63 |
<script>document.getElementById('createTimestamp').appendChild(document.createTextNode(new Date('$fofoOrder.getCreateTimestamp()').toLocaleString("en-US",$options)))</script>
|
|
|
64 |
<p class="normal-details" id="createTimestamp"></p>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
<div class="row">
|
|
|
68 |
<div class="col-lg-4">
|
|
|
69 |
<p class="bold-details">Amount Paid</p>
|
|
|
70 |
</div>
|
|
|
71 |
<div class="col-lg-6">
|
|
|
72 |
<p class="normal-details"><span class="normal-details">₹ </span>$fofoOrder.getTotalAmount()</p>
|
|
|
73 |
</div>
|
|
|
74 |
</div>
|
|
|
75 |
</div>
|
|
|
76 |
|
|
|
77 |
<form id="update-order-customer-details-form">
|
|
|
78 |
<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
|
|
|
79 |
<h4>BILLING DETAILS</h4>
|
|
|
80 |
<div class="row">
|
|
|
81 |
<div class="col-lg-4">
|
|
|
82 |
<p class="bold-details">Email Id</p>
|
|
|
83 |
</div>
|
|
|
84 |
<div class="col-lg-6">
|
| 24121 |
govind |
85 |
<input class="form-control input-sm" type="text" name="emailId" placeholder="Email Id" value="$customer.getEmailId()">
|
| 23584 |
ashik.ali |
86 |
</div>
|
| 24121 |
govind |
87 |
</div><br>
|
| 23584 |
ashik.ali |
88 |
<div class="row">
|
|
|
89 |
<div class="col-lg-4">
|
|
|
90 |
<p class="bold-details">Mobile Number</p>
|
|
|
91 |
</div>
|
|
|
92 |
<div class="col-lg-6">
|
| 24121 |
govind |
93 |
<input class="form-control input-sm" type="text" name="mobileNumber" placeholder="Mobile Number" value="$customer.getMobileNumber()">
|
| 23584 |
ashik.ali |
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
<div class="row">
|
|
|
97 |
<div class="col-lg-4">
|
|
|
98 |
<p class="bold-details">First Name</p>
|
|
|
99 |
</div>
|
|
|
100 |
<div class="col-lg-6 form-group">
|
|
|
101 |
<input class="form-control input-sm" type="text" name="firstName" placeholder="First Name" value="$customer.getFirstName()">
|
|
|
102 |
</div>
|
|
|
103 |
</div>
|
|
|
104 |
<div class="row">
|
|
|
105 |
<div class="col-lg-4">
|
|
|
106 |
<p class="bold-details">Last Name</p>
|
|
|
107 |
</div>
|
|
|
108 |
<div class="col-lg-6 form-group">
|
|
|
109 |
<input class="form-control input-sm" type="text" name="lastName" placeholder="Last Name" value="$customer.getLastName()">
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
|
|
112 |
|
|
|
113 |
<div class="row">
|
|
|
114 |
<div class="col-lg-4">
|
|
|
115 |
<p class="bold-details">Line 1</p>
|
|
|
116 |
</div>
|
|
|
117 |
<div class="col-lg-6 form-group">
|
|
|
118 |
<input class="form-control input-sm" type="text" name="line1" placeholder="Line 1" value="$customerAddress.getLine1()">
|
|
|
119 |
</div>
|
|
|
120 |
</div>
|
|
|
121 |
<div class="row">
|
|
|
122 |
<div class="col-lg-4">
|
|
|
123 |
<p class="bold-details">Line 2</p>
|
|
|
124 |
</div>
|
|
|
125 |
<div class="col-lg-6 form-group">
|
|
|
126 |
<input class="form-control input-sm" type="text" name="line2" placeholder="Line 2" value="$customerAddress.getLine2()">
|
|
|
127 |
</div>
|
|
|
128 |
</div>
|
|
|
129 |
<div class="row">
|
|
|
130 |
<div class="col-lg-4">
|
|
|
131 |
<p class="bold-details">Landmark</p>
|
|
|
132 |
</div>
|
|
|
133 |
<div class="col-lg-6 form-group">
|
|
|
134 |
<input class="form-control input-sm" type="text" name="landmark" placeholder="Landmark" value="$customerAddress.getLandmark()">
|
|
|
135 |
</div>
|
|
|
136 |
</div>
|
|
|
137 |
<div class="row">
|
|
|
138 |
<div class="col-lg-4">
|
|
|
139 |
<p class="bold-details">City</p>
|
|
|
140 |
</div>
|
|
|
141 |
<div class="col-lg-6 form-group">
|
|
|
142 |
<input class="form-control input-sm" type="text" name="city" placeholder="city" value="$customerAddress.getCity()">
|
|
|
143 |
</div>
|
|
|
144 |
</div>
|
|
|
145 |
<div class="row">
|
|
|
146 |
<div class="col-lg-4">
|
|
|
147 |
<p class="bold-details">Pin Code</p>
|
|
|
148 |
</div>
|
|
|
149 |
<div class="col-lg-6 form-group">
|
|
|
150 |
<input class="form-control input-sm" type="text" name="pinCode" placeholder="Pin Code" value="$customerAddress.getPinCode()">
|
|
|
151 |
</div>
|
|
|
152 |
</div>
|
|
|
153 |
<div class="row">
|
|
|
154 |
<div class="col-lg-4">
|
|
|
155 |
<p class="bold-details">State</p>
|
|
|
156 |
</div>
|
|
|
157 |
<div class="col-lg-6 form-group">
|
|
|
158 |
<select class="form-control input-sm" id = "state" name = "state" placeholder="State">
|
|
|
159 |
<option value="" disabled selected>State</option>
|
|
|
160 |
#foreach($stateName in $stateNames)
|
|
|
161 |
#if($customerAddress.getState() == $stateName)
|
|
|
162 |
<option value="$stateName" selected>$stateName</option>
|
|
|
163 |
#else
|
|
|
164 |
<option value="$stateName">$stateName</option>
|
|
|
165 |
#end
|
|
|
166 |
#end
|
|
|
167 |
</select>
|
|
|
168 |
</div>
|
|
|
169 |
</div>
|
|
|
170 |
<div class="row">
|
| 24121 |
govind |
171 |
#if($fofoOrder.getCustomerGstNumber())
|
| 23584 |
ashik.ali |
172 |
<div class="col-lg-4">
|
|
|
173 |
<p class="bold-details">GST Number</p>
|
|
|
174 |
</div>
|
|
|
175 |
<div class="col-lg-6 form-group">
|
|
|
176 |
<input class="form-control input-sm" type="text" name="gstNumber" placeholder="GST Number" value="$fofoOrder.getCustomerGstNumber()">
|
|
|
177 |
</div>
|
| 24121 |
govind |
178 |
#else
|
|
|
179 |
<div class="col-lg-4">
|
|
|
180 |
<p class="bold-details">GST Number</p>
|
|
|
181 |
</div>
|
|
|
182 |
<div class="col-lg-6 form-group">
|
|
|
183 |
<input class="form-control input-sm" type="text" name="gstNumber" placeholder="GST Number" value="">
|
| 23584 |
ashik.ali |
184 |
#end
|
|
|
185 |
</div>
|
|
|
186 |
<div class="row">
|
|
|
187 |
<div class="col-md-2 col-md-offset-3">
|
|
|
188 |
<button id="updateCustomerDetails" class="btn btn-primary" type="submit">Update Details</button>
|
|
|
189 |
</div>
|
|
|
190 |
</div>
|
|
|
191 |
</div>
|
|
|
192 |
</form>
|
|
|
193 |
<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
|
|
|
194 |
<h4>INVOICE DETAILS</h4>
|
|
|
195 |
<p class="bold-details">Invoice Number <span class="normal-details extra-margin">$fofoOrder.getInvoiceNumber()</span></p>
|
| 24271 |
amit.gupta |
196 |
<p class="invoice_download_option">
|
|
|
197 |
<i class="fa fa-print" aria-hidden="true"></i>
|
|
|
198 |
<a target="_blank" href="generateInvoice/?orderId=$fofoOrder.getId()" class="extra-margin" style="font-size:18px">Print Invoice</a ></i>
|
|
|
199 |
</p>
|
| 23584 |
ashik.ali |
200 |
</div>
|
|
|
201 |
|
|
|
202 |
</div>
|
|
|
203 |
<br>
|
|
|
204 |
<div class="row" style="font-size:14px;color:#688a7e;">
|
|
|
205 |
<div class="col-lg-12">
|
|
|
206 |
<table class="table table-striped table-advance table-hover">
|
|
|
207 |
<tbody>
|
|
|
208 |
<tr>
|
|
|
209 |
<th>Item Code</th>
|
|
|
210 |
<th>Description</th>
|
|
|
211 |
<th>Unit Price</th>
|
|
|
212 |
<th>Quantity</th>
|
|
|
213 |
<th>Total Price</th>
|
| 24276 |
amit.gupta |
214 |
<th>Actions</th>
|
| 23584 |
ashik.ali |
215 |
</tr>
|
| 24271 |
amit.gupta |
216 |
#foreach( $fofoOrderItem in $fofoOrderItems )
|
|
|
217 |
#set ($total = $fofoOrderItem.getSellingPrice() * $fofoOrderItem.getQuantity())
|
| 23584 |
ashik.ali |
218 |
<tr>
|
| 24271 |
amit.gupta |
219 |
<td>$fofoOrderItem.getItemId()</td>
|
| 23584 |
ashik.ali |
220 |
<td>
|
| 24271 |
amit.gupta |
221 |
$fofoOrderItem.getBrand() $fofoOrderItem.getModelName() $fofoOrderItem.getModelNumber() $fofoOrderItem.getColor()
|
| 23584 |
ashik.ali |
222 |
</td>
|
| 24271 |
amit.gupta |
223 |
<td>$fofoOrderItem.getSellingPrice()</td>
|
|
|
224 |
<td>$fofoOrderItem.getQuantity()</td>
|
| 23584 |
ashik.ali |
225 |
<td>$total</td>
|
| 24277 |
amit.gupta |
226 |
#set ($item = $itemsMap.get($fofoOrderItem.getItemId()))
|
|
|
227 |
#if($item.getCategoryId()==10006)
|
|
|
228 |
#if($fofoOrderItem.isDoa())
|
|
|
229 |
<td><a class="pointer" data-foi="$fofoOrderItem.getId()"
|
|
|
230 |
data-itemdesc="$item.getItemDescription()" data-target=".bs-example-modal-sm" data-toggle="modal">Mark DOA</a></td>
|
|
|
231 |
#else
|
|
|
232 |
<td></td>
|
|
|
233 |
#end
|
| 24271 |
amit.gupta |
234 |
#else
|
| 24277 |
amit.gupta |
235 |
#if($markDefective)
|
|
|
236 |
<td><a class="pointer" data-foi="$fofoOrderItem.getId()"
|
|
|
237 |
data-itemdesc="$item.getItemDescription()" data-target=".bs-example-modal-sm" data-toggle="modal">Mark Defective</a></td>
|
|
|
238 |
#else
|
|
|
239 |
<td></td>
|
|
|
240 |
#end
|
| 24271 |
amit.gupta |
241 |
#end
|
| 24278 |
amit.gupta |
242 |
</tr>
|
| 24277 |
amit.gupta |
243 |
#end
|
| 23584 |
ashik.ali |
244 |
</tbody>
|
|
|
245 |
</table>
|
|
|
246 |
</div>
|
|
|
247 |
</div>
|
|
|
248 |
|
|
|
249 |
<div class="row">
|
|
|
250 |
#if(!$insurancePolicies.isEmpty())
|
|
|
251 |
<div class="col-lg-8">
|
|
|
252 |
<h4>INSURANCE DETAILS</h4>
|
|
|
253 |
<table class="table table-striped table-advance">
|
|
|
254 |
<tbody>
|
|
|
255 |
<tr>
|
|
|
256 |
<th>Description</th>
|
|
|
257 |
<th>Serial Number</th>
|
|
|
258 |
<th>Provider Name</th>
|
|
|
259 |
<th>Amount</th>
|
|
|
260 |
</tr>
|
|
|
261 |
#if(!$insurancePolicies.isEmpty())
|
|
|
262 |
#foreach( $insurancePolicy in $insurancePolicies )
|
|
|
263 |
<tr>
|
|
|
264 |
<td>$insurancePolicy.getBrand() $insurancePolicy.getModelName()</td>
|
|
|
265 |
<td>$insurancePolicy.getSerialNumber()</td>
|
|
|
266 |
<td>$insurancePolicy.getInsuranceProvider().getName()</td>
|
|
|
267 |
<td>$insurancePolicy.getSaleAmount()</td>
|
|
|
268 |
</tr>
|
|
|
269 |
#end
|
|
|
270 |
#end
|
|
|
271 |
</tbody>
|
|
|
272 |
</table>
|
|
|
273 |
</div>
|
|
|
274 |
#end
|
|
|
275 |
|
| 24105 |
govind |
276 |
<div class="col-lg-4 right" style="border-left:1px solid #f0f0f0;background:white;font-size:14px;" >
|
| 23584 |
ashik.ali |
277 |
<h4>PAYMENT DETAILS</h4>
|
| 24105 |
govind |
278 |
|
|
|
279 |
#foreach( $fofoPartnerPaymentOption in $fofoPartnerPaymentOptions )
|
|
|
280 |
#set($paymentOption = $paymentOptionIdPaymentOptionMap.get($fofoPartnerPaymentOption))
|
| 23584 |
ashik.ali |
281 |
<div class="row">
|
|
|
282 |
<div class="col-lg-3">
|
|
|
283 |
<p class="bold-details">$paymentOption.getName()</p>
|
|
|
284 |
</div>
|
|
|
285 |
<div class="col-lg-3">
|
| 24105 |
govind |
286 |
<div class="paymentOptions">
|
|
|
287 |
#if($paymentOptionIdPaymentOptionTransactionMap.get($fofoPartnerPaymentOption))
|
|
|
288 |
<input data-payment-option-id="$fofoPartnerPaymentOption" type="number" class="normal-details" value="$paymentOptionIdPaymentOptionTransactionMap.get($fofoPartnerPaymentOption).getAmount()" style="width:100px;"/>
|
|
|
289 |
#else
|
|
|
290 |
<input data-payment-option-id="$fofoPartnerPaymentOption" type="number" class="normal-details" value="0" style="width:100px;"/>
|
|
|
291 |
#end
|
| 23584 |
ashik.ali |
292 |
</div>
|
|
|
293 |
</div>
|
| 24105 |
govind |
294 |
</div>
|
| 23584 |
ashik.ali |
295 |
#end
|
| 24105 |
govind |
296 |
<div class="col-md-2 col-md-offset-3">
|
| 24152 |
govind |
297 |
<button class="btn btn-primary updatePaymentDetails" data-totalamount="$fofoOrder.getTotalAmount()" data-invoicenumber="$fofoOrder.getInvoiceNumber()" data-fofoid="$fofoOrder.getFofoId()" data-orderid="$fofoOrder.getId()" data-totalnumberofpaymentoptionid="$totalNumberOfPaymentOptionId" data-createddatetime="$fofoOrder.getCreateTimestamp()" type="submit">Update</button>
|
| 24105 |
govind |
298 |
</div><br>
|
| 23584 |
ashik.ali |
299 |
<hr/>
|
|
|
300 |
<div class="row">
|
|
|
301 |
<div class="col-lg-3">
|
|
|
302 |
<p class="bold-details">TOTAL</p>
|
|
|
303 |
</div>
|
|
|
304 |
<div class="col-lg-3">
|
|
|
305 |
<p class="nomal-details">₹$fofoOrder.getTotalAmount() </p>
|
|
|
306 |
</div>
|
|
|
307 |
</div>
|
|
|
308 |
</div>
|
|
|
309 |
</div>
|
|
|
310 |
|
|
|
311 |
</section>
|
| 24277 |
amit.gupta |
312 |
<script type="text/javascript" src="resources/js/customer-return.js?v=${version}"></script>
|
| 24072 |
amit.gupta |
313 |
<script type="text/javascript" src="resources/js/update-order-customer-details.js?v=${version}"></script>
|