Subversion Repositories SmartDukaan

Rev

Rev 30055 | Rev 30581 | Go to most recent revision | Details | Compare with Previous | 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>
30225 tejbeer 20
            <th>Pending Sale Margin</th>
30055 manish 21
             <th>Total Income</th>
22
 
23
            </tr>
24
       </thead>
25
            <tbody>
26
            #foreach($entry in $imeiWiseIncomeMapOfMap.entrySet())
27
            	#set($imeiWiseIncome = $entry.getValue())
28
            	<tr>
29
            	#if($lastmonthCategoryUpgradeMargin.get($entry.getKey().getImei()))
30
            	<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>
31
            	#else
32
            	<td >$entry.getKey().getImei()</td>
33
            	#end
34
            	#if($imeiWiseIncome.getPurchseDate())
35
            	<td>$imeiWiseIncome.getPurchseDate().format($datehiphenFormatter)</td>
36
            	#else
37
            	<td>-</td>
38
            	#end
39
            	#foreach($purchase in $purchaseList)
40
            	<td>
41
            		#if($lastMonthPurchaseInMapPairMap.get($entry.getKey()).get($purchase))
42
            			$nf.format($lastMonthPurchaseInMapPairMap.get($entry.getKey()).get($purchase))
43
            		#else
44
            			-
45
            		#end
46
            	</td>
47
            	#end
48
            	#if($imeiWiseIncome.getSaleDate())
49
            	<td>$imeiWiseIncome.getSaleDate().format($datehiphenFormatter)</td>
50
            	#else
51
            	<td>--</td>
52
            	#end
53
 
54
            	#foreach($sale in $saleList)
55
            		<td>
56
            		#if($lastMonthCreditedMapPairMap.get($entry.getKey()).get($sale))
57
            		$nf.format($lastMonthCreditedMapPairMap.get($entry.getKey()).get($sale))
58
            		#else
59
            			-
60
            		#end
61
            		</td>
62
            	#end
63
 
64
            	#if($imeiWiseIncome.getFrontMargin())
65
            	<td>$nf.format($imeiWiseIncome.getFrontMargin())</td>
66
            	#else
67
            	<td>--</td>
68
            	#end
30225 tejbeer 69
 
70
            	#if($imeiWisePendingSaleAmount.get($entry.getKey().getImei()))
71
            	<td>$imeiWisePendingSaleAmount.get($entry.getKey().getImei())</td>
72
            	#else
73
            	<td>--</td>
74
            	#end
30055 manish 75
               #if($imeiWiseIncome.getTotalIncome())
76
                <td>$nf.format($imeiWiseIncome.getTotalIncome())</td>
77
            	#else
78
            	<td>--</td>
79
            	#end
80
 
81
 
82
 
83
 
84
            	</tr>
85
            #end
86
             </tbody>
87
        </table>          
88
        </div>
89
        </div>
90
 
91
    </section>
92
 
93
 
94
    <script>
95
 
96
        var dtable = $('#imeiWiseIncome').DataTable(
97
                {
98
 
99
                    "bPaginate": true,
100
                    "bLengthChange": true,
101
                    "bFilter": true,
102
                    "bInfo": false,
103
                    "bAutoWidth": false,
104
 
105
                      "select": 'single'
106
     });
107
 
108
 
109
 
110
    </script>
111