Subversion Repositories SmartDukaan

Rev

Rev 27759 | Rev 32627 | 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>
111
 
112
	<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
113
		<h4>BILLING DETAILS</h4>
26817 amit.gupta 114
		<p class="bold-details">$customerBillingAddressObj.getName() $customerBillingAddressObj.getLastName()</p>
22095 kshitij.so 115
		<p class="normal-details">$customerBillingAddress</p>
23378 ashik.ali 116
		#if($fofoOrder.getCustomerGstNumber() && $fofoOrder.getCustomerGstNumber() != "")
117
			<p class="bold-details">GST Number <span class="normal-details extra-margin">$fofoOrder.getCustomerGstNumber()</span></p>
118
		#end
22095 kshitij.so 119
		<p class="bold-details">Phone <span class="normal-details extra-margin">$customerBillingAddressObj.getPhoneNumber()</span></p>
120
	</div>
121
 
122
	<div class="col-lg-4" style="border-left:1px solid #f0f0f0;">
123
		<h4>INVOICE DETAILS</h4>
124
		<p class="bold-details">Invoice Number <span class="normal-details extra-margin">$fofoOrder.getInvoiceNumber()</span></p>
23783 ashik.ali 125
		<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 126
	</div>
127
 
128
</div>
129
 
130
<div class="row" style="font-size:14px;color:#688a7e;">
131
	<div class="col-lg-12">
132
		<table class="table table-striped table-advance table-hover">
133
			<tbody>
134
				<tr>
135
					<th>Item Code</th>
22245 ashik.ali 136
					<th>Description</th>
22095 kshitij.so 137
					<th>Unit Price</th>
138
					<th>Quantity</th>
139
					<th>Total Price</th>
140
				</tr>
141
				 #foreach( $fofoLineItem in $fofoLineItems )
142
				 #set ($total = $fofoLineItem.getSellingPrice() * $fofoLineItem.getQuantity())
143
				 	<tr>
144
				 		<td>$fofoLineItem.getItemId()</td>
22245 ashik.ali 145
				 		<td>
146
				 			$fofoLineItem.getBrand() $fofoLineItem.getModelName() $fofoLineItem.getModelNumber() $fofoLineItem.getColor()
147
				 		</td>
22095 kshitij.so 148
				 		<td>$fofoLineItem.getSellingPrice()</td>
149
				 		<td>$fofoLineItem.getQuantity()</td>
150
				 		<td>$total</td>
151
				 	</tr>
152
				 #end
153
			</tbody>
154
		</table>
155
	</div>
156
</div>
157
 
158
<div class="row">
22245 ashik.ali 159
	#if(!$insurancePolicies.isEmpty())
160
		<div class="col-lg-8">
161
			<h4>INSURANCE DETAILS</h4>
31274 amit.gupta 162
			<table class="table table-striped table-advance">
163
				<tbody>
164
				<tr>
165
					<th>Plan Name</th>
166
					<th>Device</th>
167
					<th>Serial Number</th>
168
					<th>Provider Name</th>
169
					<th>Amount</th>
170
				</tr>
171
					#if(!$insurancePolicies.isEmpty())
172
						#foreach( $insurancePolicy in $insurancePolicies )
173
						<tr>
174
							<td>$insurancePolicy.getPolicyPlan()</td>
175
							<td>$insurancePolicy.getBrand() $insurancePolicy.getModelName()</td>
176
							<td>$insurancePolicy.getSerialNumber()</td>
177
							<td>$insurancePolicy.getInsuranceProvider().getName()</td>
178
							<td>$insurancePolicy.getSaleAmount()</td>
179
						</tr>
180
						#end
22245 ashik.ali 181
	    			#end
182
    			</tbody>
183
    		</table>
184
    	</div>
185
	#end
22095 kshitij.so 186
	<div class="col-lg-4 right" style="border-left:1px solid #f0f0f0;background:white;font-size:14px;">
187
		<h4>PAYMENT DETAILS</h4>
188
		 #foreach( $paymentOption in $paymentOptions )
189
		 	#if($paymentOption.getAmount() > 0)
190
		 	<div class="row">
191
		 		<div class="col-lg-3">
192
		 			<p class="bold-details">$paymentOption.getType()</p>
193
		 		</div>
194
		 		<div class="col-lg-3">
195
		 			<p class="nomal-details">&#8377; $paymentOption.getAmount()</p>
196
		 		</div>
197
		 	</div>
198
		 	#end
199
		 #end
200
		 <hr/>
201
		 <div class="row">
202
		 	<div class="col-lg-3">
203
		 		<p class="bold-details">TOTAL</p>
204
		 	</div>
205
		 	<div class="col-lg-3">
206
		 		<p class="nomal-details">&#8377;$fofoOrder.getTotalAmount() </p>
207
		 	</div>
208
		 </div>
209
	</div>
210
</div>
211
 
212
</section>