Rev 34141 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<style>.btn:hover {color: grey;text-decoration: none;}.btn-primary:hover {color: grey;text-decoration: none;}.retailer-details {cursor: pointer;}</style><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>Approve/Deny Return</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("pendingpeturns.home")</a></li><li><i class="icon_document_alt"></i>#springMessage("pendingpeturns.pendingreturns")</li></ol></div></div><div><div class="row"><div class="col-lg-12" id="pending-returns-container"><table class="table table-striped table-condensed table-bordered" id="pending-returns"><thead><tr><th>#springMessage("pendingpeturns.partnername")</th><th>Requested By</th><th>#springMessage("pendingpeturns.itemid")</th><th>#springMessage("pendingpeturns.description")</th><th>#springMessage("pendingpeturns.serialnumber")</th><th>#springMessage("pendingpeturns.scannedon")</th><th>#springMessage("pendingpeturns.requestedon")</th><th>#springMessage("pendingpeturns.condition")</th>#if($isAdmin)<th>Approve/Deny</th>#end</tr></thead><tbody>#foreach( $pendingReturnItem in $pendingReturnItems )#set( $inventoryItem = $inventoryItemsMap.get($pendingReturnItem.getInventoryItemId()) )<tr><td>$partners.get($inventoryItem.getFofoId()).getBusinessName()($partners.get($inventoryItem.getFofoId()).getCode())</td>#if($pendingReturnItem.getRequestedBy())<td>$pendingReturnItem.getRequestedBy()</td>#else<td>-</td>#end<td>$inventoryItem.getItemId()</td><td>$inventoryItem.getItemDescription()</td>#if($inventoryItem.getSerialNumber())<td>$inventoryItem.getSerialNumber()</td>#else<td>-----</td>#end<td>$inventoryItem.getFormattedCreateTimestamp()</td><td>$pendingReturnItem.getFormattedCreateTimestamp()</td><td>$pendingReturnItem.getReturnType()</td>#if($isAdmin && $pendingReturns)<td data-returnid="$pendingReturnItem.getId()"><a href="javascript:void(0);" class="approve-return">Approve</a> | <a href="javascript:void(0);" class="deny-return">Deny</a></td>#end</tr>#end</tbody></table></div></div></div></section><script type="text/javascript">/* Create an array with the values of all the input boxes in a column */$.fn.dataTable.ext.order['dom-text'] = function (settings, col) {return this.api().column(col, {order: 'index'}).nodes().map(function (td, i) {return $('input', td).val();});}/* Create an array with the values of all the input boxes in a column, parsed as numbers */$.fn.dataTable.ext.order['dom-text-numeric'] = function (settings, col) {return this.api().column(col, {order: 'index'}).nodes().map(function (td, i) {return $('input', td).val() * 1;});}/* Create an array with the values of all the select options in a column */$.fn.dataTable.ext.order['dom-select'] = function (settings, col) {return this.api().column(col, {order: 'index'}).nodes().map(function (td, i) {return $('select', td).val();});}/* Create an array with the values of all the checkboxes in a column */$.fn.dataTable.ext.order['dom-checkbox'] = function (settings, col) {return this.api().column(col, {order: 'index'}).nodes().map(function (td, i) {return $('input', td).prop('checked') ? '1' : '0';});}/* Initialise the table with the required column ordering data types */$(document).ready(function () {returnsTable = $('#pending-returns').DataTable({"pageLength": 50});});</script>