| 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>
|
| 7343 |
anupam.sin |
12 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/storewebsite.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;">
|
| 7358 |
anupam.sin |
42 |
<div id="returnPopupBox" style="display:none;padding:10px;line-height:35px;font-size:16px;color:#777777;position: fixed;min-height: 150px;width: 33%;background-color: white;z-index:10;top: 33%;left: 33%;border: 1px solid #2789C1;box-shadow: 0 0 30px 5px #2789C1;">
|
| 7349 |
anupam.sin |
43 |
<form name="returnRequestForm" action="/storewebsite/report!requestReturn" method="post" style="font-size: 20px;">
|
| 7348 |
anupam.sin |
44 |
<label><input type="radio" name="returnType" value="doa">DOA</label><br>
|
|
|
45 |
<label><input type="radio" name="returnType" value="return">RETURN</label><br>
|
|
|
46 |
<input id="returnPopupOrder" type="hidden" name="orderId" value=""><br>
|
|
|
47 |
<input type="submit" style="cursor:pointer;width: 75px;height: 25px;color: white;background-color: #2789C1;border: 1px solid blue;border-radius: 5px;margin: 10px 30px;" value="SUBMIT">
|
|
|
48 |
<input type="button" value="CANCEL" id="cancelReturnRequest" style="cursor:pointer;width: 75px;height: 25px;color: white;background-color: red;border: 1px solid blue;border-radius: 5px;margin: 10px 30px;"></input>
|
|
|
49 |
</form>
|
|
|
50 |
</div>
|
|
|
51 |
|
| 7358 |
anupam.sin |
52 |
<div id="refundPopupBox" style="display:none;padding:10px;line-height:35px;font-size:16px;color:#777777;position: fixed;min-height: 150px;width: 33%;background-color: white;z-index:10;top: 33%;left: 33%;border: 1px solid #2789C1;box-shadow: 0 0 30px 5px #2789C1;">
|
| 7349 |
anupam.sin |
53 |
<form name="refundAmountForm" action="/storewebsite/report!refundOrder" method="post" onsubmit="return validateAmount()" style="font-size: 16px;">
|
|
|
54 |
<span>Please enter the refund Amount : </span><input id="refundAmountText" name="refundAmount" type="text" maxlength="6" class='orderInputBox w150'><br>
|
|
|
55 |
<input id="refundPopupOrder" type="hidden" name="orderId" value=""><br>
|
|
|
56 |
<input type="submit" style="cursor:pointer;width: 75px;height: 25px;color: white;background-color: #2789C1;border: 1px solid blue;border-radius: 5px;margin: 10px 30px;" value="SUBMIT">
|
|
|
57 |
<input type="button" value="CANCEL" id="cancelRefundRequest" style="cursor:pointer;width: 75px;height: 25px;color: white;background-color: red;border: 1px solid blue;border-radius: 5px;margin: 10px 30px;"></input>
|
|
|
58 |
</form>
|
|
|
59 |
</div>
|
|
|
60 |
|
| 7343 |
anupam.sin |
61 |
<div style="line-height:37px;height:37px;background-color:#333;color:white;">
|
| 7386 |
anupam.sin |
62 |
<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span>
|
| 7343 |
anupam.sin |
63 |
<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a>
|
|
|
64 |
<a style="color:white;" href="/storewebsite/!doLogout">Logout</a>
|
|
|
65 |
</div>
|
|
|
66 |
|
|
|
67 |
<div style="line-height:60px;height: 60px;background-color:#DBEEFF;color: #333333;margin: 0px;border-bottom:1px solid #67ABD3">
|
|
|
68 |
<img style="float:left;" src="/storewebsite/images/Hotspot-Logo.jpg">
|
|
|
69 |
<span style="font-size: 35px;font-family:'Verdana', Verdana, sans-serif;float:left">Online Catalog</span>
|
| 7386 |
anupam.sin |
70 |
|
| 7343 |
anupam.sin |
71 |
</div>
|
|
|
72 |
<h3>Search Orders</h3>
|
|
|
73 |
#if($action.getSearchError() != "")
|
|
|
74 |
<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
|
|
|
75 |
$action.getSearchError()
|
|
|
76 |
</div>
|
|
|
77 |
#end
|
|
|
78 |
|
|
|
79 |
<form style="padding:20px;border-bottom:1px solid #2789C1;" id="search" action="report!search" method="POST">
|
|
|
80 |
<div class="row">
|
|
|
81 |
<div class="text">Please enter the order number : </div>
|
|
|
82 |
<div class="input-div">
|
|
|
83 |
#if($action.getNumber())
|
|
|
84 |
#set($q=$action.getNumber())
|
|
|
85 |
#else
|
|
|
86 |
#set($q="")
|
|
|
87 |
#end
|
|
|
88 |
<input class="inputbox padding15" type="text" name="number" value="$q">
|
|
|
89 |
|
|
|
90 |
</div><div class="input-div">
|
|
|
91 |
<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">
|
|
|
92 |
</div>
|
|
|
93 |
</div>
|
|
|
94 |
#if(!$action.getSearchResult().isEmpty())
|
|
|
95 |
<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>
|
|
|
96 |
<table width="100%">
|
|
|
97 |
<thead>
|
|
|
98 |
<tr>
|
|
|
99 |
<th>Order ID</th>
|
|
|
100 |
<th>Order Date</th>
|
|
|
101 |
<th>Product</th>
|
|
|
102 |
<th>Status</th>
|
|
|
103 |
<th>Advance</th>
|
|
|
104 |
<th>Amount</th>
|
|
|
105 |
<th></th>
|
| 7386 |
anupam.sin |
106 |
<th></th>
|
| 7343 |
anupam.sin |
107 |
</tr>
|
|
|
108 |
</thead>
|
|
|
109 |
<tbody>
|
|
|
110 |
#foreach ($order in $action.getSearchResult() )
|
|
|
111 |
<tr>
|
|
|
112 |
<td>$order.getId()</td>
|
|
|
113 |
<td>$action.getDateTime($order.getCreated_timestamp())</td>
|
|
|
114 |
<td>$action.getProductName($order.getLineitems().get(0))</td>
|
|
|
115 |
<td>$order.getStatusDescription()</td>
|
|
|
116 |
<td>$order.getAdvanceAmount()</td>
|
|
|
117 |
<td>$order.getTotal_amount()</td>
|
| 7386 |
anupam.sin |
118 |
<td>
|
|
|
119 |
#if($order.getStatus().getValue() > 2)
|
|
|
120 |
<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>
|
|
|
121 |
#elseif($order.getStatus().getValue() == 2)
|
|
|
122 |
Approval pending
|
|
|
123 |
#else
|
|
|
124 |
N/A
|
|
|
125 |
#end
|
|
|
126 |
</td>
|
| 7348 |
anupam.sin |
127 |
|
|
|
128 |
##--------------------------CANCEL THE ORDER---------------------------------------##
|
|
|
129 |
|
| 7386 |
anupam.sin |
130 |
#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))
|
|
|
131 |
<td><input class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input></td>
|
| 7348 |
anupam.sin |
132 |
|
|
|
133 |
##CANCELLATION FLOW
|
|
|
134 |
|
|
|
135 |
#elseif($order.getStatus().getValue() == 13)
|
|
|
136 |
<td>Cancellation Approval Pending</td>
|
|
|
137 |
#elseif($order.getStatus().getValue() == 14)
|
|
|
138 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND' ></input></td>
|
| 7386 |
anupam.sin |
139 |
#elseif($order.getStatus().getValue() == 15 || $order.getStatus().getValue() == 34)
|
| 7348 |
anupam.sin |
140 |
<td>Order Cancelled</td>
|
|
|
141 |
|
|
|
142 |
##--------------------------RETURN THE ORDER----------------------------------------##
|
|
|
143 |
|
|
|
144 |
#elseif($order.getStatus().getValue() == 12)
|
|
|
145 |
<td><input id='$order.getId()' class='returnButton' order='$order.getId()' type='button' name='cancel' value='Request Return'></input></td>
|
|
|
146 |
|
|
|
147 |
##DOA FLOW
|
|
|
148 |
|
|
|
149 |
#elseif($order.getStatus().getValue() == 42)
|
|
|
150 |
<td>DOA Approval Pending</td>
|
|
|
151 |
#elseif($order.getStatus().getValue() == 43)
|
|
|
152 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>
|
|
|
153 |
#elseif($order.getStatus().getValue() == 22)
|
|
|
154 |
<td>New Order Created</td>
|
|
|
155 |
#elseif($order.getStatus().getValue() == 32)
|
|
|
156 |
<td>ORDER REFUNDED</td>
|
|
|
157 |
|
|
|
158 |
##RETURN FLOW
|
|
|
159 |
|
|
|
160 |
#elseif($order.getStatus().getValue() == 58)
|
|
|
161 |
<td>Return Approval Pending</td>
|
| 7349 |
anupam.sin |
162 |
#elseif($order.getStatus().getValue() == 67)
|
| 7348 |
anupam.sin |
163 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>
|
|
|
164 |
#elseif($order.getStatus().getValue() == 60)
|
|
|
165 |
<td>New Order Created</td>
|
|
|
166 |
#elseif($order.getStatus().getValue() == 70)
|
|
|
167 |
<td>ORDER REFUNDED</td>
|
|
|
168 |
|
|
|
169 |
#end
|
| 7343 |
anupam.sin |
170 |
</tr>
|
|
|
171 |
#end
|
|
|
172 |
</tbody>
|
|
|
173 |
</table>
|
|
|
174 |
#end
|
|
|
175 |
|
|
|
176 |
</form>
|
|
|
177 |
<br/>
|
|
|
178 |
|
|
|
179 |
<div style="padding-bottom:20px;border-bottom:1px solid #2789C1;">
|
|
|
180 |
<h3>Orders for Today
|
|
|
181 |
</h3>
|
|
|
182 |
|
|
|
183 |
#if($orders.size() == 0)
|
|
|
184 |
<div class="padding-row" style="font-size: 20px; font-weight:bold;color: #AAAAAA;text-align: center;margin: 5px;padding: 5px;">
|
|
|
185 |
NO ORDERS FOR TODAY
|
|
|
186 |
</div>
|
|
|
187 |
#else
|
|
|
188 |
<table width="100%">
|
|
|
189 |
<thead>
|
|
|
190 |
<tr>
|
|
|
191 |
<th>Order ID</th>
|
|
|
192 |
<th>Product</th>
|
|
|
193 |
<th>Status</th>
|
|
|
194 |
<th>Collection</th>
|
|
|
195 |
<th>Total Price</th>
|
| 7386 |
anupam.sin |
196 |
<th></th>
|
|
|
197 |
<th></th>
|
| 7343 |
anupam.sin |
198 |
</tr>
|
|
|
199 |
</thead>
|
|
|
200 |
<tbody>
|
|
|
201 |
#foreach ( $order in $orders )
|
|
|
202 |
<tr>
|
|
|
203 |
<td>$order.getId()</td>
|
|
|
204 |
<td>$action.getProductName($order.getLineitems().get(0))</td>
|
|
|
205 |
<td>$order.getStatusDescription()</td>
|
|
|
206 |
<td>$order.getAdvanceAmount()</td>
|
|
|
207 |
<td>$order.getTotal_amount()</td>
|
|
|
208 |
<td>
|
|
|
209 |
#if($order.getStatus().getValue() > 2)
|
| 7386 |
anupam.sin |
210 |
#if($order.getStatus().getValue() == 15 || $order.getStatus().getValue() == 34)
|
| 7393 |
anupam.sin |
211 |
<a href='/storewebsite/report!downloadCancellationInvoice?number=$order.getId()' target='_blank' style='color:black;padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Receipt</a>
|
|
|
212 |
#else
|
| 7386 |
anupam.sin |
213 |
<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>
|
|
|
214 |
#end
|
|
|
215 |
#elseif($order.getStatus().getValue() == 2)
|
|
|
216 |
Approval pending
|
| 7343 |
anupam.sin |
217 |
#else
|
| 7386 |
anupam.sin |
218 |
N/A
|
| 7343 |
anupam.sin |
219 |
#end
|
|
|
220 |
</td>
|
| 7348 |
anupam.sin |
221 |
|
|
|
222 |
##--------------------------CANCEL THE ORDER---------------------------------------##
|
|
|
223 |
|
| 7386 |
anupam.sin |
224 |
#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))
|
|
|
225 |
<td><input id='cancel_$order.getId()' class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input></td>
|
| 7348 |
anupam.sin |
226 |
|
|
|
227 |
##CANCELLATION FLOW
|
|
|
228 |
|
|
|
229 |
#elseif($order.getStatus().getValue() == 13)
|
|
|
230 |
<td>Cancellation Approval Pending</td>
|
|
|
231 |
#elseif($order.getStatus().getValue() == 14)
|
|
|
232 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND' ></input></td>
|
|
|
233 |
#elseif($order.getStatus().getValue() == 15)
|
|
|
234 |
<td>Order Cancelled</td>
|
|
|
235 |
|
|
|
236 |
##--------------------------RETURN THE ORDER----------------------------------------##
|
|
|
237 |
|
|
|
238 |
#elseif($order.getStatus().getValue() == 12)
|
|
|
239 |
<td><input id='$order.getId()' class='returnButton' order='$order.getId()' type='button' name='cancel' value='Request Return'></input></td>
|
|
|
240 |
|
|
|
241 |
##DOA FLOW
|
|
|
242 |
|
|
|
243 |
#elseif($order.getStatus().getValue() == 42)
|
|
|
244 |
<td>DOA Approval Pending</td>
|
|
|
245 |
#elseif($order.getStatus().getValue() == 43)
|
|
|
246 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>
|
|
|
247 |
#elseif($order.getStatus().getValue() == 22)
|
|
|
248 |
<td>New Order Created</td>
|
|
|
249 |
#elseif($order.getStatus().getValue() == 32)
|
|
|
250 |
<td>ORDER REFUNDED</td>
|
|
|
251 |
|
|
|
252 |
##RETURN FLOW
|
|
|
253 |
|
|
|
254 |
#elseif($order.getStatus().getValue() == 58)
|
|
|
255 |
<td>Return Approval Pending</td>
|
|
|
256 |
#elseif($order.getStatus().getValue() == 59)
|
|
|
257 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>
|
|
|
258 |
#elseif($order.getStatus().getValue() == 60)
|
|
|
259 |
<td>New Order Created</td>
|
|
|
260 |
#elseif($order.getStatus().getValue() == 70)
|
|
|
261 |
<td>ORDER REFUNDED</td>
|
|
|
262 |
|
|
|
263 |
#end
|
|
|
264 |
|
|
|
265 |
##------------------------------------------------END-----------------------------------------------##
|
|
|
266 |
|
| 7343 |
anupam.sin |
267 |
</tr>
|
|
|
268 |
#end
|
|
|
269 |
</tbody>
|
|
|
270 |
</table>
|
|
|
271 |
#end
|
|
|
272 |
</div>
|
|
|
273 |
|
|
|
274 |
<h3 id='collectionReport'>Collection report for today</h3>
|
|
|
275 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
|
|
|
276 |
<div>
|
|
|
277 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
|
|
|
278 |
</div>
|
|
|
279 |
</form>
|
|
|
280 |
<br/>
|
|
|
281 |
|
|
|
282 |
<h3 id='statusReport'>Download Report by Status</h3>
|
|
|
283 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadrep" action="report" method="POST">
|
|
|
284 |
<div>
|
|
|
285 |
Status:<select name="status">
|
|
|
286 |
<option value="-1">ALL</option>
|
|
|
287 |
<option value="9">INIT</option>
|
|
|
288 |
<option value="5">SUCCESS</option>
|
|
|
289 |
<option value="4">FAILED</option>
|
|
|
290 |
<option value="6">REFUNDED</option>
|
|
|
291 |
<option value="10">UNKNOWN</option>
|
|
|
292 |
</select>
|
|
|
293 |
Date:<select name="dateselector" id="dateselector">
|
|
|
294 |
<option value="1" selected="selected">Today</option>
|
|
|
295 |
<option value="2">Yesterday</option>
|
|
|
296 |
<option value="3">Daterange</option>
|
|
|
297 |
</select>
|
|
|
298 |
<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>
|
|
|
299 |
</div>
|
|
|
300 |
<br>
|
|
|
301 |
<div>
|
|
|
302 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;" type="submit" value="Download"/>
|
|
|
303 |
</div>
|
|
|
304 |
</form>
|
|
|
305 |
<br/>
|
|
|
306 |
</body>
|
|
|
307 |
</html>
|