Rev 24798 | Rev 25640 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<style>.table-striped > tbody > tr:nth-child(odd) > td{background: white;background-color: white;}.table-striped > tbody > tr:nth-child(even) > td{background: white;background-color:white;}.table-striped > tbody > tr:hover > td,.table-striped > tbody > tr:hover {background-color: #e98c8f;color:white;}.btn:hover{color: grey;text-decoration: none;}.btn-primary:hover{color: grey;text-decoration: none;}.add-to-bag{cursor:pointer;}modal-dialog.modal-lg{left:10%;right:auto;width:80%;}.modal-content{background : white;}.modelHeaderCustom{font-size:14px;font-weight:bold;}hr{background-color:#007aff;border:none;height:1px;background:#007aff;}tr.selected{background-color:#B0BED9}</style><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_genius"></i>REVIEW ORDER</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_genius"></i>Review Order</li></ol></div></div><div class="row"><h4 class="modelHeaderCustom" style="font-size:22px;">Pending Payment Order</h4><div class="col-lg-12" id="catalog-container"><table class="table table-border table-condensed table-bordered" id="pending-payment-order-table"><thead><tr><th>Item Id</th><th>OrderId</th><th>Description</th><th>Customer Name </th><th>Mobile</th><th>Amount</th><th>Quantity</th><th>Created Timestamp</th></tr></thead><tbody>#if(!$pendingPaymentorder.isEmpty())#foreach($pendingorderDetail in $pendingPaymentorder )#if(!($pendingorderDetail.getRefundTimestamp()) && $pendingorderDetail.getWalletAmount()>0)<tr><td>$pendingorderDetail.getLineItem().getItemId()</td><td>$pendingorderDetail.getId()</td><td>$pendingorderDetail.getLineItem().getItem().getItemDescription()</td><td>$pendingorderDetail.getRetailerName()</td><td>$pendingorderDetail.getRetailerMobileNumber()</td><td>$pendingorderDetail.getTotalAmount()</td><td>$pendingorderDetail.getLineItem().getQuantity()</td><td>$pendingorderDetail.getCreateTimestamp().format($dateTimeFormatter)</td></tr>#end#end#end</tbody></table></div></div><div class = "row"><h4 class="modelHeaderCustom" style="font-size:22px;">In Process Order</h4><div class="col-lg-12" id="catalog-container"><table class="table table-border table-condensed table-bordered" id="pending-order-table"><thead><tr><th>Item Id</th><th>OrderId</th><th>Description</th><th>Notify Status</th><th>Customer Name </th><th>Mobile</th><th>Qty</th><th>City</th><th>State</th><th>Store Code</th><th>Created</th><th>Cancel Order</th><th>Notify</th></tr></thead><tbody>#if(!$inProcessorder.isEmpty())#foreach($orderDetail in $inProcessorder )<tr><td>$orderDetail.getLineItem().getItemId()</td><td>$orderDetail.getId()</td><td>$orderDetail.getLineItem().getItem().getItemDescription()</td>#if($latestNotifyOrders.get($orderDetail.getId()))<td> <button type="button" class="btn btn-link mk_button">$latestNotifyOrders.get($orderDetail.getId()).get().getStatus()</button></td>#else<td> </td>#end<td>$orderDetail.getRetailerName()</td><td>$orderDetail.getRetailerMobileNumber()</td><td>$orderDetail.getLineItem().getQuantity()</td><td>$orderDetail.getRetailerCity()</td><td>$orderDetail.getRetailerState()</td><td>$storeIdAndFofoIdMap.get($orderDetail.getRetailerId())</td><td>$orderDetail.getCreateTimestamp().format($dateTimeFormatter)</td><td><button class="btn btn-primary cancellation" data-orderid="$orderDetail.getId()" data-toggle="modal" data-target="#orderCancelModal" type="button" >Cancel</button></td><td><button class="btn btn-primary notify" onclick="getItemColor($orderDetail.getLineItem().getItem().getCatalogItemId(),$orderDetail.getLineItem().getItem().getId())" data-toggle="modal" data-target="#notifyOrder" type="button" >Notify</button></td></tr>#end#end</tbody></table></div></div><div id="orderCancelModal" class="modal fade" role="dialog"><div class="modal-dialog"><!-- Modal content--><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">×</button><h4 class="modal-title">Are you sure want to cancel the order</h4></div><div class="modal-body"><div class ="orderCancel"><div class=form-inline'><label for='reason'>Reason:</label><select class='form-control input-sm' id='selectreason' onchange="myFunction()" ><option selected disabled>Reasons</option><option value='The model is currently not in stock with Brand/ND'>The model is currently not in stock with Brand/ND</option><option value='The model is currently not available in the specific color with Brand/ND'>The model is currently not available in the specific color with Brand/ND</option><option value='The model/color is discontinued.'>The model/color is discontinued.</option><option value='other'>other</option></select><br><textarea class='form-control' rows='1' id='textreason'></textarea></div></div></div><div class="modal-footer"><button type="button" data-dismiss="modal" class="btn btn-default request-cancel">Cancel</button><button type="button" data-dismiss="modal" class="btn btn-default order-request-submit">Submit</button></div></div></div></div><div class="notify-container"><div class="modal fade text-center" id="notifyOrder"><div class="modal-dialog"><div class="modal-content" style="width:900px;"></div></div></div></div></section><script type="text/javascript">var editor;$(document).ready(function() {var dtable = $('#pending-order-table').DataTable({"bPaginate": true,"bLengthChange": true,"bFilter": true,"bInfo": false,"bAutoWidth": false ,});$('#pending-payment-order-table').DataTable({"bPaginate": true,"bLengthChange": true,"bFilter": true,"bInfo": false,"bAutoWidth": false});} );</script>