| 7343 |
anupam.sin |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<title>Saholic Catalog</title>
|
|
|
5 |
<link rel="stylesheet" href="css/storewebsite.css" type="text/css" />
|
|
|
6 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery-1.4.2.js"></script>
|
| 7348 |
anupam.sin |
7 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.truncate.min.js"></script>
|
|
|
8 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery-ui.min.js"></script>
|
|
|
9 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.colorbox-min.js"></script>
|
|
|
10 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.validate.js"></script>
|
|
|
11 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.dataTables.min.js"></script>
|
| 7695 |
anupam.sin |
12 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/storewebsite_20130704.js"></script>
|
| 7348 |
anupam.sin |
13 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.ui.autocomplete.js"></script>
|
|
|
14 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/common.js"></script>
|
| 7343 |
anupam.sin |
15 |
|
|
|
16 |
<style>
|
|
|
17 |
table, td, th
|
|
|
18 |
{
|
|
|
19 |
border:1px solid #2789C1;
|
|
|
20 |
border-collapse:collapse;
|
|
|
21 |
border-spacing:0;
|
|
|
22 |
}
|
|
|
23 |
th
|
|
|
24 |
{
|
|
|
25 |
background-color:#2789C1;
|
|
|
26 |
color:white;
|
|
|
27 |
text-align:center;
|
|
|
28 |
padding:5px;
|
|
|
29 |
}
|
|
|
30 |
td
|
|
|
31 |
{
|
|
|
32 |
text-align:center;
|
|
|
33 |
padding:5px;
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
h3{
|
|
|
37 |
padding-left:20px;
|
|
|
38 |
}
|
|
|
39 |
</style>
|
|
|
40 |
</head>
|
|
|
41 |
<body style="margin: 0;">
|
|
|
42 |
<div style="line-height:37px;height:37px;background-color:#333;color:white;">
|
| 7386 |
anupam.sin |
43 |
<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span>
|
| 7343 |
anupam.sin |
44 |
<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a>
|
|
|
45 |
<a style="color:white;" href="/storewebsite/!doLogout">Logout</a>
|
|
|
46 |
</div>
|
|
|
47 |
|
|
|
48 |
<div style="line-height:60px;height: 60px;background-color:#DBEEFF;color: #333333;margin: 0px;border-bottom:1px solid #67ABD3">
|
| 7483 |
anupam.sin |
49 |
<img style="float:left;" src="/storewebsite/images/hotspotLogoBlue.jpg">
|
| 7343 |
anupam.sin |
50 |
<span style="font-size: 35px;font-family:'Verdana', Verdana, sans-serif;float:left">Online Catalog</span>
|
| 7386 |
anupam.sin |
51 |
|
| 7343 |
anupam.sin |
52 |
</div>
|
|
|
53 |
<h3>Search Orders</h3>
|
|
|
54 |
#if($action.getSearchError() != "")
|
|
|
55 |
<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
|
|
|
56 |
$action.getSearchError()
|
|
|
57 |
</div>
|
|
|
58 |
#end
|
|
|
59 |
|
|
|
60 |
<form style="padding:20px;border-bottom:1px solid #2789C1;" id="search" action="report!search" method="POST">
|
|
|
61 |
<div class="row">
|
| 7575 |
anupam.sin |
62 |
<div class="text">Order number : </div>
|
| 7343 |
anupam.sin |
63 |
<div class="input-div">
|
|
|
64 |
#if($action.getNumber())
|
|
|
65 |
#set($q=$action.getNumber())
|
|
|
66 |
#else
|
|
|
67 |
#set($q="")
|
|
|
68 |
#end
|
|
|
69 |
<input class="inputbox padding15" type="text" name="number" value="$q">
|
|
|
70 |
|
|
|
71 |
</div><div class="input-div">
|
|
|
72 |
<input style="font-size:15px; font-weight:bold;height:26px;width:90px;background-color:#2789C1;border:1px solid blue;border-radius:5px;color:white" type="submit" value="Search">
|
|
|
73 |
</div>
|
|
|
74 |
</div>
|
|
|
75 |
#if(!$action.getSearchResult().isEmpty())
|
|
|
76 |
<div style="border-top: 1px solid #BBBBBB;padding: 5px 0px 5px 25px;margin: 5px 0 5px 0;color: #999999;">$action.getSearchResult().size() search results</div>
|
|
|
77 |
<table width="100%">
|
|
|
78 |
<thead>
|
|
|
79 |
<tr>
|
|
|
80 |
<th>Order ID</th>
|
|
|
81 |
<th>Order Date</th>
|
|
|
82 |
<th>Product</th>
|
|
|
83 |
<th>Status</th>
|
|
|
84 |
<th>Advance</th>
|
|
|
85 |
<th>Amount</th>
|
|
|
86 |
<th></th>
|
| 7386 |
anupam.sin |
87 |
<th></th>
|
| 7343 |
anupam.sin |
88 |
</tr>
|
|
|
89 |
</thead>
|
|
|
90 |
<tbody>
|
|
|
91 |
#foreach ($order in $action.getSearchResult() )
|
|
|
92 |
<tr>
|
|
|
93 |
<td>$order.getId()</td>
|
|
|
94 |
<td>$action.getDateTime($order.getCreated_timestamp())</td>
|
|
|
95 |
<td>$action.getProductName($order.getLineitems().get(0))</td>
|
| 7527 |
anupam.sin |
96 |
<td>$order.getStatus().getDescription()</td>
|
| 7343 |
anupam.sin |
97 |
<td>$order.getAdvanceAmount()</td>
|
|
|
98 |
<td>$order.getTotal_amount()</td>
|
| 7386 |
anupam.sin |
99 |
<td>
|
|
|
100 |
#if($order.getStatus().getValue() > 2)
|
|
|
101 |
<a href='/storewebsite/report!downloadInvoice?number=$order.getId()' target='_blank' style='color:black;padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Receipt</a>
|
|
|
102 |
#elseif($order.getStatus().getValue() == 2)
|
|
|
103 |
Approval pending
|
|
|
104 |
#else
|
|
|
105 |
N/A
|
|
|
106 |
#end
|
|
|
107 |
</td>
|
| 7348 |
anupam.sin |
108 |
|
|
|
109 |
##--------------------------CANCEL THE ORDER---------------------------------------##
|
| 7427 |
anupam.sin |
110 |
<td>
|
| 7611 |
anupam.sin |
111 |
#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()) && $action.debitCardNotUsed($order.getId()))
|
| 7449 |
anupam.sin |
112 |
<a href='/storewebsite/report!cancelRequest?orderId=$order.getId()' style='font-weight:bold;color:white;padding:3px;background-color:red;pointer:cursor;font-size:15px;text-decoration:none'>CANCEL</a>
|
|
|
113 |
#end
|
| 7427 |
anupam.sin |
114 |
</td>
|
| 7343 |
anupam.sin |
115 |
</tr>
|
|
|
116 |
#end
|
|
|
117 |
</tbody>
|
|
|
118 |
</table>
|
|
|
119 |
#end
|
|
|
120 |
|
|
|
121 |
</form>
|
|
|
122 |
<br/>
|
|
|
123 |
|
|
|
124 |
<div style="padding-bottom:20px;border-bottom:1px solid #2789C1;">
|
|
|
125 |
<h3>Orders for Today
|
|
|
126 |
</h3>
|
|
|
127 |
|
|
|
128 |
#if($orders.size() == 0)
|
|
|
129 |
<div class="padding-row" style="font-size: 20px; font-weight:bold;color: #AAAAAA;text-align: center;margin: 5px;padding: 5px;">
|
|
|
130 |
NO ORDERS FOR TODAY
|
|
|
131 |
</div>
|
|
|
132 |
#else
|
|
|
133 |
<table width="100%">
|
|
|
134 |
<thead>
|
|
|
135 |
<tr>
|
|
|
136 |
<th>Order ID</th>
|
|
|
137 |
<th>Product</th>
|
|
|
138 |
<th>Status</th>
|
|
|
139 |
<th>Collection</th>
|
|
|
140 |
<th>Total Price</th>
|
| 7386 |
anupam.sin |
141 |
<th></th>
|
|
|
142 |
<th></th>
|
| 7343 |
anupam.sin |
143 |
</tr>
|
|
|
144 |
</thead>
|
|
|
145 |
<tbody>
|
|
|
146 |
#foreach ( $order in $orders )
|
|
|
147 |
<tr>
|
|
|
148 |
<td>$order.getId()</td>
|
|
|
149 |
<td>$action.getProductName($order.getLineitems().get(0))</td>
|
| 7527 |
anupam.sin |
150 |
<td>$order.getStatus().getDescription()</td>
|
| 7343 |
anupam.sin |
151 |
<td>$order.getAdvanceAmount()</td>
|
|
|
152 |
<td>$order.getTotal_amount()</td>
|
|
|
153 |
<td>
|
|
|
154 |
#if($order.getStatus().getValue() > 2)
|
| 7409 |
anupam.sin |
155 |
<a href='/storewebsite/report!downloadInvoice?number=$order.getId()' target='_blank' style='color:black;padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Receipt</a>
|
| 7386 |
anupam.sin |
156 |
#elseif($order.getStatus().getValue() == 2)
|
|
|
157 |
Approval pending
|
| 7343 |
anupam.sin |
158 |
#else
|
| 7386 |
anupam.sin |
159 |
N/A
|
| 7343 |
anupam.sin |
160 |
#end
|
|
|
161 |
</td>
|
| 7348 |
anupam.sin |
162 |
|
| 19706 |
amit.gupta |
163 |
##--------------------------CANCEL THE ORDER OR APPROVE TABLET ORDER---------------------------------------##
|
| 7427 |
anupam.sin |
164 |
<td>
|
| 7611 |
anupam.sin |
165 |
#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()) && $action.debitCardNotUsed($order.getId()))
|
| 7449 |
anupam.sin |
166 |
<a href='/storewebsite/report!cancelRequest?orderId=$order.getId()' style='font-weight:bold;color:white;padding:3px;background-color:red;pointer:cursor;font-size:15px;text-decoration:none'>CANCEL</a>
|
| 19706 |
amit.gupta |
167 |
#else
|
| 7427 |
anupam.sin |
168 |
#end
|
|
|
169 |
</td>
|
| 7343 |
anupam.sin |
170 |
</tr>
|
|
|
171 |
#end
|
|
|
172 |
</tbody>
|
|
|
173 |
</table>
|
|
|
174 |
#end
|
|
|
175 |
</div>
|
|
|
176 |
|
| 7521 |
anupam.sin |
177 |
<h3 id='collectionReport'>Collection report</h3>
|
| 7343 |
anupam.sin |
178 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
|
|
|
179 |
<div>
|
| 7427 |
anupam.sin |
180 |
Date:<select name="dateselector" id="dateselector1">
|
|
|
181 |
<option value="1" selected="selected">Today</option>
|
|
|
182 |
<option value="2">Yesterday</option>
|
|
|
183 |
<option value="3">Daterange</option>
|
|
|
184 |
</select>
|
|
|
185 |
<span id="daterange1" style="display:none">From:<input maxlength="10" size="8" type="text" name="startDate" style="padding-left:3px"/>(dd/mm/yyyy) To:<input maxlength="10" size="8" type="text" name="endDate" style="padding-left:3px"/>(dd/mm/yyyy)</span>
|
|
|
186 |
</div>
|
|
|
187 |
<br>
|
|
|
188 |
<div>
|
| 7343 |
anupam.sin |
189 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
|
|
|
190 |
</div>
|
|
|
191 |
</form>
|
|
|
192 |
<br/>
|
|
|
193 |
|
| 7521 |
anupam.sin |
194 |
<h3 id='statusReport'>Sales Report (Delivered Orders)</h3>
|
| 7343 |
anupam.sin |
195 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadrep" action="report" method="POST">
|
|
|
196 |
<div>
|
| 7611 |
anupam.sin |
197 |
Status:<select name="reportType">
|
|
|
198 |
<option value="0" selected="selected">ALL</option>
|
|
|
199 |
<option value="1">DELIVERED</option>
|
|
|
200 |
</select>
|
| 7343 |
anupam.sin |
201 |
Date:<select name="dateselector" id="dateselector">
|
|
|
202 |
<option value="1" selected="selected">Today</option>
|
|
|
203 |
<option value="2">Yesterday</option>
|
|
|
204 |
<option value="3">Daterange</option>
|
|
|
205 |
</select>
|
|
|
206 |
<span id="daterange" style="display:none">From:<input maxlength="10" size="8" type="text" name="startDate" style="padding-left:3px"/>(dd/mm/yyyy) To:<input maxlength="10" size="8" type="text" name="endDate" style="padding-left:3px"/>(dd/mm/yyyy)</span>
|
|
|
207 |
</div>
|
|
|
208 |
<br>
|
|
|
209 |
<div>
|
|
|
210 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;" type="submit" value="Download"/>
|
|
|
211 |
</div>
|
|
|
212 |
</form>
|
|
|
213 |
<br/>
|
|
|
214 |
</body>
|
|
|
215 |
</html>
|