Subversion Repositories SmartDukaan

Rev

Rev 27861 | Rev 31274 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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