Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32074 tejbeer 1
 
2
  <script>
3
   $(document).ready(function () {
4
 
5
      var dtable = $('#vendor-pricing-circular').DataTable({
32373 tejbeer 6
                "scrollX": true,
7
                "bPaginate": true,
8
                "bLengthChange": true,
9
                "bFilter": true,
10
                "bInfo": false,
11
                "bAutoWidth": false,
12
                "pageLength": 100,
13
                lengthMenu: [
14
                    [100, -1],
33183 shampa 15
                    [50,100, 'All'],
32373 tejbeer 16
                ]
33183 shampa 17
 
32074 tejbeer 18
       });
19
 
20
    }); 
21
 
22
 </script>
23
 
24
 
25
 <div class="col-lg-12">
26
            <table id="vendor-pricing-circular" class="table table-striped table-advance table-hover" >
27
              <thead>
28
                <tr>
33183 shampa 29
                    <th> Vendor name</th>
30
 
32074 tejbeer 31
                 <th> Catalog Id</th>
32
                 <th> Model </th>
33
                 <th> TP</th>  
33729 ranu 34
                 <th> DP</th>
35
                    <th> MOP</th>
36
                    <th>Margin</th>
37
                    <th>% Margin</th>
32074 tejbeer 38
                 <th> Effected On</th>
39
                </tr>
33729 ranu 40
              </thead>
41
 
42
                <tbody>
32074 tejbeer 43
                #foreach($vendorCatalogPricing in $vendorCatalogPricings)
33729 ranu 44
                    #set($margin = $vendorCatalogPricing.getDealerPrice() - $vendorCatalogPricing.getTransferPrice())
45
                    #set($percent_margin = $margin/$vendorCatalogPricing.getTransferPrice())
32116 tejbeer 46
                <tr>
33183 shampa 47
                    <td>$suppliers.get($vendorCatalogPricing.getVendorId()).getName()</td>
33729 ranu 48
                    <td>$vendorCatalogPricing.getCatalogId()</td>
32351 amit.gupta 49
                    <td>$itemMap.get($vendorCatalogPricing.getCatalogId()).get(0).getItemDescriptionNoColor()</td>
33729 ranu 50
                    <td>$vendorCatalogPricing.getTransferPrice()</td>
51
                    <td>$vendorCatalogPricing.getDealerPrice()</td>
52
                    <td>$vendorCatalogPricing.getMop()</td>
53
                    <td>$margin</td>
54
                    <td>$vendorCatalogPricing.getMarginPercent() %</td>
55
                    <td data-t="s"
56
                        data-v="$vendorCatalogPricing.getEffectedOn()">$vendorCatalogPricing.getEffectedOn().format($dateFormatter)</td>
32116 tejbeer 57
               </tr>
32074 tejbeer 58
                 #end
59
 
60
             </tbody>
61
             </table>
62
  </div>
33729 ranu 63
 
64
 
32074 tejbeer 65
 
66