Subversion Repositories SmartDukaan

Rev

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

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