Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
22095 kshitij.so 1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
3
  background: white;
4
  background-color: white;
5
}
6
.table-striped > tbody > tr:nth-child(even) > td{
7
  background: white;
8
  background-color:white;
9
}
10
.table-striped > tbody > tr:hover > td,
11
	.btn:hover{
12
  	color: grey;
13
  	text-decoration: none;
14
	}
15
	.btn-primary:hover{
16
  	color: grey;
17
  	text-decoration: none;
18
	}
19
.modal-content{
20
		background : white;
21
	}
22
	.modelHeaderCustom{
23
		font-weight:bold;
24
	}
25
	.border-highlight{
26
		border : 3px solid red;
27
	}
28
	hr{
29
		background-color:#dddddd;
30
		border:none;
31
		height:1px;
32
		background:#dddddd;
33
	}
34
	.control-label {
35
		margin-top: 0;
36
    	margin-bottom: 0;
37
    	padding-top: 7px;
38
    	font-weight:bold;
39
    	font-size:14px;
40
	}
41
	.form-group{
42
		border-bottom: 1px solid #eff2f7;
43
    	padding-bottom: 15px;
44
    	margin-bottom: 15px;
45
	}
46
	.right{
47
		float:right;
48
	}
49
	.form-control{
50
		color:black;
51
	}
52
	.bold-details {
53
		text-transform:capitalize;
54
		font-weight:600;
55
		color:#212121;
56
	}
57
	.normal-details{
58
		font-weight:400;
59
		text-transform:capitalize;
60
		color:#797979;
61
	}
62
	.extra-margin{
63
		margin-left:2%;
64
	}
65
	.table{
66
		margin-bottom:20px;
67
		margin-top:20px;
68
	}
69
}
70
</style>
71
#set($options="{ weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute:'numeric' }")
72
<section class="wrapper">
73
<div class="row">
74
		<div class="col-lg-12">
23638 amit.gupta 75
			<h3 class="page-header"><i class="icon_table"></i>Order Details</h3>
22095 kshitij.so 76
			<ol class="breadcrumb">
22116 amit.gupta 77
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
22095 kshitij.so 78
				<li><i class="icon_table"></i>Order Details</li>						  	
79
			</ol>
80
		</div>
81
</div>
82
<div class="row" style="background:white;font-size:14px;">
83
	<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
84
		<h4>ORDER DETAILS</h4>
85
		<div class="row">
86
			<div class="col-lg-4">
87
				<p class="bold-details">Order ID</p>
88
			</div>
89
			<div class="col-lg-6">
90
				<p class="normal-details">#$fofoOrder.getId() ($fofoLineItems.size() item)</p>
91
			</div>
92
		</div>
93
		<div class="row">
94
			<div class="col-lg-4">
95
				<p class="bold-details">Order Date</p>
96
			</div>
97
			<div class="col-lg-6">
98
				<script>document.getElementById('createTimestamp').appendChild(document.createTextNode(new Date('$fofoOrder.getCreateTimestamp()').toLocaleString("en-US",$options)))</script>
99
				<p class="normal-details" id="createTimestamp"></p>
100
			</div>
101
		</div>
102
		<div class="row">
103
			<div class="col-lg-4">
104
				<p class="bold-details">Amount Paid</p>
105
			</div>
106
			<div class="col-lg-6">
107
				<p class="normal-details"><span class="normal-details">&#8377; </span>$fofoOrder.getTotalAmount()</p>
108
			</div>
109
		</div>
110
	</div>
32627 ranu 111
 
22095 kshitij.so 112
	<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
113
		<h4>BILLING DETAILS</h4>
32627 ranu 114
		#if($customerBillingAddressObj)
115
			<p class="bold-details">$customerBillingAddressObj.getName() $customerBillingAddressObj.getLastName()</p>
116
			<p class="normal-details">$customerBillingAddress</p>
117
			#if($fofoOrder.getCustomerGstNumber() && $fofoOrder.getCustomerGstNumber() != "")
118
				<p class="bold-details">GST Number <span
119
						class="normal-details extra-margin">$fofoOrder.getCustomerGstNumber()</span></p>
120
			#end
121
			<p class="bold-details">Phone
122
				<span class="normal-details extra-margin">$customerBillingAddressObj.getPhoneNumber()</span>
123
			</p>
124
		#else
