Subversion Repositories SmartDukaan

Rev

Rev 28055 | Rev 31738 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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