Subversion Repositories SmartDukaan

Rev

Rev 31380 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31380 Rev 32232
Line 39... Line 39...
39
                    <th>Purchase Margin</th>
39
                    <th>Purchase Margin</th>
40
                    <th>Booster Margin</th>
40
                    <th>Booster Margin</th>
41
                    <th>Sale Margin</th>
41
                    <th>Sale Margin</th>
42
                    <th>Pending Margin</th>
42
                    <th>Pending Margin</th>
43
                    <th>Addnl Margin</th>
43
                    <th>Addnl Margin</th>
-
 
44
                    <th>Selling Price - DP</th>
44
                    <th>Total</th>
45
                    <th>Total</th>
45
                </tr>
46
                </tr>
46
                </thead>
47
                </thead>
47
                <tbody>
48
                <tbody>
48
                    #foreach($key in $keySet)
49
                    #foreach($brand in $brandSet)
49
                    <tr class="brand-wise-income" data-brand="$key" data-month="$month" data-status="$status">
50
                    <tr class="brand-wise-income" data-brand="$brand" data-month="$month" data-status="$status">
50
                        <td>$key</td>
51
                        <td>$brand</td>
51
 
52
 
52
                        #if($lastMonthPurchaseInMarginMap.get($key).getAmount())
53
                        #if($lastMonthPurchaseInMarginMap.containsKey($brand))
53
                            <td>$nf.format($lastMonthPurchaseInMarginMap.get($key).getAmount())</td>
54
                            <td>$nf.format($lastMonthPurchaseInMarginMap.get($brand).getAmount())</td>
54
                        #else
55
                        #else
55
                            <td>0</td>
56
                            <td>0</td>
56
                        #end
57
                        #end
57
                        #if($additionalPurchasePayoutMap.containsKey($key))
58
                        #if($additionalPurchasePayoutMap.containsKey($brand))
58
                            <td>$nf.format($additionalPurchasePayoutMap.get($key))</td>
59
                            <td>$nf.format($additionalPurchasePayoutMap.get($brand))</td>
59
                        #else
60
                        #else
60
                            <td>0</td>
61
                            <td>0</td>
61
                        #end
62
                        #end
62
                        #if($lastMonthCategoryUpgradeMarginMap.get($key))
63
                        #if($lastMonthCategoryUpgradeMarginMap.containsKey($brand))
-
 
64
                            #if($lastMonthSaleMarginMap.get($brand).getAmount())
63
 
65
 
64
                            #if($lastMonthSaleMarginMap.get($key).getAmount())
-
 
65
 
-
 
66
                                <td>$nf.format($lastMonthSaleMarginMap.get($key).getAmount()) <i
66
                                <td>$nf.format($lastMonthSaleMarginMap.get($brand).getAmount()) <i
67
                                        class='far fa-arrow-alt-circle-up' style="color: green;"
67
                                        class='far fa-arrow-alt-circle-up' style="color: green;"
68
                                        title="$nf.format($lastMonthCategoryUpgradeMarginMap.get($key)) Category Upgrade Additional Margin."></i>
68
                                        title="$nf.format($lastMonthCategoryUpgradeMarginMap.get($brand)) Category Upgrade Additional Margin."></i>
69
                                </td>
69
                                </td>
70
                            #else
70
                            #else
71
                                <td>0<i class='far fa-arrow-alt-circle-up' style="color: green;"
71
                                <td>0<i class='far fa-arrow-alt-circle-up' style="color: green;"
72
                                        title="$nf.format($lastMonthCategoryUpgradeMarginMap.get($key)) Category Upgrade Additional Margin."></i>
72
                                        title="$nf.format($lastMonthCategoryUpgradeMarginMap.get($brand)) Category Upgrade Additional Margin."></i>
73
                                </td>
73
                                </td>
74
                            #end
74
                            #end
75
 
75
 
76
 
76
 
77
                        #else
77
                        #else
78
                            #if($lastMonthSaleMarginMap.get($key).getAmount())
78
                            #if($lastMonthSaleMarginMap.get($brand).getAmount())
79
 
79
 
80
                                <td>$nf.format($lastMonthSaleMarginMap.get($key).getAmount()) </td>
80
                                <td>$nf.format($lastMonthSaleMarginMap.get($brand).getAmount()) </td>
81
                            #else
81
                            #else
82
                                <td>0</td>
82
                                <td>0</td>
83
                            #end
83
                            #end
84
 
84
 
85
                        #end
