Rev 23946 | 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;}tr.highlight{background-color:"#f59ca0";cursor:auto;}</style><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>Approved Returns</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("approvedreturns.home")</a></li><li><i class="icon_document_alt"></i>#springMessage("approvedreturns.approvedreturns")</li></ol></div></div>#if($empty)#include("./empty.vm")#else<div><div class="row"><div class="col-lg-4"><table class="table table-striped table-condensed table-bordered" id="approved-returns"><thead><tr><th>Warehouse Name</th><th>Debit Note</th></tr></thead><tbody>#foreach( $warehouse in $warehouses.values() )<tr data-id="$warehouse.getId()" ><td><a href="javascript:void(0)" class="wh-display-name">$warehouse.getDisplayName()</a></td><td><a target="_blank" href="return/debit-note/generate/${warehouse.getId()}" class="generate-debit-note">Generate Debit Notes</a></td></tr>#end</tbody></table></div><div class="col-lg-6" id="approved-returns-container"><table class="table table-striped table-condensed table-bordered"><thead><tr><th>Item Id</th><th>Description</th><th>Serial Number</th><th>Qty</th><th>Invoice Number</th></tr></thead><tbody>#foreach( $approvedInventoryItem in $inventoryItemsMap.values() )<tr class="filter" data-id="$inventoryItemWarehouseMap.get($approvedInventoryItem.getId()).getId()"><td>$approvedInventoryItem.getItemId()</td><td>$approvedInventoryItem.getItemDescription()</td>#if($approvedInventoryItem.getSerialNumber())<td>$approvedInventoryItem.getSerialNumber()</td><td>1</td>#else<td>NA</td><td>$approvedReturnItemsMap.get($approvedInventoryItem.getId()).getQuantity()</td>#end<td>$inventoryItemsPurchaseRefMap.get($approvedInventoryItem.getId())</td></tr>#end</tbody></table></div></div>#end</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 = $('#approved-returns').DataTable({"pageLength": 50});// });</script>