| 33795 |
ranu |
1 |
<style>
|
|
|
2 |
#order-items td {
|
|
|
3 |
align-content: center;
|
|
|
4 |
}
|
|
|
5 |
</style>
|
| 22245 |
ashik.ali |
6 |
<script type="text/javascript">
|
| 31083 |
amit.gupta |
7 |
var cartItemIndex = 0;
|
|
|
8 |
accessoriesDeals = $accessoriesDeals;
|
|
|
9 |
pendingPOCustomer = $pendingPOCustomer;
|
|
|
10 |
pendingPO = $pendingPO;
|
|
|
11 |
console.log(typeof pendingPOCustomer)
|
|
|
12 |
if (pendingPOCustomer != null) {
|
|
|
13 |
$('input.search-phone').val(pendingPOCustomer.mobileNumber).change()
|
|
|
14 |
.attr('readonly', true);
|
|
|
15 |
var mobileNumber = $('.search-phone').val();
|
|
|
16 |
console.log(mobileNumber)
|
| 28339 |
tejbeer |
17 |
|
| 31083 |
amit.gupta |
18 |
writeOldCustomerDetailsByMobileNumber(mobileNumber);
|
|
|
19 |
}
|
|
|
20 |
$(function () {
|
|
|
21 |
var date = new Date();
|
|
|
22 |
var currentMonth = date.getMonth();
|
|
|
23 |
var currentDate = date.getDate();
|
|
|
24 |
var currentYear = date.getFullYear();
|
| 35068 |
ranu |
25 |
$('input[name="dateOfBirth"]').daterangepicker({
|
| 31083 |
amit.gupta |
26 |
maxDate: new Date(currentYear - 18, currentMonth, currentDate),
|
|
|
27 |
startDate: new Date(currentYear - 18, currentMonth, currentDate),
|
|
|
28 |
singleDatePicker: true
|
|
|
29 |
});
|
| 28339 |
tejbeer |
30 |
|
| 31083 |
amit.gupta |
31 |
$('input[name="dgmfgdate"]').daterangepicker({
|
|
|
32 |
minDate: new Date(currentYear, currentMonth - 6, currentDate),
|
|
|
33 |
maxDate: new Date(currentYear, currentMonth, currentDate),
|
|
|
34 |
singleDatePicker: true,
|
|
|
35 |
}, function (start, end) {
|
| 31274 |
amit.gupta |
36 |
const mfgDate = start.format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
|
| 28339 |
tejbeer |
37 |
|
| 31083 |
amit.gupta |
38 |
});
|
|
|
39 |
formLoaded();
|
|
|
40 |
});
|
| 22245 |
ashik.ali |
41 |
</script>
|
|
|
42 |
|
| 21987 |
kshitij.so |
43 |
<section class="wrapper">
|
| 31083 |
amit.gupta |
44 |
<div class="row">
|
|
|
45 |
<div class="col-lg-12">
|
| 31974 |
tejbeer |
46 |
<h3 class="page-header" style="position:relative">
|
| 31083 |
amit.gupta |
47 |
<i class="icon_table"></i>Order
|
| 31975 |
tejbeer |
48 |
#if($fofoStore.getCode().equals("DLSD135"))
|
|
|
49 |
<span style="position:absolute;top:-55px;right:45%"><a class="digify-retailer-login-test" href="${rc.contextPath}/digify/register" target="_blank"> <img src="resources/images/Buyback-Mobile.png"> </a> </span>
|
|
|
50 |
#end
|
| 31083 |
amit.gupta |
51 |
</h3>
|
|
|
52 |
<ol class="breadcrumb">
|
|
|
53 |
<li><i class="fa fa-home"></i><a
|
|
|
54 |
href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
55 |
<li><i class="icon_table"></i>ORDER</li>
|
|
|
56 |
</ol>
|
|
|
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
<form id="cd">
|
| 22245 |
ashik.ali |
60 |
|
| 31083 |
amit.gupta |
61 |
<div id="order-details" style="padding: 10px">
|
|
|
62 |
#if($cartItems.size()==0)
|
|
|
63 |
<div class="card row">
|
|
|
64 |
<p>Your Cart is Empty.</p>
|
|
|
65 |
</div>
|
|
|
66 |
#else
|
|
|
67 |
<div class="row">
|
| 33795 |
ranu |
68 |
<div class="col-lg-9 container" style="background-color: white">
|
| 31083 |
amit.gupta |
69 |
<div class="row">
|
| 31274 |
amit.gupta |
70 |
<div class="col-lg-12">
|
|
|
71 |
<h4 class="modelHeaderCustom" style="font-size: 22px;">Product
|
|
|
72 |
Information</h4>
|
|
|
73 |
<table id="order-items" class="table table-condensed">
|
|
|
74 |
<tr>
|
|
|
75 |
<th style="width: 25%">Description</th>
|
|
|
76 |
<th style="width: 5%">Qty</th>
|
|
|
77 |
<th style="width: 13%">Serial Number</th>
|
|
|
78 |
<th style="width: 13%">Unit Price</th>
|
|
|
79 |
<th style="widht:13%">Activation Discount</th>
|
|
|
80 |
<th style="width: 17%">Mobile Insurance</th>
|
|
|
81 |
<th style="width: 13%">Total Price</th>
|
| 33795 |
ranu |
82 |
<th>Upgrade</th>
|
| 31274 |
amit.gupta |
83 |
</tr>
|
| 28339 |
tejbeer |
84 |
|
| 31274 |
amit.gupta |
85 |
#foreach ($cartItem in $cartItems) #set($mrp="MRP")
|
|
|
86 |
#if($mopPriceMap.get($cartItem.getItemId()).getMrp()!=0)
|
|
|
87 |
#set($mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()(MRP)")
|
|
|
88 |
#end
|
| 31083 |
amit.gupta |
89 |
#set($placeHolder =
|
| 31274 |
amit.gupta |
90 |
"$mopPriceMap.get($cartItem.getItemId()).getPrice()(MOP) - $mrp")
|
|
|
91 |
#set($dp = $mopPriceMap.get($cartItem.getItemId()).getPurchasePrice())
|
|
|
92 |
#if($accessoriesDeals && $cartItem.getItemType() =="NON_SERIALIZED")
|
|
|
93 |
#set($placeHolder =
|
|
|
94 |
"$mopPriceMap.get($cartItem.getItemId()).getPurchasePrice()(DP) -
|
|
|
95 |
$mopPriceMap.get($cartItem.getItemId()).getPrice()(MOP) - $mrp")
|
|
|
96 |
#end
|
|
|
97 |
#if($cartItem.getItemType() =="SERIALIZED") #set($start = 1)
|
|
|
98 |
#set($end = $cartItem.getQuantity())
|
|
|
99 |
#set($range = [$start..$end])
|
|
|
100 |
#foreach ($index in $range)
|
|
|
101 |
<tr>
|
| 33795 |
ranu |
102 |
<td>$cartItem.getDisplayName()
|
|
|
103 |
#if($webOfferMap.size() > 0 || $offerItemMap.get($cartItem.getItemId()).size() > 0)
|
|
|
104 |
<a role="button" style="color:royalblue;font-size: 10px;"
|
|
|
105 |
class="upgrade-offer" data-toggle="modal"
|
|
|
106 |
data-target="#upgradeOfferModal"
|
|
|
107 |
data-itemid="$cartItem.getItemId()">
|
|
|
108 |
- view offer<i class="fas fa-arrow-circle-right"></i>
|
|
|
109 |
</a>
|
|
|
110 |
#end
|
| 35726 |
vikas |
111 |
#if($pinelabsOfferMap.get($cartItem.getItemId()))
|
|
|
112 |
<br/><a role="button" style="color:green;font-size: 10px;"
|
|
|
113 |
class="pinelabs-offer-submit" data-toggle="modal"
|
|
|
114 |
data-target="#pinelabsOfferModal"
|
|
|
115 |
data-itemid="$cartItem.getItemId()">
|
|
|
116 |
- EMI offers<i class="fas fa-arrow-circle-right"></i>
|
|
|
117 |
</a>
|
|
|
118 |
#end
|
| 33795 |
ranu |
119 |
</td>
|
| 31274 |
amit.gupta |
120 |
<td class="table-align-center">1</td>
|
|
|
121 |
<td class="table-align-center"><input readonly type="text"
|
|
|
122 |
itemId="$cartItem.getItemId()"
|
|
|
123 |
itemType="$cartItem.getItemType()"
|
|
|
124 |
name="serialNumber"
|
|
|
125 |
class="serialNumber input-sm form-control">
|
| 32816 |
ranu |
126 |
<input type="hidden" itemId="$cartItem.getItemId()"
|
|
|
127 |
name="customSerialNumber" itemType="$cartItem.getItemType()"
|
|
|
128 |
class="customSerialNumber form-control input-sm">
|
| 33400 |
ranu |
129 |
#if($itemIdAndPoiMap.containsKey($cartItem.getItemId()))
|
|
|
130 |
<input type="hidden" class="poiId"
|
|
|
131 |
value="$itemIdAndPoiMap.get($cartItem.getItemId()).getId()">
|
|
|
132 |
#else
|
|
|
133 |
<input type="hidden" value="0" class="poiId">
|
|
|
134 |
#end
|
|
|
135 |
|
| 31274 |
amit.gupta |
136 |
</td>
|
|
|
137 |
<td class="table-align-center"><input type="number"
|
|
|
138 |
class="unitPrice form-control input-sm"
|
|
|
139 |
name="unitPrice"
|
|
|
140 |
quantity="1"
|
|
|
141 |
itemId="$cartItem.getItemId()"
|
|
|
142 |
mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()"
|
|
|
143 |
dp="$dp"
|
|
|
144 |
mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()"
|
|
|
145 |
isMop="$mopPriceMap.get($cartItem.getItemId()).isMop()"
|
|
|
146 |
placeholder="$placeHolder"></td>
|
|
|
147 |
<td class="table-align-center"><input type="number"
|
|
|
148 |
class="discount form-control input-sm"
|
|
|
149 |
name="discount"
|
|
|
150 |
#if($mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
|
|
151 |
data-maxdiscount="$mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount()"
|
|
|
152 |
max="$mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount()"
|
|
|
153 |
placeholder="Upto $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount()"
|
|
|
154 |
value="$mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount()"
|
|
|
155 |
#else
|
|
|
156 |
readonly value="0"
|
|
|
157 |
#end
|
|
|
158 |
></td>
|
|
|
159 |
<td class="table-align-center">
|
|
|
160 |
<div class="input-group">
|
|
|
161 |
<input type="number" itemId="$cartItem.getItemId()" value="0"
|
|
|
162 |
name="insuranceamount"
|
|
|
163 |
class="insuranceamount form-control input-sm" readonly>
|
|
|
164 |
<input type="hidden" itemId="$cartItem.getItemId()" value="0"
|
| 34788 |
ranu |
165 |
name="insuranceid" class="insuranceid">
|
| 34798 |
ranu |
166 |
<input type="hidden" itemId="$cartItem.getItemId()" value="0"
|
|
|
167 |
name="correlationid" class="correlationid">
|
| 34788 |
ranu |
168 |
<input
|
| 31274 |
amit.gupta |
169 |
type="hidden" itemId="$cartItem.getItemId()" name="ram"
|
|
|
170 |
class="ram"> <input type="hidden"
|
|
|
171 |
itemId="$cartItem.getItemId()"
|
|
|
172 |
name="memory"
|
|
|
173 |
class="memory">
|
|
|
174 |
<input type="hidden" itemId="$cartItem.getItemId()"
|
|
|
175 |
name="mfgdate" class="mfgdate">
|
|
|
176 |
<div class="input-group-btn">
|
|
|
177 |
<button type="button"
|
|
|
178 |
class="btn btn-sm btn-default mk_check_plans"
|
|
|
179 |
data-mop="$mopPriceMap.get($cartItem.getItemId()).getPrice()">
|
|
|
180 |
Check Plans
|
|
|
181 |
</button>
|
|
|
182 |
</div>
|
|
|
183 |
</div>
|
|
|
184 |
</td>
|
|
|
185 |
<td class="table-align-center"><input name="totalPrice"
|
|
|
186 |
class="totalPrice input-sm form-control"
|
|
|
187 |
itemId="$cartItem.getItemId()"
|
|
|
188 |
type="number" value="0" readonly>
|
|
|
189 |
</td>
|
| 33795 |
ranu |
190 |
|
|
|
191 |
<!-- upgrade offer td only in case of when offer is avaialable-->
|
|
|
192 |
|
| 34788 |
ranu |
193 |
<td style="width:14%; text-align: center;">
|
|
|
194 |
#set($summary = $offerItemSummaryMap.get($cartItem.getItemId()))
|
|
|
195 |
#if($summary && $summary.offerTypeMap.size() > 0)
|
| 33795 |
ranu |
196 |
<div style="display: flex;">
|
|
|
197 |
<select name="offerSelect"
|
|
|
198 |
class="form-control offerSelect input-sm"
|
|
|
199 |
itemId="$cartItem.getItemId()">
|
|
|
200 |
<option value="">Select</option>
|
| 34788 |
ranu |
201 |
#foreach($entry in $summary.offerTypeMap.entrySet())
|
|
|
202 |
#set($key = $entry.key)
|
|
|
203 |
#set($data = $entry.value)
|
|
|
204 |
<option
|
|
|
205 |
value="$key"
|
|
|
206 |
data-scheme-payout="$!data.totalSchemePayout"
|
|
|
207 |
data-partner-payout="$!data.totalDealerPayout"
|
| 34805 |
ranu |
208 |
data-customeroffer-ids="$!data.offerItemIds"
|
| 34788 |
ranu |
209 |
>
|
|
|
210 |
Offer Type: $!data.offerType.name() | Scheme:
|
|
|
211 |
₹ $!data.totalSchemePayout | Dealer:
|
|
|
212 |
₹ $!data.totalDealerPayout
|
|
|
213 |
</option>
|
| 33795 |
ranu |
214 |
#end
|
|
|
215 |
</select>
|
|
|
216 |
</div>
|
|
|
217 |
#else
|
|
|
218 |
-
|
|
|
219 |
#end
|
| 34788 |
ranu |
220 |
</td>
|
| 33795 |
ranu |
221 |
|
| 34798 |
ranu |
222 |
|
| 31274 |
amit.gupta |
223 |
</tr>
|
|
|
224 |
#end
|
|
|
225 |
#else
|
| 31083 |
amit.gupta |
226 |
<tr>
|
|
|
227 |
<td>$cartItem.getDisplayName()</td>
|
| 31274 |
amit.gupta |
228 |
<td class="table-align-center">$cartItem.getQuantity()</td>
|
|
|
229 |
<td class="table-align-center">
|
|
|
230 |
<div class="input-group">
|
| 32816 |
ranu |
231 |
<input type="hidden" itemId="$cartItem.getItemId()"
|
| 31274 |
amit.gupta |
232 |
name="serialNumber" itemType="$cartItem.getItemType()"
|
|
|
233 |
class="serialNumber form-control input-sm" readonly>
|
| 32816 |
ranu |
234 |
<input type="text" itemId="$cartItem.getItemId()"
|
|
|
235 |
name="customSerialNumber" itemType="$cartItem.getItemType()"
|
|
|
236 |
class="customSerialNumber form-control input-sm">
|
|
|
237 |
<span style="color:#FF000081;font-size: 10px;">Please add coma seprated serial value in this field</span>
|
| 33437 |
ranu |
238 |
#if($itemIdAndPoiMap.containsKey($cartItem.getItemId()))
|
|
|
239 |
<input type="hidden" class="poiId"
|
|
|
240 |
value="$itemIdAndPoiMap.get($cartItem.getItemId()).getId()">
|
|
|
241 |
#else
|
|
|
242 |
<input type="hidden" value="0" class="poiId">
|
|
|
243 |
#end
|
| 31274 |
amit.gupta |
244 |
</div>
|
| 31083 |
amit.gupta |
245 |
</td>
|
|
|
246 |
<td class="table-align-center"><input type="number"
|
| 31274 |
amit.gupta |
247 |
class="unitPrice input-sm form-control"
|
|
|
248 |
dp="$dp"
|
| 31083 |
amit.gupta |
249 |
name="unitPrice"
|
| 31274 |
amit.gupta |
250 |
quantity="$cartItem.getQuantity()"
|
| 31083 |
amit.gupta |
251 |
itemId="$cartItem.getItemId()"
|
|
|
252 |
mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()"
|
| 32329 |
amit.gupta |
253 |
isMop="$mopPriceMap.get($cartItem.getItemId()).isMop()"
|
| 31274 |
amit.gupta |
254 |
placeholder="$placeHolder"/></td>
|
|
|
255 |
<td>Not Applicable</td>
|
|
|
256 |
<td>Not Applicable</td>
|
| 31083 |
amit.gupta |
257 |
<td class="table-align-center"><input name="totalPrice"
|
| 31274 |
amit.gupta |
258 |
class="totalPrice input-sm form-control"
|
| 31083 |
amit.gupta |
259 |
itemId="$cartItem.getItemId()"
|
|
|
260 |
type="number" value="0" readonly></td>
|
| 33795 |
ranu |
261 |
<td>-</td>
|
| 31083 |
amit.gupta |
262 |
</tr>
|
| 31274 |
amit.gupta |
263 |
#end #end
|
|
|
264 |
</table>
|
|
|
265 |
</div>
|
| 31083 |
amit.gupta |
266 |
</div>
|
|
|
267 |
<div class="row">
|
| 31274 |
amit.gupta |
268 |
<div class="col-lg-3">
|
|
|
269 |
<h4 class="modelHeaderCustom" style="font-size: 22px;">Customer
|
|
|
270 |
Information</h4>
|
| 31083 |
amit.gupta |
271 |
</div>
|
| 31274 |
amit.gupta |
272 |
<div class="col-lg-3" style="margin-top: 15px">
|
|
|
273 |
<input placeholder="Search Mobile" type="number" name="mobile"
|
|
|
274 |
class="form-control search-phone input-sm">
|
| 31083 |
amit.gupta |
275 |
</div>
|
|
|
276 |
</div>
|
| 31274 |
amit.gupta |
277 |
<div class="row customerinfo">
|
|
|
278 |
<div class="col-lg-2 form-group">
|
|
|
279 |
<input placeholder="Mobile Number" type="number" name="mobile"
|
|
|
280 |
class="form-control phone input-sm" readonly>
|
|
|
281 |
</div>
|
|
|
282 |
<div class="col-lg-3 form-group">
|
|
|
283 |
<input placeholder="First Name" name="firstName" type="text"
|
|
|
284 |
value="" class="form-control input-sm firstName" required>
|
|
|
285 |
</div>
|
|
|
286 |
<div class="col-lg-3 form-group">
|
|
|
287 |
<input placeholder="Last Name" name="lastName" type="text"
|
|
|
288 |
value="" class="form-control input-sm lastName">
|
|
|
289 |
</div>
|
|
|
290 |
<div class="col-lg-2 form-group">
|
|
|
291 |
<input id="emailId" name="emailId" type="email" value=""
|
|
|
292 |
class="form-control input-sm email"
|
|
|
293 |
placeholder="Email(xyz@gmail.com)">
|
|
|
294 |
</div>
|
|
|
295 |
<div class="col-lg-2 form-group">
|
|
|
296 |
<button type="button"
|
|
|
297 |
class="btn btn-block btn-primary mk_add_customer"
|
|
|
298 |
style="display: none">Add customer
|
|
|
299 |
</button>
|
|
|
300 |
<button type="button"
|
|
|
301 |
class="btn btn-block btn-primary mk_add_email"
|
|
|
302 |
style="display: none">Update Customer
|
|
|
303 |
</button>
|
|
|
304 |
</div>
|
|
|
305 |
</div>
|
|
|
306 |
|
| 31083 |
amit.gupta |
307 |
<div class="row billinginfo" style="display: none">
|
| 31274 |
amit.gupta |
308 |
<div class="col-lg-12 row">
|
| 31083 |
amit.gupta |
309 |
<div class="col-lg-3">
|
|
|
310 |
<h4 class="modelHeaderCustom" style="font-size: 22px;">Billing
|
|
|
311 |
Address</h4>
|
|
|
312 |
</div>
|
|
|
313 |
<div class="col-lg-3">
|
|
|
314 |
<button type="button"
|
|
|
315 |
class="btn btn-block btn-primary new-address-btn">New
|
|
|
316 |
Address
|
|
|
317 |
</button>
|
|
|
318 |
</div>
|
|
|
319 |
</div>
|
| 31274 |
amit.gupta |
320 |
<div class="row col-lg-12">
|
| 31083 |
amit.gupta |
321 |
<div class="col-lg-3 form-group">
|
|
|
322 |
<input placeholder="GST Number" id="gstNumber" name="gstNumber"
|
|
|
323 |
type="text" value="" class="form-control input-sm">
|
|
|
324 |
</div>
|
|
|
325 |
</div>
|
| 31274 |
amit.gupta |
326 |
<div class="col-lg-12 row" id="customer-address">
|
| 31083 |
amit.gupta |
327 |
<table class="table table-bordered">
|
|
|
328 |
<thead>
|
|
|
329 |
<tr>
|
|
|
330 |
<th>Name</th>
|
|
|
331 |
<th>Address Lines</th>
|
|
|
332 |
<th>City</th>
|
|
|
333 |
<th>State</th>
|
|
|
334 |
<th>Pin</th>
|
|
|
335 |
<th>Mobile</th>
|
|
|
336 |
<th>Action</th>
|
|
|
337 |
</tr>
|
|
|
338 |
</thead>
|
|
|
339 |
<tbody id="address-body">
|
|
|
340 |
</tbody>
|
|
|
341 |
</table>
|
|
|
342 |
</div>
|
|
|
343 |
</div>
|
| 31274 |
amit.gupta |
344 |
<div class="row mk_insurance_row" style="display: none">
|
|
|
345 |
<div class="col-lg-12">
|
|
|
346 |
<h4 class="modelHeaderCustom" style="font-size: 22px;">Insurance Information</h4>
|
| 31083 |
amit.gupta |
347 |
</div>
|
|
|
348 |
<div class="col-lg-3 form-group">
|
|
|
349 |
<label for="gender">Gender</label> <select
|
|
|
350 |
class="form-control input-sm" id="gender" name="gender"
|
|
|
351 |
placeholder="Gender">
|
|
|
352 |
<option value="" disabled selected>Gender</option>
|
|
|
353 |
<option value="1" selected>Male</option>
|
|
|
354 |
<option value="2" selected>Female</option>
|
|
|
355 |
</select>
|
|
|
356 |
</div>
|
|
|
357 |
<div class="col-lg-3 form-group">
|
|
|
358 |
<label for="dateOfBirth">Date Of Birth</label> <input
|
| 35549 |
ranu |
359 |
placeholder="Date Of Birth" id="dateOfBirth"
|
|
|
360 |
type="date" value="" class="form-control">
|
| 31083 |
amit.gupta |
361 |
</div>
|
|
|
362 |
</div>
|
|
|
363 |
</div>
|
| 33795 |
ranu |
364 |
<div class="col-lg-3">
|
| 31083 |
amit.gupta |
365 |
<div id="payment-details"
|
|
|
366 |
style="background: white; background-color: white;"
|
| 33795 |
ranu |
367 |
class="col-lg-12">
|
| 31083 |
amit.gupta |
368 |
<h4 class="modelHeaderCustom" style="font-size: 22px;">Payment
|
|
|
369 |
Details</h4>
|
|
|
370 |
<div class="row">
|
| 31274 |
amit.gupta |
371 |
<div class="col-lg-6">
|
| 31083 |
amit.gupta |
372 |
<h4>Total Amount :</h4>
|
|
|
373 |
</div>
|
|
|
374 |
<div class="col-lg-5">
|
|
|
375 |
<input type="number"
|
|
|
376 |
class="netPayableAmount form-control input-sm" name=""
|
|
|
377 |
value="0" readonly>
|
|
|
378 |
</div>
|
|
|
379 |
</div>
|
|
|
380 |
<div id="payment-option-id-amount-container"
|
|
|
381 |
paymentOptionSize=$paymentOptions.size()>
|
|
|
382 |
#set($a = 0) #set($b = $paymentOptions.size() - 1) #set($range =
|
|
|
383 |
[$a..$b]) #foreach($index in $range)
|
|
|
384 |
<div class="row">
|
|
|
385 |
#set($paymentOption = $paymentOptions[$index])
|
|
|
386 |
#if($paymentOption.getName() == 'ONLINE')
|
| 31274 |
amit.gupta |
387 |
<div class="col-lg-6">
|
|
|
388 |
<h5>$paymentOption.getName() :</h5>
|
| 31083 |
amit.gupta |
389 |
</div>
|
|
|
390 |
<div class="col-lg-5">
|
|
|
391 |
<input type="number" id="paymentOptionIdAmount${index}"
|
|
|
392 |
name="paymentOptionIdAmount${index}"
|
|
|
393 |
class="form-control paymentOptionAmount amount input-sm"
|
| 33400 |
ranu |
394 |
value="$onlineSellingPrice"
|
| 31083 |
amit.gupta |
395 |
paymentOptionId="$paymentOption.getId()" readonly>
|
|
|
396 |
</div>
|
| 33795 |
ranu |
397 |
#elseif($paymentOption.getName() == 'SAMSUNG UPGRADE')
|
|
|
398 |
<div class="col-lg-6">
|
|
|
399 |
<h5>$paymentOption.getName() :</h5>
|
|
|
400 |
</div>
|
|
|
401 |
<div class="col-lg-5">
|
|
|
402 |
<input type="number" id="paymentOptionIdAmount${index}"
|
|
|
403 |
name="paymentOptionIdAmount${index}"
|
|
|
404 |
class="form-control paymentOptionAmount amount input-sm"
|
|
|
405 |
value=""
|
|
|
406 |
paymentOptionId="$paymentOption.getId()" readonly>
|
|
|
407 |
</div>
|
| 31083 |
amit.gupta |
408 |
#else
|
| 31274 |
amit.gupta |
409 |
<div class="col-lg-6">
|
|
|
410 |
<h5>$paymentOption.getName() :</h5>
|
| 31083 |
amit.gupta |
411 |
</div>
|
|
|
412 |
<div class="col-lg-5">
|
|
|
413 |
<input type="number" id="paymentOptionIdAmount${index}"
|
|
|
414 |
name="paymentOptionIdAmount${index}"
|
|
|
415 |
class="form-control paymentOptionAmount amount input-sm"
|
|
|
416 |
value="" paymentOptionId="$paymentOption.getId()">
|
|
|
417 |
</div>
|
|
|
418 |
#end
|
|
|
419 |
</div>
|
|
|
420 |
#end
|
|
|
421 |
</div>
|
|
|
422 |
<div class="row">
|
|
|
423 |
<div class="form-group col-lg-10">
|
|
|
424 |
#if($pendingOrder.getId()) <input type="hidden"
|
|
|
425 |
value="$pendingOrder.getId()" id="poid"/> <input
|
|
|
426 |
type="hidden" value="$pendingOrderItem.getId()" id="poItemId"/>
|
|
|
427 |
#else <input type="hidden" value="0" id="poid"/> <input
|
|
|
428 |
type="hidden" value="0" id="poItemId"/> #end
|
| 28339 |
tejbeer |
429 |
|
| 31083 |
amit.gupta |
430 |
<button class="btn btn-block btn-primary order-checkout"
|
|
|
431 |
type="submit">Create Order
|
|
|
432 |
</button>
|
|
|
433 |
</div>
|
|
|
434 |
</div>
|
|
|
435 |
</div>
|
|
|
436 |
</div>
|
|
|
437 |
</div>
|
|
|
438 |
</div>
|
|
|
439 |
#end
|
|
|
440 |
</div>
|
|
|
441 |
</form>
|
| 28339 |
tejbeer |
442 |
</section>
|
| 31274 |
amit.gupta |
443 |
<div class="modal" id="mobilePlansModal" tabindex="-1"
|
| 31083 |
amit.gupta |
444 |
role="dialog">
|
|
|
445 |
<div class="modal-dialog modal-lg" role="document">
|
|
|
446 |
<div class="modal-content">
|
|
|
447 |
<div class="modal-header">
|
|
|
448 |
<button type="button" class="close" data-dismiss="modal"
|
|
|
449 |
aria-label="Close">
|
|
|
450 |
<span aria-hidden="true">×</span>
|
|
|
451 |
</button>
|
|
|
452 |
<h4 class="modal-title">Choose from plans</h4>
|
|
|
453 |
</div>
|
|
|
454 |
<div class="modal-body" style="overflow-y: auto;max-height: calc(100vh - 210px)">
|
| 31274 |
amit.gupta |
455 |
<div class="container-fluid itemdetails">
|
| 35072 |
ranu |
456 |
<div class="row">
|
| 31274 |
amit.gupta |
457 |
<div class="col-lg-12">
|
| 35072 |
ranu |
458 |
<img src="/resources/images/ProtectPlusBanner.jpg"
|
| 31274 |
amit.gupta |
459 |
style="height:200px"/>
|
| 31083 |
amit.gupta |
460 |
</div>
|
| 35072 |
ranu |
461 |
</div>
|
| 31274 |
amit.gupta |
462 |
<div class="row">
|
|
|
463 |
<div class="col-lg-4">
|
|
|
464 |
<div class="form-group">
|
|
|
465 |
<label for="usr">*Ram(GB):</label>
|
|
|
466 |
<input type="number" class="dgram form-control input-sm"
|
|
|
467 |
name="ram" value="0">
|
|
|
468 |
</div>
|
| 31083 |
amit.gupta |
469 |
</div>
|
| 31274 |
amit.gupta |
470 |
<div class="col-lg-4">
|
|
|
471 |
<div class="form-group">
|
|
|
472 |
<label for="usr">*Memory(GB):</label>
|
|
|
473 |
<input type="number" class="dgmemory form-control input-sm"
|
|
|
474 |
name="memory" value="0">
|
|
|
475 |
</div>
|
| 31083 |
amit.gupta |
476 |
</div>
|
| 31274 |
amit.gupta |
477 |
<div class="col-lg-4">
|
|
|
478 |
<div class="form-group">
|
|
|
479 |
<label for="usr">*Mfg Date:</label>
|
|
|
480 |
<input placeholder="Mfg Date" id="dgmfgdate" name="dgmfgdate"
|
|
|
481 |
type="text" value="" class="form-control input-sm dgmfgdate">
|
|
|
482 |
</div>
|
|
|
483 |
</div>
|
| 31083 |
amit.gupta |
484 |
</div>
|
| 31274 |
amit.gupta |
485 |
<div class="row">
|
|
|
486 |
<div class="col-lg-12 insurancedetails">
|
|
|
487 |
|
| 31083 |
amit.gupta |
488 |
</div>
|
|
|
489 |
</div>
|
|
|
490 |
</div>
|
|
|
491 |
</div>
|
|
|
492 |
</div>
|
|
|
493 |
</div>
|
| 21987 |
kshitij.so |
494 |
</div>
|
| 26810 |
amit.gupta |
495 |
|
| 28339 |
tejbeer |
496 |
<div class="modal modal-lg row" id="newaddressModal" tabindex="-1"
|
| 31083 |
amit.gupta |
497 |
role="dialog">
|
|
|
498 |
<div class="modal-dialog modal-lg" role="document">
|
|
|
499 |
<div class="modal-content">
|
|
|
500 |
<div class="modal-header">
|
|
|
501 |
<button type="button" class="close" data-dismiss="modal"
|
|
|
502 |
aria-label="Close">
|
|
|
503 |
<span aria-hidden="true">×</span>
|
|
|
504 |
</button>
|
|
|
505 |
<h4 class="modal-title">New Address</h4>
|
|
|
506 |
</div>
|
|
|
507 |
<div class="modal-body">
|
|
|
508 |
<form id="newaddress">
|
|
|
509 |
<div class="row">
|
|
|
510 |
<div class="col-lg-4 form-group">
|
|
|
511 |
<input placeholder="First Name" id="firstName" name="firstName"
|
|
|
512 |
type="text" value="" class="form-control input-sm">
|
|
|
513 |
</div>
|
|
|
514 |
<div class="col-lg-4 form-group">
|
|
|
515 |
<input placeholder="Last Name" id="lastName" name="lastName"
|
|
|
516 |
type="text" value="" class="form-control input-sm">
|
|
|
517 |
</div>
|
|
|
518 |
<div class="col-lg-4 form-group">
|
|
|
519 |
<input placeholder="Mobile Number" id="alternatePhone"
|
|
|
520 |
name="alternatePhone" type="text" value=""
|
|
|
521 |
class="form-control input-sm">
|
|
|
522 |
</div>
|
|
|
523 |
</div>
|
|
|
524 |
<div class="row">
|
|
|
525 |
<div class="col-lg-4 form-group">
|
|
|
526 |
<input placeholder="Address Line 1" id="line1" name="line1"
|
|
|
527 |
type="text" size="50" value="" class="form-control input-sm">
|
|
|
528 |
</div>
|
|
|
529 |
<div class="col-lg-4 form-group">
|
|
|
530 |
<input placeholder="Address Line 2" id="line2" name="line2"
|
|
|
531 |
type="text" value="" class="form-control input-sm">
|
|
|
532 |
</div>
|
|
|
533 |
<div class="col-lg-4 form-group">
|
|
|
534 |
<input placeholder="Landmark" id="landmark" name="landmark"
|
|
|
535 |
type="text" value="" class="form-control input-sm">
|
|
|
536 |
</div>
|
|
|
537 |
</div>
|
|
|
538 |
<div class="row">
|
|
|
539 |
<div class="col-lg-3 form-group">
|
|
|
540 |
<input placeholder="Pin Code" id="pinCode" name="pinCode"
|
|
|
541 |
type="number" value="" class="form-control input-sm">
|
|
|
542 |
</div>
|
|
|
543 |
<div class="col-lg-3 form-group">
|
|
|
544 |
<input placeholder="City" id="city" name="city" type="text"
|
|
|
545 |
value="" class="form-control input-sm">
|
|
|
546 |
</div>
|
|
|
547 |
<div class="col-lg-3 form-group">
|
|
|
548 |
<select class="form-control input-sm" id="state" name="state"
|
|
|
549 |
placeholder="State">
|
|
|
550 |
<option value="" disabled selected>State</option>
|
|
|
551 |
#foreach($stateName in $stateNames) #if($retailerStateName ==
|
|
|
552 |
$stateName)
|
|
|
553 |
<option value="$stateName" selected>$stateName</option> #else
|
|
|
554 |
<option value="$stateName">$stateName</option> #end #end
|
| 28339 |
tejbeer |
555 |
|
| 31083 |
amit.gupta |
556 |
</select>
|
|
|
557 |
</div>
|
|
|
558 |
</div>
|
|
|
559 |
</form>
|
|
|
560 |
</div>
|
|
|
561 |
<div class="modal-footer">
|
|
|
562 |
<button type="button" class="btn btn-primary btn-add-address" type="submit">Add
|
|
|
563 |
Address
|
|
|
564 |
</button>
|
|
|
565 |
</div>
|
|
|
566 |
</div>
|
|
|
567 |
</div>
|
| 26817 |
amit.gupta |
568 |
</div>
|
| 33795 |
ranu |
569 |
|
|
|
570 |
<!-- Upgrade offer Modal -->
|
|
|
571 |
<div id="upgradeOfferModal" class="modal" role="dialog">
|
|
|
572 |
<div class="modal-dialog">
|
|
|
573 |
<div class="modal-content">
|
|
|
574 |
|
|
|
575 |
</div>
|
|
|
576 |
</div>
|
|
|
577 |
</div>
|
| 30601 |
amit.gupta |
578 |
|
| 35726 |
vikas |
579 |
<!-- Pinelabs Offer Modal -->
|
|
|
580 |
<div id="pinelabsOfferModal" class="modal" role="dialog">
|
|
|
581 |
<div class="modal-dialog modal-lg">
|
|
|
582 |
<div class="modal-content">
|
|
|
583 |
<div class="modal-header">
|
|
|
584 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
585 |
<h4 class="modal-title">Pinelabs EMI Offers <small class="text-danger">All plans are showing on MOP basis</small></h4>
|
|
|
586 |
</div>
|
|
|
587 |
<div class="modal-body" id="pinelabsOfferModalBody" style="max-height:450px;overflow-y:auto;">
|
|
|
588 |
</div>
|
|
|
589 |
</div>
|
|
|
590 |
</div>
|
|
|
591 |
</div>
|
|
|
592 |
|
|
|
593 |
## Pinelabs offer data rendered per item - grouped accordion by bank name
|
|
|
594 |
#if($pinelabsOfferMap && !$pinelabsOfferMap.isEmpty())
|
|
|
595 |
#foreach($entry in $pinelabsOfferMap.entrySet())
|
|
|
596 |
<div id="pinelabs-data-$entry.key" style="display:none;">
|
|
|
597 |
<div class="panel-group" id="pinelabs-accordion-$entry.key">
|
|
|
598 |
#foreach($issuerEntry in $entry.value.entrySet())
|
|
|
599 |
<div class="panel panel-default">
|
|
|
600 |
<div class="panel-heading" style="cursor:pointer;" data-toggle="collapse" data-parent="#pinelabs-accordion-$entry.key" data-target="#pinelabs-collapse-${entry.key}-${velocityCount}">
|
|
|
601 |
<h4 class="panel-title">
|
|
|
602 |
<span class="glyphicon glyphicon-chevron-down" style="margin-right:8px;font-size:12px;"></span>
|
|
|
603 |
$!issuerEntry.key
|
|
|
604 |
<span class="badge" style="margin-left:8px;">$issuerEntry.value.size() offers</span>
|
|
|
605 |
</h4>
|
|
|
606 |
</div>
|
|
|
607 |
<div id="pinelabs-collapse-${entry.key}-${velocityCount}" class="panel-collapse collapse#if($velocityCount == 1) in#end">
|
|
|
608 |
<div class="panel-body" style="padding:0;">
|
|
|
609 |
<table class="table table-striped table-hover" style="margin-bottom:0;">
|
|
|
610 |
<thead>
|
|
|
611 |
<tr>
|
|
|
612 |
<th>Tenure</th>
|
|
|
613 |
<th>Monthly EMI</th>
|
|
|
614 |
<th>Interest Rate</th>
|
|
|
615 |
<th>EMI Type</th>
|
|
|
616 |
</tr>
|
|
|
617 |
</thead>
|
|
|
618 |
<tbody>
|
|
|
619 |
#foreach($tenure in $issuerEntry.value)
|
|
|
620 |
<tr>
|
|
|
621 |
<td>$!tenure.getTenureValue() months</td>
|
|
|
622 |
<td>#if($tenure.getMonthlyEmiAmount())$!tenure.getMonthlyEmiAmount().getValue() $!tenure.getMonthlyEmiAmount().getCurrency()#end</td>
|
|
|
623 |
<td>$!tenure.getInterestRatePercentage()%</td>
|
|
|
624 |
<td>$!tenure.getEmiType()</td>
|
|
|
625 |
</tr>
|
|
|
626 |
#end
|
|
|
627 |
</tbody>
|
|
|
628 |
</table>
|
|
|
629 |
</div>
|
|
|
630 |
</div>
|
|
|
631 |
</div>
|
|
|
632 |
#end
|
|
|
633 |
</div>
|
|
|
634 |
</div>
|
|
|
635 |
#end
|
|
|
636 |
#end
|
|
|
637 |
|
|
|
638 |
<script type="text/javascript">
|
|
|
639 |
$(document).on('click', '.pinelabs-offer-submit', function() {
|
|
|
640 |
var itemId = $(this).data('itemid');
|
|
|
641 |
var content = $('#pinelabs-data-' + itemId).html();
|
|
|
642 |
$('#pinelabsOfferModalBody').html(content || '<p>No offers available</p>');
|
|
|
643 |
});
|
| 26817 |
amit.gupta |
644 |
</script>
|