| Line 7... |
Line 7... |
| 7 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.truncate.min.js"></script>
|
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>
|
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>
|
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>
|
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>
|
11 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.dataTables.min.js"></script>
|
| 12 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/storewebsite.js"></script>
|
12 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/storewebsite_20130608.js"></script>
|
| 13 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.ui.autocomplete.js"></script>
|
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>
|
14 |
<script language="javascript" type="text/javascript" src="/storewebsite/js/common.js"></script>
|
| 15 |
|
15 |
|
| 16 |
<style>
|
16 |
<style>
|
| 17 |
table, td, th
|
17 |
table, td, th
|
| Line 37... |
Line 37... |
| 37 |
padding-left:20px;
|
37 |
padding-left:20px;
|
| 38 |
}
|
38 |
}
|
| 39 |
</style>
|
39 |
</style>
|
| 40 |
</head>
|
40 |
</head>
|
| 41 |
<body style="margin: 0;">
|
41 |
<body style="margin: 0;">
|
| 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;">
|
- |
|
| 43 |
<form name="returnRequestForm" action="/storewebsite/report!requestReturn" method="post" style="font-size: 20px;">
|
- |
|
| 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 |
|
- |
|
| 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;">
|
- |
|
| 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 |
|
- |
|
| 61 |
<div style="line-height:37px;height:37px;background-color:#333;color:white;">
|
42 |
<div style="line-height:37px;height:37px;background-color:#333;color:white;">
|
| 62 |
<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span>
|
43 |
<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span>
|
| 63 |
<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a>
|
44 |
<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a>
|
| 64 |
<a style="color:white;" href="/storewebsite/!doLogout">Logout</a>
|
45 |
<a style="color:white;" href="/storewebsite/!doLogout">Logout</a>
|
| 65 |
</div>
|
46 |
</div>
|
| Line 124... |
Line 105... |
| 124 |
N/A
|
105 |
N/A
|
| 125 |
#end
|
106 |
#end
|
| 126 |
</td>
|
107 |
</td>
|
| 127 |
|
108 |
|
| 128 |
##--------------------------CANCEL THE ORDER---------------------------------------##
|
109 |
##--------------------------CANCEL THE ORDER---------------------------------------##
|
| 129 |
|
110 |
<td>
|
| 130 |
#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))
|
111 |
#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>
|
112 |
<input class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input>
|
| 132 |
|
- |
|
| 133 |
##CANCELLATION FLOW
|
113 |
##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>
|
- |
|
| 139 |
#elseif($order.getStatus().getValue() == 15 || $order.getStatus().getValue() == 34)
|
- |
|
| 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>
|
- |
|
| 162 |
#elseif($order.getStatus().getValue() == 67)
|
- |
|
| 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 |
|
114 |
#end
|
| 169 |
#end
|
115 |
</td>
|
| 170 |
</tr>
|
116 |
</tr>
|
| 171 |
#end
|
117 |
#end
|
| 172 |
</tbody>
|
118 |
</tbody>
|
| 173 |
</table>
|
119 |
</table>
|
| 174 |
#end
|
120 |
#end
|
| Line 214... |
Line 160... |
| 214 |
N/A
|
160 |
N/A
|
| 215 |
#end
|
161 |
#end
|
| 216 |
</td>
|
162 |
</td>
|
| 217 |
|
163 |
|
| 218 |
##--------------------------CANCEL THE ORDER---------------------------------------##
|
164 |
##--------------------------CANCEL THE ORDER---------------------------------------##
|
| 219 |
|
165 |
<td>
|
| 220 |
#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))
|
166 |
#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))
|
| 221 |
<td><input id='cancel_$order.getId()' class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input></td>
|
167 |
<input class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input>
|
| 222 |
|
- |
|
| 223 |
##CANCELLATION FLOW
|
- |
|
| 224 |
|
- |
|
| 225 |
#elseif($order.getStatus().getValue() == 13)
|
- |
|
| 226 |
<td>Cancellation Approval Pending</td>
|
- |
|
| 227 |
#elseif($order.getStatus().getValue() == 14)
|
- |
|
| 228 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND' ></input></td>
|
- |
|
| 229 |
#elseif($order.getStatus().getValue() == 15)
|
- |
|
| 230 |
<td>Order Cancelled</td>
|
- |
|
| 231 |
|
- |
|
| 232 |
##--------------------------RETURN THE ORDER----------------------------------------##
|
- |
|
| 233 |
|
- |
|
| 234 |
#elseif($order.getStatus().getValue() == 12)
|
- |
|
| 235 |
<td><input id='$order.getId()' class='returnButton' order='$order.getId()' type='button' name='cancel' value='Request Return'></input></td>
|
- |
|
| 236 |
|
- |
|
| 237 |
##DOA FLOW
|
- |
|
| 238 |
|
- |
|
| 239 |
#elseif($order.getStatus().getValue() == 42)
|
- |
|
| 240 |
<td>DOA Approval Pending</td>
|
- |
|
| 241 |
#elseif($order.getStatus().getValue() == 43)
|
- |
|
| 242 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>
|
- |
|
| 243 |
#elseif($order.getStatus().getValue() == 22)
|
- |
|
| 244 |
<td>New Order Created</td>
|
- |
|
| 245 |
#elseif($order.getStatus().getValue() == 32)
|
- |
|
| 246 |
<td>ORDER REFUNDED</td>
|
- |
|
| 247 |
|
- |
|
| 248 |
##RETURN FLOW
|
- |
|
| 249 |
|
- |
|
| 250 |
#elseif($order.getStatus().getValue() == 58)
|
- |
|
| 251 |
<td>Return Approval Pending</td>
|
- |
|
| 252 |
#elseif($order.getStatus().getValue() == 59)
|
- |
|
| 253 |
<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>
|
- |
|
| 254 |
#elseif($order.getStatus().getValue() == 60)
|
- |
|
| 255 |
<td>New Order Created</td>
|
- |
|
| 256 |
#elseif($order.getStatus().getValue() == 70)
|
- |
|
| 257 |
<td>ORDER REFUNDED</td>
|
- |
|
| 258 |
|
- |
|
| 259 |
#end
|
168 |
#end
|
| 260 |
|
- |
|
| 261 |
##------------------------------------------------END-----------------------------------------------##
|
- |
|
| 262 |
|
169 |
</td>
|
| 263 |
</tr>
|
170 |
</tr>
|
| 264 |
#end
|
171 |
#end
|
| 265 |
</tbody>
|
172 |
</tbody>
|
| 266 |
</table>
|
173 |
</table>
|
| 267 |
#end
|
174 |
#end
|
| 268 |
</div>
|
175 |
</div>
|
| 269 |
|
176 |
|
| 270 |
<h3 id='collectionReport'>Collection report for today</h3>
|
177 |
<h3 id='collectionReport'>Collection report for today</h3>
|
| 271 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
|
178 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
|
| 272 |
<div>
|
179 |
<div>
|
| - |
|
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>
|
| 273 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
|
189 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
|
| 274 |
</div>
|
190 |
</div>
|
| 275 |
</form>
|
191 |
</form>
|
| 276 |
<br/>
|
192 |
<br/>
|
| 277 |
|
193 |
|
| 278 |
<h3 id='statusReport'>Download Report by Status</h3>
|
194 |
<h3 id='statusReport'>Sales Report</h3>
|
| 279 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadrep" action="report" method="POST">
|
195 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadrep" action="report" method="POST">
|
| 280 |
<div>
|
196 |
<div>
|
| 281 |
Status:<select name="status">
|
- |
|
| 282 |
<option value="-1">ALL</option>
|
- |
|
| 283 |
<option value="9">INIT</option>
|
- |
|
| 284 |
<option value="5">SUCCESS</option>
|
- |
|
| 285 |
<option value="4">FAILED</option>
|
- |
|
| 286 |
<option value="6">REFUNDED</option>
|
- |
|
| 287 |
<option value="10">UNKNOWN</option>
|
- |
|
| 288 |
</select>
|
- |
|
| 289 |
Date:<select name="dateselector" id="dateselector">
|
197 |
Date:<select name="dateselector" id="dateselector">
|
| 290 |
<option value="1" selected="selected">Today</option>
|
198 |
<option value="1" selected="selected">Today</option>
|
| 291 |
<option value="2">Yesterday</option>
|
199 |
<option value="2">Yesterday</option>
|
| 292 |
<option value="3">Daterange</option>
|
200 |
<option value="3">Daterange</option>
|
| 293 |
</select>
|
201 |
</select>
|