| 32203 |
amit.gupta |
1 |
<div class="modal-header">
|
|
|
2 |
<button type="button" class="close" id="cancel-model" data-dismiss="modal">×</button>
|
|
|
3 |
<h4 class="modal-title">Terms & Conditions</h4>
|
|
|
4 |
</div>
|
|
|
5 |
<div class="modal-body" style="height:500px;overflow:auto">
|
|
|
6 |
<div style="margin-top: 15px;" class="offer-margin-table">
|
|
|
7 |
|
|
|
8 |
<div class="row">
|
|
|
9 |
<div class="col-lg-12">
|
|
|
10 |
<div style="font-size:20px; font-weight:bold"
|
|
|
11 |
class="pull-left">$vmUtils.html($offer.getDescription())</div>
|
|
|
12 |
</div>
|
|
|
13 |
</div>
|
| 35396 |
amit |
14 |
<div class="row">
|
| 32203 |
amit.gupta |
15 |
#if($offer.isBaseCriteria())
|
|
|
16 |
<div class="col-lg-12">
|
| 35396 |
amit |
17 |
<h5 style="text-align: left">Base Criteria - </h5>
|
|
|
18 |
<div style="text-align:left">$offer.getItemCriteriaString()</div>
|
| 32203 |
amit.gupta |
19 |
</div>
|
|
|
20 |
#end
|
|
|
21 |
<div class="col-lg-12">
|
|
|
22 |
<table class="table table-bordered table-sm">
|
|
|
23 |
<thead>
|
|
|
24 |
<tr>
|
| 35396 |
amit |
25 |
<th rowspan="2">Models</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
|
|
|
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
|
| 32203 |
amit.gupta |
38 |
</tr>
|
| 35396 |
amit |
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
|
| 32203 |
amit.gupta |
45 |
</thead>
|
|
|
46 |
<tbody>
|
|
|
47 |
#foreach($itemCriteriaPayout in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts())
|
| 35396 |
amit |
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 |
|
| 32203 |
amit.gupta |
55 |
#foreach($payoutSlab in $itemCriteriaPayout.getPayoutSlabs())
|
| 35396 |
amit |
56 |
#set($rowspan = $itemCriteriaPayout.getPayoutSlabs().size())
|
| 32203 |
amit.gupta |
57 |
<tr>
|
|
|
58 |
#if($velocityCount==1)
|
| 35396 |
amit |
59 |
<td style="text-align:left" rowspan="$rowspan">
|
| 33713 |
tejus.loha |
60 |
$itemCriteriaPayout.getItemCriteriaString()<br>
|
|
|
61 |
#if($itemCriteriaPayout.getStartDate()||$itemCriteriaPayout.getEndDate())
|
|
|
62 |
<span style="font-weight: bold;">Payout Date - </span><span>$itemCriteriaPayout.getStartDate().format($dateFormatter) to $itemCriteriaPayout.getEndDate().format($dateFormatter)</span>
|
|
|
63 |
#end
|
| 32203 |
amit.gupta |
64 |
</td>
|
|
|
65 |
#end
|
| 35396 |
amit |
66 |
|
| 32203 |
amit.gupta |
67 |
#if($offer.getPayoutType().name().equals("QUANTITY"))
|
| 35396 |
amit |
68 |
<td #if($payoutSlab.isSelected()) style="background-color: lightgreen" #end>$payoutSlab.getOnwardsAmount() pcs Onwards</td>
|
| 32203 |
amit.gupta |
69 |
#else
|
| 35396 |
amit |
70 |
<td #if($payoutSlab.isSelected()) style="background-color: lightgreen" #end>Rs.<span class="currency">$payoutSlab.getOnwardsAmount()</span> Onwards</td>
|
| 32203 |
amit.gupta |
71 |
#end
|
| 35396 |
amit |
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 |
|
| 32203 |
amit.gupta |
92 |
#if($itemCriteriaPayout.getAmountType().name().equals("PERCENTAGE"))
|
| 35396 |
amit |
93 |
<td #if($payoutSlab.isSelected()) style="background-color: lightgreen" #end>$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
|
| 32203 |
amit.gupta |
102 |
#elseif($itemCriteriaPayout.getAmountType().name().equals("FIXED"))
|
| 35396 |
amit |
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
|
| 32203 |
amit.gupta |
112 |
#else
|
| 35396 |
amit |
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
|
| 32203 |
amit.gupta |
122 |
#end
|
| 35396 |
amit |
123 |
|
| 32203 |
amit.gupta |
124 |
</tr>
|
|
|
125 |
#end
|
|
|
126 |
#end
|
|
|
127 |
</tbody>
|
|
|
128 |
</table>
|
| 33713 |
tejus.loha |
129 |
<br>
|
| 32203 |
amit.gupta |
130 |
</div>
|
|
|
131 |
</div>
|
|
|
132 |
</div>
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
<div class="row">
|
|
|
136 |
<div class="col-lg-12">
|
|
|
137 |
<ul id="descriptionMenu" style="text-align:left">
|
|
|
138 |
#if($offer.getOfferNotes() && !$offer.getOfferNotes().equals(""))
|
|
|
139 |
<li>
|
|
|
140 |
Note - $vmUtils.html($offer.getOfferNotes())
|
|
|
141 |
</li>
|
|
|
142 |
#end
|
|
|
143 |
|
|
|
144 |
</ul>
|
|
|
145 |
|
| 35396 |
amit |
146 |
<div class="termContainer ck-content" style="text-align:left">
|
| 32203 |
amit.gupta |
147 |
|
| 34045 |
amit.gupta |
148 |
$offer.getTerms()
|
| 32203 |
amit.gupta |
149 |
|
|
|
150 |
</div>
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
</div>
|
|
|
154 |
</div>
|
|
|
155 |
|
|
|
156 |
</div>
|
|
|
157 |
<div class="modal-footer">
|
|
|
158 |
<button type="button" data-dismiss="modal" class="btn btn-default cancel-description">Dismiss</button>
|
|
|
159 |
</div>
|