Subversion Repositories SmartDukaan

Rev

Rev 27670 | Blame | Compare with Previous | 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>
                                        
                                         <th>MTD UA</th>
                                           <th>MTD UA Qty</th>
                                 </tr>
                                 </thead>
                                <tbody>
                                    #foreach($itemId in $branditemSales.keySet())
                                        <tr>
                                    
                                        <td>$warehouseMap.get($branditemSales.get($itemId).getWarehouseId())</td>
                                     <td>$branditemSales.get($itemId).getBrand() $branditemSales.get($itemId).getModelName() $branditemSales.get($itemId).getModelNumber() $branditemSales.get($itemId).getColor()</td>
                              <td class="currency">$branditemSales.get($itemId).getLms()</td>
                                      <td class="currency">$branditemSales.get($itemId).getLmsQty()</td>
                                      
                              <td class="currency">$branditemSales.get($itemId).getLmtd()</td>
                                      <td class="currency">$branditemSales.get($itemId).getLmtdQty()</td>
                                      <td class="currency">$branditemSales.get($itemId).getMtd()</td>
                                      <td class="currency">$branditemSales.get($itemId).getMtdQty()</td>        
                                          <td class="currency">$branditemSales.get($itemId).getAmtd()</td>      
                                       <td>$branditemSales.get($itemId).getUamtdQty()</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>