Subversion Repositories SmartDukaan

Rev

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