Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="col-lg-12">
        <table id="warehouseItemWisePartnerSale" class="table table-striped table-advance table-hover">
                <thead>
                <tr>
                                        <th>W/H Name</th>
                                        <th>Item</th>
                                    <th>LMS</th>
                                    <th>LMS Qty</th>
                                        <th>LMTD</th>
                                        <th>LMTD Qty</th>
                                         <th>MTD</th>
                                         <th>MTD Qty</th>
                                 </tr>
                                 </thead>
                                <tbody>
                                    #foreach($branditemSale in $branditemSales)
                                        <tr>
                                    
                                        <td>$warehouseMap.get($branditemSale.getWarehouseId())</td>
                                     <td>$branditemSale.getBrand() $branditemSale.getModelName() $branditemSale.getModelNumber() $branditemSale.getColor()</td>
                              <td class="currency">$branditemSale.getLms()</td>
                                      <td class="currency">$branditemSale.getLmsQty()</td>
                                      
                              <td class="currency">$branditemSale.getLmtd()</td>
                                      <td class="currency">$branditemSale.getLmtdQty()</td>
                                      <td class="currency">$branditemSale.getMtd()</td>
                                      <td class="currency">$branditemSale.getMtdQty()</td>      </tr>
                                         #end
                                        
                            </tbody>
                        </table>
                    </div>
                                                



                                        


<script type="text/javascript">
  $(document).ready(function() {

   $('#warehouseItemWisePartnerSale thead tr').clone(true).appendTo( '#warehouseItemWisePartnerSale thead' );
    $('#warehouseItemWisePartnerSale thead tr:eq(1) th').each( function (i) {
        var title = $(this).text();
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
 
        $( 'input', this ).on( 'keyup change', function () {
            if ( table.column(i).search() !== this.value ) {
                table
                    .column(i)
                    .search( this.value )
                    .draw();
            }
        } );
    } )
  var table = $('#warehouseItemWisePartnerSale').DataTable( {
        orderCellsTop: true,
        fixedHeader: true
    } );
});




</script>