Subversion Repositories SmartDukaan

Rev

Rev 24280 | Rev 27386 | 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>
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">&#8377; </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>
24280 amit.gupta 216
				<script type="text/javascript">
217
				 	fofoLineItemsMap = $fofoOrderItemIdLineItemsMap;
218
				 	foiIdCustomerReturnInventoryItemsMap = $foiIdCustomerReturnInventoryItemsMap;
219
				 	inventoryItemBilledQtyMap = $inventoryItemBilledQtyMap;
220
				 </script>
24271 amit.gupta 221
				 #foreach( $fofoOrderItem in $fofoOrderItems )
24333 amit.gupta 222
				 	#set ($total = $fofoOrderItem.getSellingPrice() * $fofoOrderItem.getQuantity())
23584 ashik.ali 223
				 	<tr>
24271 amit.gupta 224
				 		<td>$fofoOrderItem.getItemId()</td>
23584 ashik.ali 225
				 		<td>
24271 amit.gupta 226
				 			$fofoOrderItem.getBrand() $fofoOrderItem.getModelName() $fofoOrderItem.getModelNumber() $fofoOrderItem.getColor()
23584 ashik.ali 227
				 		</td>
24271 amit.gupta 228
				 		<td>$fofoOrderItem.getSellingPrice()</td>
229
				 		<td>$fofoOrderItem.getQuantity()</td>
23584 ashik.ali 230
				 		<td>$total</td>
24333 amit.gupta 231
					#set ($item = $itemsMap.get($fofoOrderItem.getItemId()))
24277 amit.gupta 232
					#if($item.getCategoryId()==10006)
233
						#if($fofoOrderItem.isDoa())
234
							<td><a class="pointer" data-foi="$fofoOrderItem.getId()" 
235
							data-itemdesc="$item.getItemDescription()" data-target=".bs-example-modal-sm" data-toggle="modal">Mark DOA</a></td>
236
						#else
237
							<td></td>
238
						#end
24271 amit.gupta 239
					#else
24277 amit.gupta 240
						#if($markDefective)
241
							<td><a class="pointer" data-foi="$fofoOrderItem.getId()" 
242
							data-itemdesc="$item.getItemDescription()" data-target=".bs-example-modal-sm" data-toggle="modal">Mark Defective</a></td>
243
						#else
244
							<td></td>
245
						#end
24271 amit.gupta 246
					#end
24278 amit.gupta 247
				 	</tr>
24277 amit.gupta 248
				 #end
23584 ashik.ali 249
			</tbody>
250
		</table>
251
	</div>
24279 amit.gupta 252
		<!-- Small modal -->
253
	<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="exampleModal">
254
	  <div class="modal-dialog modal-md" role="document">
255
	    <div class="modal-content">
256
	    <div class="modal-header">
257
	    	<p class="modal-title"></p>
258
	    </div>
259
	    <div class="modal-body">
260
 
261
	    </div>
262
	    <div class="modal-footer">
263
	    	<button type="button" class="return-submit btn btn-primary">Submit</button>
264
	    </div>
265
	    </div>
266
	  </div>
267
	</div>
23584 ashik.ali 268
</div>
269
 
270
<div class="row">
271
	#if(!$insurancePolicies.isEmpty())
272
		<div class="col-lg-8">
273
			<h4>INSURANCE DETAILS</h4>
274
    		<table class="table table-striped table-advance">
275
    			<tbody>
276
    				<tr>
277
    					<th>Description</th>
278
    					<th>Serial Number</th>
279
    					<th>Provider Name</th>
280
    					<th>Amount</th>
281
    				</tr>
282
    				#if(!$insurancePolicies.isEmpty())
283
		    			#foreach( $insurancePolicy in $insurancePolicies )
284
		    				<tr>
285
		    					<td>$insurancePolicy.getBrand() $insurancePolicy.getModelName()</td>
286
		    					<td>$insurancePolicy.getSerialNumber()</td>
287
		    					<td>$insurancePolicy.getInsuranceProvider().getName()</td>
288
		    					<td>$insurancePolicy.getSaleAmount()</td>
289
		    				</tr>
290
		    			#end
291
	    			#end
292
    			</tbody>
293
    		</table>
294
    	</div>
295
	#end
296
 
24105 govind 297
	<div class="col-lg-4 right" style="border-left:1px solid #f0f0f0;background:white;font-size:14px;" >
23584 ashik.ali 298
		<h4>PAYMENT DETAILS</h4>
24105 govind 299
 
300
		 #foreach( $fofoPartnerPaymentOption in $fofoPartnerPaymentOptions )
301
		 	#set($paymentOption = $paymentOptionIdPaymentOptionMap.get($fofoPartnerPaymentOption))
23584 ashik.ali 302
		 	<div class="row">
303
		 		<div class="col-lg-3">
304
		 			<p class="bold-details">$paymentOption.getName()</p>
305
		 		</div>
306
		 		<div class="col-lg-3">
24105 govind 307
		 		<div class="paymentOptions">
308
		 		#if($paymentOptionIdPaymentOptionTransactionMap.get($fofoPartnerPaymentOption))
309
		 			<input data-payment-option-id="$fofoPartnerPaymentOption" type="number" class="normal-details"  value="$paymentOptionIdPaymentOptionTransactionMap.get($fofoPartnerPaymentOption).getAmount()" style="width:100px;"/>
310
		 			#else
311
		 			<input data-payment-option-id="$fofoPartnerPaymentOption" type="number" class="normal-details"  value="0" style="width:100px;"/>
312
		 			#end
23584 ashik.ali 313
		 		</div>
314
		 	</div>
24105 govind 315
		 	</div>
23584 ashik.ali 316
		 #end
24105 govind 317
		 <div class="col-md-2 col-md-offset-3">
24152 govind 318
					<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 319
			</div><br>
23584 ashik.ali 320
		 <hr/>
321
		 <div class="row">
322
		 	<div class="col-lg-3">
323
		 		<p class="bold-details">TOTAL</p>
324
		 	</div>
325
		 	<div class="col-lg-3">
326
		 		<p class="nomal-details">&#8377;$fofoOrder.getTotalAmount() </p>
327
		 	</div>
328
		 </div>
329
	</div>
330
</div>
331
 
332
</section>
24277 amit.gupta 333
<script type="text/javascript" src="resources/js/customer-return.js?v=${version}"></script>
24072 amit.gupta 334
<script type="text/javascript" src="resources/js/update-order-customer-details.js?v=${version}"></script>