| Line 9... |
Line 9... |
| 9 |
<div class="col-lg-12">
|
9 |
<div class="col-lg-12">
|
| 10 |
<div style="font-size:20px; font-weight:bold"
|
10 |
<div style="font-size:20px; font-weight:bold"
|
| 11 |
class="pull-left">$vmUtils.html($offer.getDescription())</div>
|
11 |
class="pull-left">$vmUtils.html($offer.getDescription())</div>
|
| 12 |
</div>
|
12 |
</div>
|
| 13 |
</div>
|
13 |
</div>
|
| 14 |
<div class="row" style="max-height:600px;overflow-y:auto">
|
14 |
<div class="row">
|
| 15 |
#if($offer.isBaseCriteria())
|
15 |
#if($offer.isBaseCriteria())
|
| 16 |
<div class="col-lg-12">
|
16 |
<div class="col-lg-12">
|
| 17 |
<p class="pull-left">
|
- |
|
| 18 |
<b>Base Criteria - </b>
|
17 |
<h5 style="text-align: left">Base Criteria - </h5>
|
| 19 |
$vmUtils.html($offer.getItemCriteriaString())
|
18 |
<div style="text-align:left">$offer.getItemCriteriaString()</div>
|
| 20 |
</p>
|
- |
|
| 21 |
</div>
|
19 |
</div>
|
| 22 |
#end
|
20 |
#end
|
| 23 |
<div class="col-lg-12">
|
21 |
<div class="col-lg-12">
|
| 24 |
<table class="table table-bordered table-sm">
|
22 |
<table class="table table-bordered table-sm">
|
| 25 |
<thead>
|
23 |
<thead>
|
| 26 |
<tr>
|
24 |
<tr>
|
| 27 |
<th>Models</th>
|
25 |
<th rowspan="2">Models</th>
|
| 28 |
<th>Target</th>
|
26 |
<th rowspan="2">Target</th>
|
| - |
|
27 |
#if($offer.isActivation())
|
| - |
|
28 |
<th colspan="2">Target Achieved</th>
|
| - |
|
29 |
#else
|
| - |
|
30 |
<th rowspan="2">Billed</th>
|
| - |
|
31 |
#end
|
| 29 |
<th>Payout</th>
|
32 |
<th rowspan="2">Payout On</th>
|
| - |
|
33 |
#if($offer.isActivation())
|
| - |
|
34 |
<th colspan="2">Payout Achieved</th>
|
| - |
|
35 |
#else
|
| - |
|
36 |
<th rowspan="2">Billed</th>
|
| - |
|
37 |
#end
|
| 30 |
</tr>
|
38 |
</tr>
|
| - |
|
39 |
#if($offer.isActivation())
|
| - |
|
40 |
<th style="background-color: darkgray">Billed</th>
|
| - |
|
41 |
<th>Activated</th>
|
| - |
|
42 |
<th style="background-color: darkgray">Billed</th>
|
| - |
|
43 |
<th>Activated</th>
|
| - |
|
44 |
#end
|
| 31 |
</thead>
|
45 |
</thead>
|
| 32 |
<tbody>
|
46 |
<tbody>
|
| 33 |
#foreach($itemCriteriaPayout in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts())
|
47 |
#foreach($itemCriteriaPayout in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts())
|
| - |
|
48 |
#set($criteriaItemQtyModel = $offer.getCriteriaQtyAmountModel().get($itemCriteriaPayout.getItemCriteria().getId()))
|
| - |
|
49 |
#if($offer.isBaseCriteria())
|
| - |
|
50 |
#set($baseItemCriteriaQtyAmountModel = $offer.getCriteriaQtyAmountModel().get(0))
|
| - |
|
51 |
#else
|
| - |
|
52 |
#set($baseItemCriteriaQtyAmountModel = $criteriaItemQtyModel)
|
| - |
|
53 |
#end
|
| - |
|
54 |
|
| 34 |
#foreach($payoutSlab in $itemCriteriaPayout.getPayoutSlabs())
|
55 |
#foreach($payoutSlab in $itemCriteriaPayout.getPayoutSlabs())
|
| - |
|
56 |
#set($rowspan = $itemCriteriaPayout.getPayoutSlabs().size())
|
| 35 |
<tr>
|
57 |
<tr>
|
| 36 |
#if($velocityCount==1)
|
58 |
#if($velocityCount==1)
|
| 37 |
<td rowspan="$itemCriteriaPayout.getPayoutSlabs().size()">
|
59 |
<td style="text-align:left" rowspan="$rowspan">
|
| 38 |
$itemCriteriaPayout.getItemCriteriaString()<br>
|
60 |
$itemCriteriaPayout.getItemCriteriaString()<br>
|
| 39 |
#if($itemCriteriaPayout.getStartDate()||$itemCriteriaPayout.getEndDate())
|
61 |
#if($itemCriteriaPayout.getStartDate()||$itemCriteriaPayout.getEndDate())
|
| 40 |
<span style="font-weight: bold;">Payout Date - </span><span>$itemCriteriaPayout.getStartDate().format($dateFormatter) to $itemCriteriaPayout.getEndDate().format($dateFormatter)</span>
|
62 |
<span style="font-weight: bold;">Payout Date - </span><span>$itemCriteriaPayout.getStartDate().format($dateFormatter) to $itemCriteriaPayout.getEndDate().format($dateFormatter)</span>
|
| 41 |
#end
|
63 |
#end
|
| 42 |
</td>
|
64 |
</td>
|
| 43 |
#end
|
65 |
#end
|
| - |
|
66 |
|
| 44 |
#if($offer.getPayoutType().name().equals("QUANTITY"))
|
67 |
#if($offer.getPayoutType().name().equals("QUANTITY"))
|
| 45 |
<td>$payoutSlab.getOnwardsAmount() pcs Onwards</td>
|
68 |
<td #if($payoutSlab.isSelected()) style="background-color: lightgreen" #end>$payoutSlab.getOnwardsAmount() pcs Onwards</td>
|
| 46 |
#else
|
69 |
#else
|
| 47 |
<td>Rs.<span class="currency">$payoutSlab.getOnwardsAmount()</span> Onwards</td>
|
70 |
<td #if($payoutSlab.isSelected()) style="background-color: lightgreen" #end>Rs.<span class="currency">$payoutSlab.getOnwardsAmount()</span> Onwards</td>
|
| 48 |
#end
|
71 |
#end
|
| - |
|
72 |
#if($offer.getPayoutType().name().equals("QUANTITY"))
|
| - |
|
73 |
#if($offer.isSellin() || $offer.isSellout())
|
| - |
|
74 |
<td>$baseItemCriteriaQtyAmountModel.getQty()</td>
|
| - |
|
75 |
#else
|
| - |
|
76 |
#if($velocityCount==1)
|
| - |
|
77 |
<td rowspan="$rowspan">$baseItemCriteriaQtyAmountModel.getQty()</td>
|
| - |
|
78 |
<td rowspan="$rowspan">$baseItemCriteriaQtyAmountModel.getActivationQty()</td>
|
| - |
|
79 |
#end
|
| - |
|
80 |
#end
|
| - |
|
81 |
#else
|
| - |
|
82 |
#if($offer.isSellin() || $offer.isSellout())
|
| - |
|
83 |
<td><span class="currency">$baseItemCriteriaQtyAmountModel.getAmount()</span></td>
|
| - |
|
84 |
#else
|
| - |
|
85 |
#if($velocityCount==1)
|
| - |
|
86 |
<td rowspan="$rowspan"><span class="currency" style="color: darkgrey">$baseItemCriteriaQtyAmountModel.getAmount()</span></td>
|
| - |
|
87 |
<td rowspan="$rowspan"><span class="currency">$baseItemCriteriaQtyAmountModel.getActivationAmount()</span></td>
|
| - |
|
88 |
#end
|
| - |
|
89 |
#end
|
| - |
|
90 |
#end
|
| - |
|
91 |
|
| 49 |
#if($itemCriteriaPayout.getAmountType().name().equals("PERCENTAGE"))
|
92 |
#if($itemCriteriaPayout.getAmountType().name().equals("PERCENTAGE"))
|
| - |
|
93 |
<td #if($payoutSlab.isSelected()) style="background-color: lightgreen" #end>$payoutSlab.getPayoutAmount()%</td>
|
| 50 |
<td>$payoutSlab.getPayoutAmount()%</td>
|
94 |
#if($velocityCount==1)
|
| - |
|
95 |
#if($offer.isSellin() || $offer.isSellout())
|
| - |
|
96 |
<td><span class="currency">$criteriaItemQtyModel.getAmount()</span></td>
|
| - |
|
97 |
#else
|
| - |
|
98 |
<td rowspan="$rowspan"><span class="currency">$criteriaItemQtyModel.getAmount()</span></td>
|
| - |
|
99 |
<td rowspan="$rowspan"><span class="currency">$criteriaItemQtyModel.getActivationAmount()</span></td>
|
| - |
|
100 |
#end
|
| - |
|
101 |
#end
|
| 51 |
#elseif($itemCriteriaPayout.getAmountType().name().equals("FIXED"))
|
102 |
#elseif($itemCriteriaPayout.getAmountType().name().equals("FIXED"))
|
| 52 |
<td>Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span> per pc</td>
|
103 |
<td #if($payoutSlab.isSelected()) style="background-color: lightgreen" #end>Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span> per pc</td>
|
| - |
|
104 |
#if($velocityCount==1)
|
| - |
|
105 |
#if($offer.isSellin() || $offer.isSellout())
|
| - |
|
106 |
<td>$criteriaItemQtyModel.getQty()</td>
|
| - |
|
107 |
#else
|
| - |
|
108 |
<td rowspan="$rowspan">$criteriaItemQtyModel.getQty()</td>
|
| - |
|
109 |
<td rowspan="$rowspan">$criteriaItemQtyModel.getActivationQty()</td>
|
| - |
|
110 |
#end
|
| - |
|
111 |
#end
|
| 53 |
#else
|
112 |
#else
|
| 54 |
<td>Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span></td>
|
113 |
<td #if($payoutSlab.isSelected()) style="background-color: lightgreen" #end>Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span></td>
|
| - |
|
114 |
#if($velocityCount==1)
|
| - |
|
115 |
#if($offer.isSellin() || $offer.isSellout())
|
| - |
|
116 |
<td rowspan="$rowspan">$criteriaItemQtyModel.getQty()</td>
|
| - |
|
117 |
#else
|
| - |
|
118 |
<td rowspan="$rowspan">$criteriaItemQtyModel.getQty()</td>
|
| - |
|
119 |
<td rowspan="$rowspan">$criteriaItemQtyModel.getActivationQty()</td>
|
| - |
|
120 |
#end
|
| - |
|
121 |
#end
|
| 55 |
#end
|
122 |
#end
|
| - |
|
123 |
|
| 56 |
</tr>
|
124 |
</tr>
|
| 57 |
#end
|
125 |
#end
|
| 58 |
#end
|
126 |
#end
|
| 59 |
</tbody>
|
127 |
</tbody>
|
| 60 |
</table>
|
128 |
</table>
|
| Line 73... |
Line 141... |
| 73 |
</li>
|
141 |
</li>
|
| 74 |
#end
|
142 |
#end
|
| 75 |
|
143 |
|
| 76 |
</ul>
|
144 |
</ul>
|
| 77 |
|
145 |
|
| 78 |
<div class="termContainer ck-content">
|
146 |
<div class="termContainer ck-content" style="text-align:left">
|
| 79 |
|
147 |
|
| 80 |
$offer.getTerms()
|
148 |
$offer.getTerms()
|
| 81 |
|
149 |
|
| 82 |
</div>
|
150 |
</div>
|
| 83 |
|
151 |
|