Subversion Repositories SmartDukaan

Rev

Rev 24105 | Rev 24152 | 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">
55
				<p class="normal-details">#$fofoOrder.getId() ($fofoLineItems.size() item)</p>
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>
196
		<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>
197
	</div>
198
 
199
</div>
200
<br>
201
<div class="row" style="font-size:14px;color:#688a7e;">
202
	<div class="col-lg-12">
203
		<table class="table table-striped table-advance table-hover">
204
			<tbody>
205
				<tr>
206
					<th>Item Code</th>
207
					<th>Description</th>
208
					<th>Unit Price</th>
209
					<th>Quantity</th>
210
					<th>Total Price</th>
211
					<th>Prebooking Quantity</th>
212
					<th>Prebooking Amount</th>
213
				</tr>
214
				 #foreach( $fofoLineItem in $fofoLineItems )
215
				 #set ($total = $fofoLineItem.getSellingPrice() * $fofoLineItem.getQuantity())
216
				 	<tr>
217
				 		<td>$fofoLineItem.getItemId()</td>
218
				 		<td>
219
				 			$fofoLineItem.getBrand() $fofoLineItem.getModelName() $fofoLineItem.getModelNumber() $fofoLineItem.getColor()
220
				 		</td>
221
				 		<td>$fofoLineItem.getSellingPrice()</td>
222
				 		<td>$fofoLineItem.getQuantity()</td>
223
				 		<td>$total</td>
224
				 		#if($itemIdPrebookingOrderItemMap.get($fofoLineItem.getItemId()))
225
							<td>$itemIdPrebookingOrderItemMap.get($fofoLineItem.getItemId()).getQuantity()</td>
226
							<td>$itemIdPrebookingOrderItemMap.get($fofoLineItem.getItemId()).getAdvanceAmount()</td>
227
						#else
228
							<td>0</td>
229
							<td>0</td>
230
						#end
231
				 	</tr>
232
				 #end
233
			</tbody>
234
		</table>
235
	</div>
236
</div>
237
 
238
<div class="row">
239
	#if(!$insurancePolicies.isEmpty())
240
		<div class="col-lg-8">
241
			<h4>INSURANCE DETAILS</h4>
242
    		<table class="table table-striped table-advance">
243
    			<tbody>
244
    				<tr>
245
    					<th>Description</th>
246
    					<th>Serial Number</th>
247
    					<th>Provider Name</th>
248
    					<th>Amount</th>
249
    				</tr>
250
    				#if(!$insurancePolicies.isEmpty())
251
		    			#foreach( $insurancePolicy in $insurancePolicies )
252
		    				<tr>
253
		    					<td>$insurancePolicy.getBrand() $insurancePolicy.getModelName()</td>
254
		    					<td>$insurancePolicy.getSerialNumber()</td>
255
		    					<td>$insurancePolicy.getInsuranceProvider().getName()</td>
256
		    					<td>$insurancePolicy.getSaleAmount()</td>
257
		    				</tr>
258
		    			#end
259
	    			#end
260
    			</tbody>
261
    		</table>
262
    	</div>
263
	#end
264
 
24105 govind 265
	<div class="col-lg-4 right" style="border-left:1px solid #f0f0f0;background:white;font-size:14px;" >
23584 ashik.ali 266
		<h4>PAYMENT DETAILS</h4>
24105 govind 267
 
268
		 #foreach( $fofoPartnerPaymentOption in $fofoPartnerPaymentOptions )
269
		 	#set($paymentOption = $paymentOptionIdPaymentOptionMap.get($fofoPartnerPaymentOption))
23584 ashik.ali 270
		 	<div class="row">
271
		 		<div class="col-lg-3">
272
		 			<p class="bold-details">$paymentOption.getName()</p>
273
		 		</div>
274
		 		<div class="col-lg-3">
24105 govind 275
		 		<div class="paymentOptions">
276
		 		#if($paymentOptionIdPaymentOptionTransactionMap.get($fofoPartnerPaymentOption))
277
		 			<input data-payment-option-id="$fofoPartnerPaymentOption" type="number" class="normal-details"  value="$paymentOptionIdPaymentOptionTransactionMap.get($fofoPartnerPaymentOption).getAmount()" style="width:100px;"/>
278
		 			#else
279
		 			<input data-payment-option-id="$fofoPartnerPaymentOption" type="number" class="normal-details"  value="0" style="width:100px;"/>
280
		 			#end
23584 ashik.ali 281
		 		</div>
282
		 	</div>
24105 govind 283
		 	</div>
23584 ashik.ali 284
		 #end
24105 govind 285
		 <div class="col-md-2 col-md-offset-3">
286
					<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" type="submit">Update</button>
287
			</div><br>
23584 ashik.ali 288
		 <hr/>
289
		 <div class="row">
290
		 	<div class="col-lg-3">
291
		 		<p class="bold-details">TOTAL</p>
292
		 	</div>
293
		 	<div class="col-lg-3">
294
		 		<p class="nomal-details">&#8377;$fofoOrder.getTotalAmount() </p>
295
		 	</div>
296
		 </div>
297
	</div>
298
</div>
299
 
300
</section>
24072 amit.gupta 301
<script type="text/javascript" src="resources/js/update-order-customer-details.js?v=${version}"></script>