Subversion Repositories SmartDukaan

Rev

Rev 31355 | 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>Pending Sale Margin</th>
31380 amit.gupta 19
                    <th>Total Margin</th>
20
                    <th>DP</th>
21
                    <th>NLC</th>
22
                    <th>Selling Price</th>
23
                    <th>Net Income</th>
31352 amit.gupta 24
                </tr>
25
                </thead>
26
                <tbody>
27
                    #foreach($entry in $imeiWiseIncomeMapOfMap.entrySet())
28
                        #set($imeiWiseIncome = $entry.getValue())
29
                    <tr>
30
                        #if($lastmonthCategoryUpgradeMargin.get($entry.getKey()))
31
                            <td>$entry.getKey() <i class='far fa-arrow-alt-circle-up' style="color: green;"
32
                                                   title="$nf.format($lastmonthCategoryUpgradeMargin.get($entry.getKey())) Category Upgrade Additional Margin."></i>
33
                            </td>
34
                        #else
35
                            <td>$entry.getKey()</td>
36
                        #end
37
                        #if($imeiWiseIncome.getPurchseDate())
38
                            <td>$imeiWiseIncome.getPurchseDate().format($datehiphenFormatter)</td>
39
                        #else
40
                            <td>-</td>
41
                        #end
42
                        #foreach($purchase in $purchaseList)
43
                            <td>
44
                                #if($lastMonthPurchaseInMapPairMap.get($entry.getKey()).get($purchase))
45
                                    $nf.format($lastMonthPurchaseInMapPairMap.get($entry.getKey()).get($purchase))
46
                                #else
47
                                    -
48
                                #end
49
                            </td>
50
                        #end
51
                        #if($imeiWiseIncome.getSaleDate())
52
                            <td>$imeiWiseIncome.getSaleDate().format($datehiphenFormatter)</td>
53
                        #else
31380 amit.gupta 54
                            <td>--</td>
55
                        #end
30055 manish 56
 
31352 amit.gupta 57
                        #foreach($sale in $saleList)
58
                            <td>
59
                                #if($lastMonthCreditedMapPairMap.get($entry.getKey()).get($sale))
60
                                    $nf.format($lastMonthCreditedMapPairMap.get($entry.getKey()).get($sale))
61
                                #else
62
                                    -
63
                                #end
64
                            </td>
65
                        #end
30055 manish 66
 
31352 amit.gupta 67
                        #if($imeiWisePendingSaleAmount.get($entry.getKey()))
68
                            <td>$nf.format($imeiWisePendingSaleAmount.get($entry.getKey()))</td>
69
                        #else
70
                            <td>--</td>
71
                        #end
31380 amit.gupta 72
 
31352 amit.gupta 73
                        #if($imeiWiseIncome.getTotalIncome())
74
                            <td>$nf.format($imeiWiseIncome.getTotalIncome())</td>
75
                        #else
76
                            <td>--</td>
77
                        #end
31380 amit.gupta 78
                        #if($soldMap.containsKey($entry.getKey()))
79
                            <td class="currency"> $soldMap.get($entry.getKey()).getDp() </td>
80
                            <td class="currency"> $soldMap.get($entry.getKey()).getNlc() </td>
81
                            <td class="currency"> $soldMap.get($entry.getKey()).getSellingPrice() </td>
82
                            <td class="currency"> $soldMap.get($entry.getKey()).getNetIncome() </td>
83
                        #else
84
                            <td>DP</td>
85
                            <td>NLC</td>
86
                            <td>Selling Price</td>
87
                            <td>Net income</td>
88
                        #end
31352 amit.gupta 89
 
90
                    </tr>
91
                    #end
31380 amit.gupta 92
                </tbody>
93
            </table>
30055 manish 94
        </div>
31380 amit.gupta 95
    </div>
30055 manish 96
 
31380 amit.gupta 97
</section>
30055 manish 98
 
31380 amit.gupta 99
 
100
<script>
101
 
102
    var dtable = $('#imeiWiseIncome').DataTable(
103
            {
104
 
105
                "bPaginate": true,
106
                "bLengthChange": true,
107
                "bFilter": true,
108
                "bInfo": false,
109
                "bAutoWidth": false,
110
                "pageLength": 20,
111
                "select": 'single'
112
            });
113
 
114
 
115
</script>
30055 manish 116