| 26674 |
tejbeer |
1 |
<div class="modal-header">
|
|
|
2 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
3 |
<h4 class="modal-title">Offer Detail</h4>
|
|
|
4 |
</div>
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
<div class="modal-body">
|
|
|
8 |
|
|
|
9 |
<div style="margin-top: 15px;" class="offer-margin-table">
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
<div class = "row">
|
|
|
13 |
|
|
|
14 |
<div class="col-lg-12">
|
|
|
15 |
<div style = "font-size:20px; font-weight:bold">$offer.getName() </div>
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
#if($brands)
|
|
|
19 |
<div style = "font-size:15px; font-weight:bold">Brands :- $brands</div>
|
|
|
20 |
#end
|
|
|
21 |
|
|
|
22 |
#if($items)
|
|
|
23 |
#foreach($item in $items)
|
|
|
24 |
<span style = "font-size:15px; font-weight:bold">$item.getBrand() $item.getModelName() $item.getModelNumber(),</span>
|
|
|
25 |
#end
|
|
|
26 |
#end
|
|
|
27 |
|
|
|
28 |
<table class="table table-advance" id = "margin-detail">
|
|
|
29 |
<tbody>
|
|
|
30 |
<tr>
|
|
|
31 |
#if($offer.getTargetType() == "quantity")
|
|
|
32 |
<th>Quantity</th>
|
|
|
33 |
#else
|
|
|
34 |
<th>Value</th>
|
|
|
35 |
#end
|
|
|
36 |
|
|
|
37 |
#if($offer.getAmountType() == "percentage")
|
|
|
38 |
<th>Margin (%)</th>
|
|
|
39 |
|
|
|
40 |
#else
|
|
|
41 |
|
|
|
42 |
<th>Margin (Rs.)</th>
|
|
|
43 |
#end
|
|
|
44 |
</tr>
|
|
|
45 |
|
|
|
46 |
</thead>
|
|
|
47 |
|
|
|
48 |
#foreach($om in $offerMargin)
|
|
|
49 |
<tr>
|
|
|
50 |
|
|
|
51 |
<td>$om.getValue()</td>
|
|
|
52 |
<td>$om.getMargin()</td>
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
</tr>
|
|
|
58 |
#end
|
|
|
59 |
</tbody>
|
|
|
60 |
</table>
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
|
|
|
64 |
<div class = "row">
|
|
|
65 |
|
|
|
66 |
<div class="col-lg-12">
|
|
|
67 |
|
|
|
68 |
<table class="table table-advance" id = "partner-value-table">
|
|
|
69 |
<tbody>
|
|
|
70 |
<tr>
|
|
|
71 |
<th>Partner Name</th>
|
|
|
72 |
#if($offer.getTargetType() == "quantity")
|
|
|
73 |
<th>Sale (Quantity)</th>
|
|
|
74 |
#else
|
|
|
75 |
<th>Sale (Value)</th>
|
|
|
76 |
#end
|
|
|
77 |
<th>Margin Achieved</th>
|
|
|
78 |
</tr>
|
|
|
79 |
|
|
|
80 |
</thead>
|
|
|
81 |
|
|
|
82 |
#foreach($partnerValue in $partnerValueMap.entrySet() )
|
|
|
83 |
<tr>
|
|
|
84 |
<td>$customRetailersMap.get($partnerValue.getKey()).getBusinessName()</td>
|
|
|
85 |
<td>$partnerValue.getValue()</td>
|
|
|
86 |
#foreach($partnerMargin in $partnerMarginMap.get($partnerValue.getKey()))
|
|
|
87 |
#if($partnerMarginMap.get($partnerValue.getKey()).size() == 1 && $shortageAmount.get($partnerValue.getKey()) !=0)
|
|
|
88 |
<td>0</td>
|
|
|
89 |
#break;
|
|
|
90 |
#elseif($partnerMarginMap.get($partnerValue.getKey()).size() == 1 && $shortageAmount.get($partnerValue.getKey()) == 0)
|
|
|
91 |
<td>$partnerMargin</td>
|
|
|
92 |
#break;
|
|
|
93 |
#elseif($partnerMarginMap.get($partnerValue.getKey()).size() == $offerMargin.size() && $shortageAmount.get($partnerValue.getKey()) !=0)
|
|
|
94 |
|
|
|
95 |
#set($sub = $partnerMarginMap.get($partnerValue.getKey()).size()- 2)
|
|
|
96 |
<td>$partnerMarginMap.get($partnerValue.getKey()).get($sub)</td>
|
|
|
97 |
#break;
|
|
|
98 |
#elseif($partnerMarginMap.get($partnerValue.getKey()).size() == $offerMargin.size() && $shortageAmount.get($partnerValue.getKey()) ==0)
|
|
|
99 |
|
|
|
100 |
#set($sub = $partnerMarginMap.get($partnerValue.getKey()).size()- 1)
|
|
|
101 |
<td>$partnerMarginMap.get($partnerValue.getKey()).get($sub)</td>
|
|
|
102 |
#break;
|
|
|
103 |
|
|
|
104 |
#elseif($shortageAmount.get($partnerValue.getKey()) ==0)
|
|
|
105 |
#set($sub = $partnerMarginMap.get($partnerValue.getKey()).size()- 1)
|
|
|
106 |
<td>$partnerMarginMap.get($partnerValue.getKey()).get($sub)</td>
|
|
|
107 |
<td></td>
|
|
|
108 |
#break
|
|
|
109 |
|
|
|
110 |
#elseif($shortageAmount.get($partnerValue.getKey()) !=0)
|
|
|
111 |
|
|
|
112 |
#set($sub = $partnerMarginMap.get($partnerValue.getKey()).size()- 2)
|
|
|
113 |
<td>$partnerMarginMap.get($partnerValue.getKey()).get($sub)</td>
|
|
|
114 |
#break
|
|
|
115 |
|
|
|
116 |
#end
|
|
|
117 |
#end
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
</tr>
|
|
|
122 |
#end
|
|
|
123 |
</tbody>
|
|
|
124 |
</table>
|
|
|
125 |
</div>
|
|
|
126 |
</div>
|
|
|
127 |
|
|
|
128 |
</div>
|
|
|
129 |
|
|
|
130 |
</div>
|
|
|
131 |
|
|
|
132 |
<div class="modal-footer">
|
|
|
133 |
<button type="button" data-dismiss="modal" class="btn btn-default cancel-request">Ok</button>
|
|
|
134 |
|
|
|
135 |
</div>
|