85
                        #end
86
                        #if($lastMonthPendingIncomeMap.get($key).getAmount())
86
                        #if($lastMonthPendingIncomeMap.get($brand).getAmount())
87
                            <td>$nf.format($lastMonthPendingIncomeMap.get($key).getAmount())</td>
87
                            <td>$nf.format($lastMonthPendingIncomeMap.get($brand).getAmount())</td>
88
 
88
 
89
                        #else
89
                        #else
90
                            <td>0</td>
90
                            <td>0</td>
91
                        #end
91
                        #end
92
                        #if($additionalSalePayoutMap.containsKey($key))
92
                        #if($additionalSalePayoutMap.containsKey($brand))
93
                            <td>$nf.format($additionalSalePayoutMap.get($key))</td>
93
                            <td>$nf.format($additionalSalePayoutMap.get($brand))</td>
94
                        #else
-
 
95
                            <td>0</td>
-
 
96
                        #end
-
 
97
 
-
 
98
                        #if($totalAmountMap.get($key))
-
 
99
                            <td>$nf.format($totalAmountMap.get($key))</td>
-
 
100
                        #else
94
                        #else
101
                            <td>0</td>
95
                            <td>0</td>
102
                        #end
96
                        #end
-
 
97
                        <td>
-
 
98
                            #if($lastMonthFrontEndIncomeMap.containsKey($brand))
-
 
99
                                $lastMonthFrontEndIncomeMap.get($brand).getAmount()
-
 
100
                            #else
-
 
101
                                0
-
 
102
                            #end
-
 
103
                        </td>
-
 
104
                        <td>
-
 
105
                            #if($totalAmountMap.get($brand))
-
 
106
                                $nf.format($totalAmountMap.get($brand))
-
 
107
                            #else
-
 
108
                                0
-
 
109
                            #end
-
 
110
                        </td>
103
 
111
 
104
                    </tr>
112
                    </tr>
105
                    #end
113
                    #end
106
 
114
 
107
                </tbody>
115
                </tbody>
Line 112... Line 120...
112
                    <th></th>
120
                    <th></th>
113
                    <th></th>
121
                    <th></th>
114
                    <th></th>
122
                    <th></th>
115
                    <th></th>
123
                    <th></th>
116
                    <th></th>
124
                    <th></th>
-
 
125
                    <th></th>
117
                </tr>
126
                </tr>
118
                </tfoot>
127
                </tfoot>
119
 
128
 
120
 
129
 
121
            </table>
130
            </table>
Line 178... Line 187...
178
        var col_five_sum = numberToComma(dataTable.column(5, {page: 'current'}).data().sum());
187
        var col_five_sum = numberToComma(dataTable.column(5, {page: 'current'}).data().sum());
179
        footerContainer.find('th').eq(5).html(`<b>${col_five_sum}</b>`);
188
        footerContainer.find('th').eq(5).html(`<b>${col_five_sum}</b>`);
180
 
189
 
181
        var col_six_sum = numberToComma($('#lmiCreditedIncome').DataTable().column(6, {page: 'current'}).data().sum());
190
        var col_six_sum = numberToComma($('#lmiCreditedIncome').DataTable().column(6, {page: 'current'}).data().sum());
182
        footerContainer.find('th').eq(6).html(`<b>${col_six_sum}</b>`);
191
        footerContainer.find('th').eq(6).html(`<b>${col_six_sum}</b>`);
183
        /*
-
 
184
                var col_seven_sum = numberToComma($('#lmiCreditedIncome').DataTable().column(7, {page: 'current'}).data().sum());
192
        var col_seven_sum = numberToComma($('#lmiCreditedIncome').DataTable().column(7, {page: 'current'}).data().sum());
185
                footerContainer.find('th').eq(7).html(`<b>${col_seven_sum}</b>`);
193
        footerContainer.find('th').eq(7).html(`<b>${col_seven_sum}</b>`);
186
 
194
 
187
        var col_eight_sum = numberToComma(dataTable.column(8, {page: 'current'}).data().sum());
195
        /*var col_eight_sum = numberToComma(dataTable.column(8, {page: 'current'}).data().sum());
188
        footerContainer.find('th').eq(8).html(`<b>${col_eight_sum}</b>`);*/
196
        footerContainer.find('th').eq(8).html(`<b>${col_eight_sum}</b>`);
-
 
197
    */
189
 
198
 
190
    }
199
    }
191
 
200
 
192
 
201
 
193
</script>
202
</script>