| 30055 |
manish |
1 |
|
|
|
2 |
<table class="table table-border table-condensed table-bordered" id="brandWiseIncome">
|
|
|
3 |
|
|
|
4 |
<thead class="row htable">
|
|
|
5 |
|
|
|
6 |
<tr style="color:black;">
|
|
|
7 |
<th>Model Name</th>
|
|
|
8 |
<th>Purchase Qty</th>
|
|
|
9 |
<th>Purchase Margin</th>
|
|
|
10 |
<th>Sale Qty</th>
|
|
|
11 |
<th>Sale Margin</th>
|
|
|
12 |
<th>Total Amount</th>
|
|
|
13 |
</tr>
|
|
|
14 |
</thead>
|
|
|
15 |
<tbody>
|
|
|
16 |
#foreach($modelWiseEntry in $modelWiseMap.entrySet())
|
|
|
17 |
|
|
|
18 |
#if($modelWiseEntry.getValue().getCatalogItemId())
|
|
|
19 |
<tr class="imei_wise_income" data-catalogitemid="$modelWiseEntry.getValue().getCatalogItemId()" data-month="$month">
|
|
|
20 |
#else
|
|
|
21 |
<tr class="imei_wise_income" data-catalogitemid="$purchaseWiseMap.get($modelWiseEntry.getKey()).getCatalogItemId()" data-month="$month">
|
|
|
22 |
#end
|
|
|
23 |
|
|
|
24 |
#if($modelWiseEntry.getValue().getModelName())
|
|
|
25 |
<td>$modelWiseEntry.getValue().getModelName() $modelWiseEntry.getKey()</td>
|
|
|
26 |
#else
|
|
|
27 |
<td>$modelWiseEntry.getKey()</td>
|
|
|
28 |
#end
|
|
|
29 |
|
|
|
30 |
#if($purchaseWiseMap.get($modelWiseEntry.getKey()).getQty())
|
|
|
31 |
<td>$purchaseWiseMap.get($modelWiseEntry.getKey()).getQty()</td>
|
|
|
32 |
#else
|
|
|
33 |
<td>--</td>
|
|
|
34 |
#end
|
|
|
35 |
#if($purchaseWiseMap.get($modelWiseEntry.getKey()).getAmount())
|
|
|
36 |
<td>$nf.format($purchaseWiseMap.get($modelWiseEntry.getKey()).getAmount())</td>
|
|
|
37 |
#else
|
|
|
38 |
<td>--</td>
|
|
|
39 |
#end
|
|
|
40 |
|
|
|
41 |
#if($modelWiseEntry.getValue().getQty() )
|
|
|
42 |
<td>$modelWiseEntry.getValue().getQty()</td>
|
|
|
43 |
#else
|
|
|
44 |
<td>--</td>
|
|
|
45 |
#end
|
|
|
46 |
|
|
|
47 |
#if($categoryUpradeBrandModelMap.get($modelWiseEntry.getKey()))
|
|
|
48 |
|
|
|
49 |
#if($modelWiseEntry.getValue().getAmount())
|
|
|
50 |
<td>$nf.format($modelWiseEntry.getValue().getAmount()) <i class='far fa-arrow-alt-circle-up' style="color: green;" title="$nf.format($categoryUpradeBrandModelMap.get($modelWiseEntry.getKey())) Category Upgrade Additional Margin."></i></td>
|
|
|
51 |
#else
|
|
|
52 |
<td> -- <i class='far fa-arrow-alt-circle-up' style="color: green;" title="$nf.format($categoryUpradeBrandModelMap.get($modelWiseEntry.getKey())) Category Upgrade Additional Margin."></i></td>
|
|
|
53 |
#end
|
|
|
54 |
#else
|
|
|
55 |
#if($modelWiseEntry.getValue().getAmount())
|
|
|
56 |
<td>$nf.format($modelWiseEntry.getValue().getAmount()) </td>
|
|
|
57 |
#else
|
|
|
58 |
<td>--</td>
|
|
|
59 |
#end
|
|
|
60 |
|
|
|
61 |
#end
|
|
|
62 |
|
|
|
63 |
#if($modelWiseTotalAmount.get($modelWiseEntry.getKey()))
|
|
|
64 |
<td>$nf.format($modelWiseTotalAmount.get($modelWiseEntry.getKey()))</td>
|
|
|
65 |
#else
|
|
|
66 |
<td>--</td>
|
|
|
67 |
#end
|
|
|
68 |
|
|
|
69 |
</tr>
|
|
|
70 |
#end
|
|
|
71 |
</tbody>
|
|
|
72 |
|
|
|
73 |
<script>
|
|
|
74 |
|
|
|
75 |
var dtable = $('#brandWiseIncome').DataTable(
|
|
|
76 |
{
|
|
|
77 |
|
|
|
78 |
"bPaginate": true,
|
|
|
79 |
"bLengthChange": true,
|
|
|
80 |
"bFilter": true,
|
|
|
81 |
"bInfo": false,
|
|
|
82 |
"bAutoWidth": false,
|
|
|
83 |
"scrollX": true,
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
});
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
</script>
|