| Line -... |
Line 1... |
| - |
|
1 |
<style>
|
| - |
|
2 |
|
| - |
|
3 |
.brandStock .tooltiptext {
|
| - |
|
4 |
visibility: hidden;
|
| - |
|
5 |
width: 120px;
|
| - |
|
6 |
background-color: black;
|
| - |
|
7 |
color: #fff;
|
| - |
|
8 |
text-align: center;
|
| - |
|
9 |
border-radius: 6px;
|
| - |
|
10 |
padding: 5px 0;
|
| 1 |
|
11 |
|
| - |
|
12 |
/* Position the tooltip */
|
| - |
|
13 |
position: absolute;
|
| - |
|
14 |
z-index: 1;
|
| - |
|
15 |
}
|
| - |
|
16 |
|
| - |
|
17 |
.brandStock:hover .tooltiptext {
|
| - |
|
18 |
visibility: visible;
|
| - |
|
19 |
}
|
| - |
|
20 |
</style>
|
| 2 |
|
21 |
|
| 3 |
<section class="wrapper">
|
22 |
<section class="wrapper">
|
| 4 |
<div class="row">
|
23 |
<div class="row">
|
| 5 |
<div class="col-lg-12">
|
24 |
<div class="col-lg-12">
|
| 6 |
<h3 class="page-header"><i class="icon_document_alt"></i>Partner Details</h3>
|
25 |
<h3 class="page-header"><i class="icon_document_alt"></i>Partner Details</h3>
|
| Line 15... |
Line 34... |
| 15 |
|
34 |
|
| 16 |
<div class="col-lg-12">
|
35 |
<div class="col-lg-12">
|
| 17 |
<table id="partnerBrandWiseDetail" class="table table-striped table-advance table-hover" style="width:100%">
|
36 |
<table id="partnerBrandWiseDetail" class="table table-striped table-advance table-hover" style="width:100%">
|
| 18 |
<thead>
|
37 |
<thead>
|
| 19 |
<tr>
|
38 |
<tr>
|
| 20 |
<th rowspan = "2">Partner Name</th>
|
39 |
<th>Partner Name</th>
|
| 21 |
<th rowspan = "2">Code</th>
|
40 |
<th>Code</th>
|
| 22 |
<th rowspan = "2">Category</th>
|
41 |
<th>Category</th>
|
| 23 |
<th rowspan = "2">Manager</th>
|
42 |
<th>Manager</th>
|
| 24 |
<th rowspan = "2">Wallet Amount</th>
|
43 |
<th>Wallet Amount</th>
|
| 25 |
<th rowspan = "2">Short Invest</th>
|
44 |
<th>Short Invest</th>
|
| 26 |
<th rowspan = "2">Min Invest</th>
|
45 |
<th>Min Invest</th>
|
| 27 |
|
46 |
|
| 28 |
#foreach($brand in $brands)
|
47 |
#foreach($brand in $brands)
|
| 29 |
|
48 |
|
| 30 |
<th class="$brand.toLowerCase()"><p>$brand</p></th>
|
49 |
<th class="$brand.toLowerCase()"><p>$brand</p></th>
|
| 31 |
#end
|
50 |
#end
|
| 32 |
<th>Accessories</th>
|
51 |
<th>Accessories</th>
|
| 33 |
<th>TV</th>
|
52 |
<th>TV</th>
|
| 34 |
</tr>
|
53 |
</tr>
|
| 35 |
|
54 |
|
| 36 |
<tr>
|
- |
|
| 37 |
|
55 |
|
| 38 |
#foreach($brand in $brands)
|
- |
|
| 39 |
|
- |
|
| 40 |
<th class="currency">$brandAmountLimit.get($brand)</th>
|
- |
|
| 41 |
#end
|
- |
|
| 42 |
<th class="currency">$brandAmountLimit.get("accessories")</th>
|
- |
|
| 43 |
<th class="currency">$brandAmountLimit.get("TV")</th>
|
- |
|
| 44 |
</tr>
|
- |
|
| 45 |
|
56 |
|
| 46 |
</thead>
|
57 |
</thead>
|
| 47 |
<tbody>
|
58 |
<tbody>
|
| 48 |
|
59 |
|
| 49 |
#foreach($cr in $customRetailers.entrySet())
|
60 |
#foreach($cr in $customRetailers.entrySet())
|
| Line 71... |
Line 82... |
| 71 |
<td class="currency">$partnerDailyInvestmentMap.get($cr.getKey()).getMinInvestment()</td>
|
82 |
<td class="currency">$partnerDailyInvestmentMap.get($cr.getKey()).getMinInvestment()</td>
|
| 72 |
|
83 |
|
| 73 |
|
84 |
|
| 74 |
#foreach($brand in $brands)
|
85 |
#foreach($brand in $brands)
|
| 75 |
|
86 |
|
| 76 |
|
- |
|
| 77 |
|
- |
|
| 78 |
|
87 |
|
| 79 |
#set($totalStock = $fofoIdBrandAmountMap.get($cr.getKey()).get($brand))
|
88 |
#set($totalStock = $fofoIdBrandAmountMap.get($cr.getKey()).get($brand))
|
| 80 |
|
89 |
|
| - |
|
90 |
#set($minBrandAmount = 0.0)
|
| - |
|
91 |
|
| - |
|
92 |
#set($stockPercent = 100)
|
| - |
|
93 |
|
| - |
|
94 |
#if($partnerBrandLimitMap.get($cr.getKey()))
|
| - |
|
95 |
|
| - |
|
96 |
#if($partnerBrandLimitMap.get($cr.getKey()).get($brand))
|
| - |
|
97 |
|
| - |
|
98 |
#set($minBrandAmount = $partnerBrandLimitMap.get($cr.getKey()).get($brand))
|
| - |
|
99 |
|
| - |
|
100 |
#set($stockPercent = ($totalStock / $minBrandAmount)*100)
|
| - |
|
101 |
#end
|
| - |
|
102 |
#end
|
| - |
|
103 |
|
| 81 |
|
104 |
|
| 82 |
#if($brandAmountLimit.get($brand) != 0)
|
- |
|
| 83 |
#set($stockPercent = ($totalStock / $brandAmountLimit.get($brand))*100)
|
- |
|
| 84 |
#else
|
- |
|
| 85 |
#set($stockPercent = 100)
|
- |
|
| 86 |
#end
|
105 |
|
| 87 |
|
106 |
|
| 88 |
#if($brand == "Nokia" || $brand == "Xiaomi" || $brand == "Realme")
|
107 |
#if($brand == "Nokia" || $brand == "Xiaomi" || $brand == "Realme")
|
| 89 |
<td class="currency brandStock" data-fofoid="$cr.getKey()" data-brand="$brand" data-toggle="modal" data-target="#itemWiseBrandStock">$totalStock</td>
|
108 |
<td class="currency brandStock" data-fofoid="$cr.getKey()" data-brand="$brand" data-toggle="modal" data-target="#itemWiseBrandStock">$totalStock <span class="tooltiptext">$minBrandAmount</span></td>
|
| 90 |
|
109 |
|
| 91 |
#else
|
110 |
#else
|
| 92 |
#if($stockPercent > 90)
|
111 |
#if($stockPercent > 90)
|
| 93 |
<td class="currency brandStock" style="background-color:#52BE80" data-stock = "$inStockBrandModel.get($cr.getKey()).get($brand)" data-pending = "$pendingIndent.get($cr.getKey()).get($brand)" data-grn= "$grnPendingOrders.get($cr.getKey()).get($brand)" data-fofoid="$cr.getKey()" data-brand="$brand" data-toggle="modal" data-target="#itemWiseBrandStock">$totalStock</td>
|
112 |
<td class="currency brandStock" style="background-color:#52BE80" data-stock = "$inStockBrandModel.get($cr.getKey()).get($brand)" data-pending = "$pendingIndent.get($cr.getKey()).get($brand)" data-grn= "$grnPendingOrders.get($cr.getKey()).get($brand)" data-fofoid="$cr.getKey()" data-brand="$brand" data-toggle="modal" data-target="#itemWiseBrandStock">$totalStock <span class="tooltiptext">$minBrandAmount</span></td>
|
| 94 |
#elseif($stockPercent < 80)
|
113 |
#elseif($stockPercent < 80)
|
| 95 |
<td class="currency brandStock" style="background-color:#EC7063 " data-stock = "$inStockBrandModel.get($cr.getKey()).get($brand)" data-pending = "$pendingIndent.get($cr.getKey()).get($brand)" data-grn= "$grnPendingOrders.get($cr.getKey()).get($brand)" data-fofoid="$cr.getKey()" data-brand="$brand" data-toggle="modal" data-target="#itemWiseBrandStock"> $totalStock</td>
|
114 |
<td class="currency brandStock" style="background-color:#EC7063 " data-stock = "$inStockBrandModel.get($cr.getKey()).get($brand)" data-pending = "$pendingIndent.get($cr.getKey()).get($brand)" data-grn= "$grnPendingOrders.get($cr.getKey()).get($brand)" data-fofoid="$cr.getKey()" data-brand="$brand" data-toggle="modal" data-target="#itemWiseBrandStock"> $totalStock <span class="tooltiptext">$minBrandAmount</span></td>
|
| 96 |
#else
|
115 |
#else
|
| 97 |
<td class="currency brandStock" style="background-color:#F7DC6F" data-stock = "$inStockBrandModel.get($cr.getKey()).get($brand)" data-pending = "$pendingIndent.get($cr.getKey()).get($brand)" data-grn= "$grnPendingOrders.get($cr.getKey()).get($brand)" data-fofoid="$cr.getKey()" data-brand="$brand" data-toggle="modal" data-target="#itemWiseBrandStock">$totalStock</td>
|
116 |
<td class="currency brandStock" style="background-color:#F7DC6F" data-stock = "$inStockBrandModel.get($cr.getKey()).get($brand)" data-pending = "$pendingIndent.get($cr.getKey()).get($brand)" data-grn= "$grnPendingOrders.get($cr.getKey()).get($brand)" data-fofoid="$cr.getKey()" data-brand="$brand" data-toggle="modal" data-target="#itemWiseBrandStock">$totalStock <span class="tooltiptext">$minBrandAmount</span></td>
|
| 98 |
#end
|
117 |
#end
|
| 99 |
|
118 |
|
| 100 |
#end
|
119 |
#end
|
| 101 |
|
120 |
|
| 102 |
#end
|
121 |
#end
|