Rev 7386 | Rev 7427 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Saholic Catalog</title><link rel="stylesheet" href="css/storewebsite.css" type="text/css" /><script language="javascript" type="text/javascript" src="/storewebsite/js/jquery-1.4.2.js"></script><script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.truncate.min.js"></script><script language="javascript" type="text/javascript" src="/storewebsite/js/jquery-ui.min.js"></script><script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.colorbox-min.js"></script><script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.validate.js"></script><script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.dataTables.min.js"></script><script language="javascript" type="text/javascript" src="/storewebsite/js/storewebsite.js"></script><script language="javascript" type="text/javascript" src="/storewebsite/js/jquery.ui.autocomplete.js"></script><script language="javascript" type="text/javascript" src="/storewebsite/js/common.js"></script><style>table, td, th{border:1px solid #2789C1;border-collapse:collapse;border-spacing:0;}th{background-color:#2789C1;color:white;text-align:center;padding:5px;}td{text-align:center;padding:5px;}h3{padding-left:20px;}</style></head><body style="margin: 0;"><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;"><form name="returnRequestForm" action="/storewebsite/report!requestReturn" method="post" style="font-size: 20px;"><label><input type="radio" name="returnType" value="doa">DOA</label><br><label><input type="radio" name="returnType" value="return">RETURN</label><br><input id="returnPopupOrder" type="hidden" name="orderId" value=""><br><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"><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></form></div><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;"><form name="refundAmountForm" action="/storewebsite/report!refundOrder" method="post" onsubmit="return validateAmount()" style="font-size: 16px;"><span>Please enter the refund Amount : </span><input id="refundAmountText" name="refundAmount" type="text" maxlength="6" class='orderInputBox w150'><br><input id="refundPopupOrder" type="hidden" name="orderId" value=""><br><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"><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></form></div><div style="line-height:37px;height:37px;background-color:#333;color:white;"><span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span><a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a><a style="color:white;" href="/storewebsite/!doLogout">Logout</a></div><div style="line-height:60px;height: 60px;background-color:#DBEEFF;color: #333333;margin: 0px;border-bottom:1px solid #67ABD3"><img style="float:left;" src="/storewebsite/images/Hotspot-Logo.jpg"><span style="font-size: 35px;font-family:'Verdana', Verdana, sans-serif;float:left">Online Catalog</span></div><h3>Search Orders</h3>#if($action.getSearchError() != "")<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">$action.getSearchError()</div>#end<form style="padding:20px;border-bottom:1px solid #2789C1;" id="search" action="report!search" method="POST"><div class="row"><div class="text">Please enter the order number : </div><div class="input-div">#if($action.getNumber())#set($q=$action.getNumber())#else#set($q="")#end<input class="inputbox padding15" type="text" name="number" value="$q"></div><div class="input-div"><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"></div></div>#if(!$action.getSearchResult().isEmpty())<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><table width="100%"><thead><tr><th>Order ID</th><th>Order Date</th><th>Product</th><th>Status</th><th>Advance</th><th>Amount</th><th></th><th></th></tr></thead><tbody>#foreach ($order in $action.getSearchResult() )<tr><td>$order.getId()</td><td>$action.getDateTime($order.getCreated_timestamp())</td><td>$action.getProductName($order.getLineitems().get(0))</td><td>$order.getStatusDescription()</td><td>$order.getAdvanceAmount()</td><td>$order.getTotal_amount()</td><td>#if($order.getStatus().getValue() > 2)<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>#elseif($order.getStatus().getValue() == 2)Approval pending#elseN/A#end</td>##--------------------------CANCEL THE ORDER---------------------------------------###if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))<td><input class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input></td>##CANCELLATION FLOW#elseif($order.getStatus().getValue() == 13)<td>Cancellation Approval Pending</td>#elseif($order.getStatus().getValue() == 14)<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND' ></input></td>#elseif($order.getStatus().getValue() == 15 || $order.getStatus().getValue() == 34)<td>Order Cancelled</td>##--------------------------RETURN THE ORDER----------------------------------------###elseif($order.getStatus().getValue() == 12)<td><input id='$order.getId()' class='returnButton' order='$order.getId()' type='button' name='cancel' value='Request Return'></input></td>##DOA FLOW#elseif($order.getStatus().getValue() == 42)<td>DOA Approval Pending</td>#elseif($order.getStatus().getValue() == 43)<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>#elseif($order.getStatus().getValue() == 22)<td>New Order Created</td>#elseif($order.getStatus().getValue() == 32)<td>ORDER REFUNDED</td>##RETURN FLOW#elseif($order.getStatus().getValue() == 58)<td>Return Approval Pending</td>#elseif($order.getStatus().getValue() == 67)<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>#elseif($order.getStatus().getValue() == 60)<td>New Order Created</td>#elseif($order.getStatus().getValue() == 70)<td>ORDER REFUNDED</td>#end</tr>#end</tbody></table>#end</form><br/><div style="padding-bottom:20px;border-bottom:1px solid #2789C1;"><h3>Orders for Today</h3>#if($orders.size() == 0)<div class="padding-row" style="font-size: 20px; font-weight:bold;color: #AAAAAA;text-align: center;margin: 5px;padding: 5px;">NO ORDERS FOR TODAY</div>#else<table width="100%"><thead><tr><th>Order ID</th><th>Product</th><th>Status</th><th>Collection</th><th>Total Price</th><th></th><th></th></tr></thead><tbody>#foreach ( $order in $orders )<tr><td>$order.getId()</td><td>$action.getProductName($order.getLineitems().get(0))</td><td>$order.getStatusDescription()</td><td>$order.getAdvanceAmount()</td><td>$order.getTotal_amount()</td><td>#if($order.getStatus().getValue() > 2)#if($order.getStatus().getValue() == 15 || $order.getStatus().getValue() == 34)<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>#else<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>#end#elseif($order.getStatus().getValue() == 2)Approval pending#elseN/A#end</td>##--------------------------CANCEL THE ORDER---------------------------------------###if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))<td><input id='cancel_$order.getId()' class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input></td>##CANCELLATION FLOW#elseif($order.getStatus().getValue() == 13)<td>Cancellation Approval Pending</td>#elseif($order.getStatus().getValue() == 14)<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND' ></input></td>#elseif($order.getStatus().getValue() == 15)<td>Order Cancelled</td>##--------------------------RETURN THE ORDER----------------------------------------###elseif($order.getStatus().getValue() == 12)<td><input id='$order.getId()' class='returnButton' order='$order.getId()' type='button' name='cancel' value='Request Return'></input></td>##DOA FLOW#elseif($order.getStatus().getValue() == 42)<td>DOA Approval Pending</td>#elseif($order.getStatus().getValue() == 43)<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>#elseif($order.getStatus().getValue() == 22)<td>New Order Created</td>#elseif($order.getStatus().getValue() == 32)<td>ORDER REFUNDED</td>##RETURN FLOW#elseif($order.getStatus().getValue() == 58)<td>Return Approval Pending</td>#elseif($order.getStatus().getValue() == 59)<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND'></input></td>#elseif($order.getStatus().getValue() == 60)<td>New Order Created</td>#elseif($order.getStatus().getValue() == 70)<td>ORDER REFUNDED</td>#end##------------------------------------------------END-----------------------------------------------##</tr>#end</tbody></table>#end</div><h3 id='collectionReport'>Collection report for today</h3><form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST"><div><input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/></div></form><br/><h3 id='statusReport'>Download Report by Status</h3><form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadrep" action="report" method="POST"><div>Status:<select name="status"><option value="-1">ALL</option><option value="9">INIT</option><option value="5">SUCCESS</option><option value="4">FAILED</option><option value="6">REFUNDED</option><option value="10">UNKNOWN</option></select>Date:<select name="dateselector" id="dateselector"><option value="1" selected="selected">Today</option><option value="2">Yesterday</option><option value="3">Daterange</option></select><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></div><br><div><input style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;" type="submit" value="Download"/></div></form><br/></body></html>