Subversion Repositories SmartDukaan

Rev

Rev 33183 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  
  <script>
   $(document).ready(function () {
        
      var dtable = $('#vendor-pricing-circular').DataTable({
                "scrollX": true,
                "bPaginate": true,
                "bLengthChange": true,
                "bFilter": true,
                "bInfo": false,
                "bAutoWidth": false,
                "pageLength": 100,
                lengthMenu: [
                    [100, -1],
                    [50,100, 'All'],
                ]

       });
    
    }); 
 
 </script>
 
 
 <div class="col-lg-12">
            <table id="vendor-pricing-circular" class="table table-striped table-advance table-hover" >
              <thead>
                <tr>
                    <th> Vendor name</th>

                 <th> Catalog Id</th>
                 <th> Model </th>
                 <th> TP</th>  
                 <th> DP</th>
                    <th> MOP</th>
                    <th>Margin</th>
                    <th>% Margin</th>
                 <th> Effected On</th>
                </tr>
              </thead>

                <tbody>
                #foreach($vendorCatalogPricing in $vendorCatalogPricings)
                    #set($margin = $vendorCatalogPricing.getDealerPrice() - $vendorCatalogPricing.getTransferPrice())
                    #set($percent_margin = $margin/$vendorCatalogPricing.getTransferPrice())
                <tr>
                    <td>$suppliers.get($vendorCatalogPricing.getVendorId()).getName()</td>
                    <td>$vendorCatalogPricing.getCatalogId()</td>
                    <td>$itemMap.get($vendorCatalogPricing.getCatalogId()).get(0).getItemDescriptionNoColor()</td>
                    <td>$vendorCatalogPricing.getTransferPrice()</td>
                    <td>$vendorCatalogPricing.getDealerPrice()</td>
                    <td>$vendorCatalogPricing.getMop()</td>
                    <td>$margin</td>
                    <td>$vendorCatalogPricing.getMarginPercent() %</td>
                    <td data-t="s"
                        data-v="$vendorCatalogPricing.getEffectedOn()">$vendorCatalogPricing.getEffectedOn().format($dateFormatter)</td>
               </tr>
                 #end
                 
             </tbody>
             </table>
  </div>