| 31762 |
tejbeer |
1 |
<script type="text/javascript">
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
getAllImeiAheadOptions($("#scheme-imei-wise-search-text"), function (
|
|
|
5 |
inventoryItem) {
|
|
|
6 |
imei = inventoryItem;
|
|
|
7 |
console.log(imei)
|
|
|
8 |
});
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
</script>
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
<section class="wrapper">
|
|
|
16 |
<div class="row">
|
|
|
17 |
<div class="col-lg-12">
|
|
|
18 |
<ol class="breadcrumb">
|
| 32771 |
raveendra. |
19 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("modelwisemargin.home")</a></li>
|
| 31762 |
tejbeer |
20 |
<li><i class="icon_document_alt"></i>IMEI WISE MARGINS</li>
|
|
|
21 |
</ol>
|
|
|
22 |
</div>
|
|
|
23 |
</div>
|
|
|
24 |
<div class="row">
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
<div class="form-inline col-lg-4">
|
|
|
29 |
<div class="form-group">
|
|
|
30 |
|
|
|
31 |
|
| 32771 |
raveendra. |
32 |
<label> #springMessage("modelwisemargin.checkmargins")</label>
|
| 31762 |
tejbeer |
33 |
|
|
|
34 |
<div class="input-group top_search">
|
|
|
35 |
<input type="text" class="form-control"
|
|
|
36 |
id="scheme-imei-wise-search-text" autocomplete="off"
|
|
|
37 |
placeholder="Search for Imei"/> <span class="input-group-btn">
|
|
|
38 |
<button class="btn btn-primary submit"
|
| 32771 |
raveendra. |
39 |
id="scheme-imei-wise-search-button" type="button">#springMessage("modelwisemargin.go")</button>
|
| 31762 |
tejbeer |
40 |
</span>
|
|
|
41 |
</div>
|
|
|
42 |
</div>
|
| 32348 |
jai.hind |
43 |
</div><br><br>
|
| 31762 |
tejbeer |
44 |
|
|
|
45 |
|
|
|
46 |
<div class="form-inline col-lg-4">
|
|
|
47 |
<div class="form-group">
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
<label> #if($customRetailer) <span style="background-color:aquamarine; color:brown"> $customRetailer.getBusinessName() </span> #end</label>
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
</div>
|
|
|
54 |
</div>
|
|
|
55 |
</div>
|
|
|
56 |
<div id="schemes-table">
|
|
|
57 |
<div class="row">
|
|
|
58 |
<div class="col-lg-12">
|
|
|
59 |
<table class="table table-border table-condensed table-bordered"
|
|
|
60 |
id="sch-des">
|
|
|
61 |
<tbody>
|
|
|
62 |
<tr>
|
|
|
63 |
<th>ID</th>
|
|
|
64 |
<th>Name</th>
|
|
|
65 |
<th>Description</th>
|
|
|
66 |
<th>Type</th>
|
|
|
67 |
<th>Amount</th>
|
|
|
68 |
<th>Start Date</th>
|
|
|
69 |
<th>End Date</th>
|
|
|
70 |
</tr>
|
|
|
71 |
#if($schemes && !$schemes.isEmpty()) #foreach( $scheme in
|
|
|
72 |
$schemes )
|
|
|
73 |
#if($scheme.getAmountModel())
|
|
|
74 |
<tr data="$scheme.getId()">
|
|
|
75 |
<td>$scheme.getId()</td>
|
|
|
76 |
<td>$scheme.getName()</td>
|
|
|
77 |
<td>$scheme.getDescription()</td>
|
|
|
78 |
<td>$scheme.getType()</td>
|
|
|
79 |
<td>$scheme.getAmountModel()</td>
|
|
|
80 |
<td>$scheme.getFormattedStartDateTime()</td>
|
|
|
81 |
<td>$dateTimeFormatter.format($scheme.getEndDateTime())</td>
|
|
|
82 |
</tr>
|
|
|
83 |
#end
|
|
|
84 |
#end #else $noData #end
|
|
|
85 |
</tbody>
|
|
|
86 |
</table>
|
|
|
87 |
</div>
|
|
|
88 |
</div>
|
|
|
89 |
</div>
|
|
|
90 |
|
|
|
91 |
#if($schemeInOut || $offerPayouts)
|
|
|
92 |
<div class="row">
|
|
|
93 |
<div class="col-lg-12">
|
|
|
94 |
<h3 style="text-align:center; color:#4169e1;">IMEI Wise Margin Status</h3>
|
|
|
95 |
<div><h4>Net Margin - $nf.format($netEarnings)</h4></div>
|
|
|
96 |
<table class="table table-border table-condensed table-bordered">
|
|
|
97 |
<tr>
|
|
|
98 |
<th>ID</th>
|
|
|
99 |
<th>Name</th>
|
|
|
100 |
<th>Description</th>
|
|
|
101 |
<th>Type</th>
|
|
|
102 |
<th>Amount</th>
|
|
|
103 |
<th>Paid Amount</th>
|
|
|
104 |
<th>Status</th>
|
|
|
105 |
<th>Credit Timestamp</th>
|
|
|
106 |
|
|
|
107 |
<th>Description</th>
|
|
|
108 |
|
|
|
109 |
</tr>
|
|
|
110 |
|
|
|
111 |
#if(!$schemeInOut && $schemeInOut.isEmpty() && !$offerPayouts && $offerPayouts.isEmpty())
|
|
|
112 |
$noData
|
|
|
113 |
#end
|
|
|
114 |
|
|
|
115 |
#if($schemeInOut && !$schemeInOut.isEmpty())
|
|
|
116 |
#foreach( $sio in $schemeInOut )
|
|
|
117 |
<tr data="$schemeMap.get($sio.getSchemeId()).getId()">
|
|
|
118 |
<td>$schemeMap.get($sio.getSchemeId()).getId()</td>
|
|
|
119 |
<td>$schemeMap.get($sio.getSchemeId()).getName()</td>
|
|
|
120 |
<td>$schemeMap.get($sio.getSchemeId()).getDescription()</td>
|
|
|
121 |
<td>$schemeMap.get($sio.getSchemeId()).getType()</td>
|
|
|
122 |
<td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td>
|
|
|
123 |
<td>$sio.getAmount()</td>
|
|
|
124 |
<td>$sio.getStatus()</td>
|
|
|
125 |
#if($sio.getCreditTimestamp().format($dateTimeFormatter))
|
|
|
126 |
<td>$sio.getCreditTimestamp().format($dateTimeFormatter)</td>
|
|
|
127 |
#else
|
|
|
128 |
<td>-</td>
|
|
|
129 |
#end
|
|
|
130 |
|
|
|
131 |
#if($sio.getStatusDescription())
|
|
|
132 |
<td>$sio.getStatusDescription()</td>
|
|
|
133 |
#else
|
|
|
134 |
<td>-</td>
|
|
|
135 |
#end
|
|
|
136 |
</tr>
|
|
|
137 |
#end
|
|
|
138 |
#end
|
|
|
139 |
|
|
|
140 |
#if($offerPayouts && !$offerPayouts.isEmpty())
|
|
|
141 |
#foreach( $offerPayout in $offerPayouts )
|
|
|
142 |
<tr data-offerid="$offerPayout.getOfferId()">
|
|
|
143 |
<td colspan="3"><a href="javascript:void(0)"
|
|
|
144 |
class="mk_offer_detail">$offerPayout.getDescription()</td>
|
|
|
145 |
<td>$offerRequestMap.get($offerPayout.getOfferId().intValue()).getSchemeType()</td>
|
|
|
146 |
<td>$nf.format($inventoryItem.getMarginPercentage($offerPayout.getAmount()))%</td>
|
|
|
147 |
<td>$offerPayout.getAmount()</td>
|
|
|
148 |
<td>$offerPayout.getStatus()</td>
|
|
|
149 |
<td>$offerPayout.getCreateTimestamp().format($dateTimeFormatter)</td>
|
|
|
150 |
<td>-</td>
|
|
|
151 |
|
|
|
152 |
</tr>
|
|
|
153 |
#end
|
|
|
154 |
#end
|
|
|
155 |
|
|
|
156 |
</table>
|
|
|
157 |
</div>
|
|
|
158 |
</div>
|
|
|
159 |
|
|
|
160 |
#end
|
|
|
161 |
|
|
|
162 |
#if($searchImei.length() > 0)
|
|
|
163 |
<div class="row">
|
|
|
164 |
<div class="col-lg-6">
|
| 32331 |
amit.gupta |
165 |
<h4>Price Drop</h4>
|
| 31762 |
tejbeer |
166 |
<table class="table table-border table-condensed table-bordered"
|
|
|
167 |
id="offr-des">
|
|
|
168 |
<tr>
|
|
|
169 |
<th>Status</th>
|
|
|
170 |
<th>Amount</th>
|
|
|
171 |
<th>Description</th>
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
</tr>
|
|
|
175 |
#if($priceDropImeis && !$priceDropImeis.isEmpty())
|
|
|
176 |
#foreach( $pdi in $priceDropImeis )
|
|
|
177 |
<tr class="priceDrop-details">
|
|
|
178 |
<td>$pdi.getStatus()</td>
|
|
|
179 |
<td>$pdi.getPriceDrop().getAmount()</td>
|
|
|
180 |
#if($pdi.getRejectionReason())
|
|
|
181 |
<td>$pdi.getRejectionReason()</td>
|
|
|
182 |
#else
|
|
|
183 |
<td>-</td>
|
|
|
184 |
#end
|
|
|
185 |
|
|
|
186 |
</tr>
|
|
|
187 |
#end
|
|
|
188 |
#else
|
|
|
189 |
$noData
|
|
|
190 |
#end
|
|
|
191 |
</table>
|
|
|
192 |
</div>
|
|
|
193 |
</div>
|
|
|
194 |
#end
|
|
|
195 |
|
|
|
196 |
#if(!$schemeInOut)
|
|
|
197 |
<div class="row">
|
|
|
198 |
<div class="col-lg-12">
|
|
|
199 |
<h3>Other Schemes</h3>
|
|
|
200 |
<table class="table table-border table-condensed table-bordered"
|
|
|
201 |
id="offr-des">
|
|
|
202 |
<tr>
|
|
|
203 |
<th>Name</th>
|
|
|
204 |
<th>Margin Based On</th>
|
|
|
205 |
<th>Sale Criteria</th>
|
|
|
206 |
<th>Payout(Per pc)</th>
|
|
|
207 |
</tr>
|
|
|
208 |
#if(!$offers.isEmpty())
|
|
|
209 |
#foreach( $offer in $offers )
|
|
|
210 |
#set($itemCriteriaPayout = $offer.getTargetSlabs().get(0).getItemCriteriaPayouts().get(0))
|
|
|
211 |
#set($slab=$itemCriteriaPayout.getCurrentSlab())
|
|
|
212 |
#if(!$slab)
|
|
|
213 |
#set($slab=$itemCriteriaPayout.getNextSlab())
|
|
|
214 |
#end
|
|
|
215 |
<tr class="offer-details" data-offerid="$offer.getId()">
|
|
|
216 |
<td><a class="mk_offer_detail"
|
|
|
217 |
href="javascript:void(0)">$offer.getName()</a>
|
|
|
218 |
<td>$offer.getSchemeType()</td>
|
|
|
219 |
<td>$itemCriteriaPayout.getItemCriteriaString()</td>
|
|
|
220 |
<td>Rs. <span
|
|
|
221 |
class="currency">$offerSlabPayoutMap.get($offer.getId()).get($slab.getOnwardsAmount())</span>
|
|
|
222 |
</td>
|
|
|
223 |
</tr>
|
|
|
224 |
#end #else $noData #end
|
|
|
225 |
</table>
|
|
|
226 |
</div>
|
|
|
227 |
</div>
|
|
|
228 |
#end
|
|
|
229 |
|
|
|
230 |
#if(!$schemeInOut)
|
|
|
231 |
#if($schemes && !$schemes.isEmpty())
|
|
|
232 |
<div class="row col-lg-12">
|
|
|
233 |
<b>Hygiene Payout</b> - This is basis the customer details entered in
|
|
|
234 |
the system, pls refer to hygiene meter in your Dashboard. <br> <b>Tertiary
|
|
|
235 |
Payout</b> - This is basis the activation of the handset. <br> <b>Investment
|
|
|
236 |
Payout</b> - Investments in stocks should be above 90% for minimum 12
|
|
|
237 |
days in a month to earn 2%, between 8-11 days will earn 1%, less then
|
|
|
238 |
8 days there will be no payout.
|
|
|
239 |
</div>
|
|
|
240 |
#end
|
|
|
241 |
#end
|
|
|
242 |
|
|
|
243 |
</section>
|
|
|
244 |
|