125
			<p class="bold-details">$customerDetailsObj.getFirstName() $customerDetailsObj.getLastName()</p>
126
			<p class="bold-details">Phone
127
				<span class="normal-details extra-margin">$customerDetailsObj.getMobileNumber()</span>
128
			</p>
23378 ashik.ali 129
		#end
32627 ranu 130
 
131
 
22095 kshitij.so 132
	</div>
133
 
134
	<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
135
		<h4>INVOICE DETAILS</h4>
136
		<p class="bold-details">Invoice Number <span class="normal-details extra-margin">$fofoOrder.getInvoiceNumber()</span></p>
23783 ashik.ali 137
		<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>
22095 kshitij.so 138
	</div>
139
 
140
</div>
141
 
142
<div class="row" style="font-size:14px;color:#688a7e;">
143
	<div class="col-lg-12">
144
		<table class="table table-striped table-advance table-hover">
145
			<tbody>
146
				<tr>
147
					<th>Item Code</th>
22245 ashik.ali 148
					<th>Description</th>
22095 kshitij.so 149
					<th>Unit Price</th>
150
					<th>Quantity</th>
151
					<th>Total Price</th>
152
				</tr>
153
				 #foreach( $fofoLineItem in $fofoLineItems )
154
				 #set ($total = $fofoLineItem.getSellingPrice() * $fofoLineItem.getQuantity())
155
				 	<tr>
156
				 		<td>$fofoLineItem.getItemId()</td>
22245 ashik.ali 157
				 		<td>
158
				 			$fofoLineItem.getBrand() $fofoLineItem.getModelName() $fofoLineItem.getModelNumber() $fofoLineItem.getColor()
159
				 		</td>
22095 kshitij.so 160
				 		<td>$fofoLineItem.getSellingPrice()</td>
161
				 		<td>$fofoLineItem.getQuantity()</td>
162
				 		<td>$total</td>
163
				 	</tr>
164
				 #end
165
			</tbody>
166
		</table>
167
	</div>
168
</div>
169
 
170
<div class="row">
22245 ashik.ali 171
	#if(!$insurancePolicies.isEmpty())
172
		<div class="col-lg-8">
173
			<h4>INSURANCE DETAILS</h4>
31274 amit.gupta 174
			<table class="table table-striped table-advance">
175
				<tbody>
176
				<tr>
177
					<th>Plan Name</th>
178
					<th>Device</th>
179
					<th>Serial Number</th>
180
					<th>Provider Name</th>
181
					<th>Amount</th>
182
				</tr>
183
					#if(!$insurancePolicies.isEmpty())
184
						#foreach( $insurancePolicy in $insurancePolicies )
185
						<tr>
186
							<td>$insurancePolicy.getPolicyPlan()</td>
187
							<td>$insurancePolicy.getBrand() $insurancePolicy.getModelName()</td>
188
							<td>$insurancePolicy.getSerialNumber()</td>
189
							<td>$insurancePolicy.getInsuranceProvider().getName()</td>
190
							<td>$insurancePolicy.getSaleAmount()</td>
191
						</tr>
192
						#end
22245 ashik.ali 193
	    			#end
194
    			</tbody>
195
    		</table>
196
    	</div>
197
	#end
22095 kshitij.so 198
	<div class="col-lg-4 right" style="border-left:1px solid #f0f0f0;background:white;font-size:14px;">
199
		<h4>PAYMENT DETAILS</h4>
200
		 #foreach( $paymentOption in $paymentOptions )
201
		 	#if($paymentOption.getAmount() > 0)
202
		 	<div class="row">
203
		 		<div class="col-lg-3">
204
		 			<p class="bold-details">$paymentOption.getType()</p>
205
		 		</div>
206
		 		<div class="col-lg-3">
207
		 			<p class="nomal-details">&#8377; $paymentOption.getAmount()</p>
208
		 		</div>
209
		 	</div>
210
		 	#end
211
		 #end
212
		 <hr/>
213
		 <div class="row">
214
		 	<div class="col-lg-3">
215
		 		<p class="bold-details">TOTAL</p>
216
		 	</div>
217
		 	<div class="col-lg-3">
218
		 		<p class="nomal-details">&#8377;$fofoOrder.getTotalAmount() </p>
219
		 	</div>
220
		 </div>
221
	</div>
222
</div>
223
 
224
</section>