Subversion Repositories SmartDukaan

Rev

Rev 30225 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30055 manish 1
 
2
 <section class="wrapper">
3
    <div class="row">
4
      <div class="col-lg-12">
5
        <table class="table table-border table-condensed table-bordered" id="imeiWiseIncome">
6
 
7
       <thead class="row htable">
8
 
9
            <tr style="color:black;">
10
             <th>Serial Number</th>
11
            <th>Purchase Date</th>
12
            #foreach($purchase in $purchaseList)
13
            <th>$purchase</th>
14
            #end
15
            <th>Sale Date</th>
16
            #foreach($sale in $saleList)
17
            <th>$sale</th>
18
            #end
19
            <th>(Selling Price) - (DP)</th>
20
             <th>Total Income</th>
21
 
22
            </tr>
23
       </thead>
24
            <tbody>
25
            #foreach($entry in $imeiWiseIncomeMapOfMap.entrySet())
26
            	#set($imeiWiseIncome = $entry.getValue())
27
            	<tr>
28
            	#if($lastmonthCategoryUpgradeMargin.get($entry.getKey().getImei()))
29
            	<td >$entry.getKey().getImei() <i class='far fa-arrow-alt-circle-up' style="color: green;" title="$nf.format($lastmonthCategoryUpgradeMargin.get($entry.getKey().getImei())) Category Upgrade Additional Margin."></i></td>
30
            	#else
31
            	<td >$entry.getKey().getImei()</td>
32
            	#end
33
            	#if($imeiWiseIncome.getPurchseDate())
34
            	<td>$imeiWiseIncome.getPurchseDate().format($datehiphenFormatter)</td>
35
            	#else
36
            	<td>-</td>
37
            	#end
38
            	#foreach($purchase in $purchaseList)
39
            	<td>
40
            		#if($lastMonthPurchaseInMapPairMap.get($entry.getKey()).get($purchase))
41
            			$nf.format($lastMonthPurchaseInMapPairMap.get($entry.getKey()).get($purchase))
42
            		#else
43
            			-
44
            		#end
45
            	</td>
46
            	#end
47
            	#if($imeiWiseIncome.getSaleDate())
48
            	<td>$imeiWiseIncome.getSaleDate().format($datehiphenFormatter)</td>
49
            	#else
50
            	<td>--</td>
51
            	#end
52
 
53
            	#foreach($sale in $saleList)
54
            		<td>
55
            		#if($lastMonthCreditedMapPairMap.get($entry.getKey()).get($sale))
56
            		$nf.format($lastMonthCreditedMapPairMap.get($entry.getKey()).get($sale))
57
            		#else
58
            			-
59
            		#end
60
            		</td>
61
            	#end
62
 
63
            	#if($imeiWiseIncome.getFrontMargin())
64
            	<td>$nf.format($imeiWiseIncome.getFrontMargin())</td>
65
            	#else
66
            	<td>--</td>
67
            	#end
68
               #if($imeiWiseIncome.getTotalIncome())
69
                <td>$nf.format($imeiWiseIncome.getTotalIncome())</td>
70
            	#else
71
            	<td>--</td>
72
            	#end
73
 
74
 
75
 
76
 
77
            	</tr>
78
            #end
79
             </tbody>
80
        </table>          
81
        </div>
82
        </div>
83
 
84
    </section>
85
 
86
 
87
    <script>
88
 
89
        var dtable = $('#imeiWiseIncome').DataTable(
90
                {
91
 
92
                    "bPaginate": true,
93
                    "bLengthChange": true,
94
                    "bFilter": true,
95
                    "bInfo": false,
96
                    "bAutoWidth": false,
97
 
98
                      "select": 'single'
99
     });
100
 
101
 
102
 
103
    </script>
104