Subversion Repositories SmartDukaan

Rev

Rev 30581 | Rev 31355 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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