| 31219 |
amit.gupta |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i>Details</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>Partner Franchise Detail</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
| 26418 |
tejbeer |
11 |
|
|
|
12 |
|
| 31219 |
amit.gupta |
13 |
<div class="row">
|
| 26418 |
tejbeer |
14 |
|
| 31219 |
amit.gupta |
15 |
<div class="row col-lg-4">
|
|
|
16 |
<canvas id="chart-partnerType" style="width:auto"></canvas>
|
| 31154 |
tejbeer |
17 |
</div>
|
|
|
18 |
|
| 31219 |
amit.gupta |
19 |
|
|
|
20 |
<div class="row col-lg-6">
|
|
|
21 |
|
|
|
22 |
<div class="form-group col-lg-3">
|
|
|
23 |
<label>Exclude Partner Type</label>
|
|
|
24 |
<select multiple class="criteria-partnertype chosen-select">
|
|
|
25 |
#foreach ($partnerType in $partnerTypes)
|
| 31566 |
amit.gupta |
26 |
<option value="$partnerType">$partnerType.name()</option>
|
| 31219 |
amit.gupta |
27 |
#end
|
|
|
28 |
<option value="GREY">GREY</option>
|
|
|
29 |
|
|
|
30 |
</select>
|
|
|
31 |
</div>
|
|
|
32 |
|
|
|
33 |
<div class="form-group col-lg-2" style="margin-top:20px">
|
|
|
34 |
|
|
|
35 |
<input type="button" class="btn btn-default fileterRowsOnPartnerType"
|
|
|
36 |
value="submit">
|
|
|
37 |
</div>
|
|
|
38 |
|
| 31154 |
tejbeer |
39 |
</div>
|
| 31219 |
amit.gupta |
40 |
</div>
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
<div class="row">
|
|
|
44 |
|
|
|
45 |
<div class="col-lg-12">
|
|
|
46 |
<table id="authretailerstats" class="table table-striped table-advance table-hover" style="width:100%">
|
|
|
47 |
<thead>
|
|
|
48 |
<tr>
|
|
|
49 |
<th>Stores</th>
|
| 31683 |
amit.gupta |
50 |
<th>Activation Type</th>
|
| 31219 |
amit.gupta |
51 |
<th>Code</th>
|
|
|
52 |
<th>Category</th>
|
|
|
53 |
<th>Sale Target</th>
|
|
|
54 |
<th>Purchase Target</th>
|
| 31743 |
tejbeer |
55 |
<th>Counter Potential</th>
|
| 31219 |
amit.gupta |
56 |
<th>Manager</th>
|
|
|
57 |
<th>LMS</th>
|
|
|
58 |
<th>LMTD</th>
|
|
|
59 |
<th>MTD</th>
|
|
|
60 |
<th>Sale Diff</th>
|
|
|
61 |
<th>LM.S</th>
|
|
|
62 |
<th>LMTD.S</th>
|
|
|
63 |
<th>MTD.S</th>
|
|
|
64 |
<th>Unbilled Activated Stock</th>
|
|
|
65 |
<th>Wallet Amount</th>
|
|
|
66 |
<th>In Stock Invest</th>
|
|
|
67 |
<th>Total Invest</th>
|
|
|
68 |
<th>Short Invest</th>
|
|
|
69 |
<th>Pending Indent</th>
|
|
|
70 |
<th>Today Tertiary</th>
|
|
|
71 |
<th>Invest ok</th>
|
|
|
72 |
<th>Ticket</th>
|
|
|
73 |
</tr>
|
|
|
74 |
</thead>
|
|
|
75 |
<tbody>
|
| 31566 |
amit.gupta |
76 |
#foreach($fofoId in $fofoIdAndallValues.keySet())
|
|
|
77 |
#if($fofoIdAndPartnerMap.get($fofoId))
|
|
|
78 |
<tr>
|
|
|
79 |
<td>$fofoIdAndPartnerMap.get($fofoId).getBusinessName()
|
|
|
80 |
($fofoIdAndPartnerMap.get($fofoId).getAddress().getCity())
|
|
|
81 |
</td>
|
| 31683 |
amit.gupta |
82 |
<td>$fofoIdAndPartnerMap.get($fofoId).getActivationType()</td>
|
| 31566 |
amit.gupta |
83 |
<td>$fofoIdAndPartnerMap.get($fofoId).getCode()</td>
|
|
|
84 |
<td>$fofoIdAndallValues.get($fofoId).getPartnerType()</td>
|
|
|
85 |
#if($monthlyTargetMap.get($fofoId).getSaleTarget() && $monthlyTargetMap.get($fofoId).getSaleTarget() > 0)
|
|
|
86 |
<td>$monthlyTargetMap.get($fofoId).getSaleTarget()</td>
|
|
|
87 |
#else
|
|
|
88 |
<td>-</td>
|
| 31219 |
amit.gupta |
89 |
|
| 31566 |
amit.gupta |
90 |
#end
|
|
|
91 |
#if($monthlyTargetMap.get($fofoId).getPurchaseTarget() && $monthlyTargetMap.get($fofoId).getPurchaseTarget() > 0)
|
|
|
92 |
<td>$monthlyTargetMap.get($fofoId).getPurchaseTarget()</td>
|
|
|
93 |
#else
|
|
|
94 |
<td>-</td>
|
| 31219 |
amit.gupta |
95 |
|
| 31566 |
amit.gupta |
96 |
#end
|
| 31743 |
tejbeer |
97 |
<td class="currency">$fofoIdAndPartnerMap.get($fofoId).getCounterPotential()</td>
|
| 31219 |
amit.gupta |
98 |
|
| 31566 |
amit.gupta |
99 |
<td>$fofoIdAndallValues.get($fofoId).getAuthUser()</td>
|
|
|
100 |
<td class="currency lmsSale" data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
| 31219 |
amit.gupta |
101 |
data-toggle="modal"
|
| 31566 |
amit.gupta |
102 |
data-target="#brandLMSSale">$fofoIdAndallValues.get($fofoId).getLms()</td>
|
|
|
103 |
<td class="currency lmtdSale"
|
|
|
104 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
105 |
data-toggle="modal"
|
|
|
106 |
data-target="#brandLMtdSale">$fofoIdAndallValues.get($fofoId).getLmtd()</td>
|
| 31219 |
amit.gupta |
107 |
|
| 31566 |
amit.gupta |
108 |
#if($fofoIdAndallValues.get($fofoId).getMtd() <= 0 )
|
|
|
109 |
<td class="currency mtdSale"
|
|
|
110 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
111 |
data-toggle="modal" data-target="#brandMtdSale"
|
|
|
112 |
style="color:red">$fofoIdAndallValues.get($fofoId).getMtd()</td>
|
|
|
113 |
#else
|
|
|
114 |
<td class="currency mtdSale"
|
|
|
115 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
116 |
data-toggle="modal"
|
|
|
117 |
data-target="#brandMtdSale">$fofoIdAndallValues.get($fofoId).getMtd()</td>
|
|
|
118 |
#end
|
| 31219 |
amit.gupta |
119 |
|
| 31566 |
amit.gupta |
120 |
#if($fofoIdAndallValues.get($fofoId).getSaleDiff() <= 0 )
|
|
|
121 |
<td class="currency"
|
|
|
122 |
style="color:red">$fofoIdAndallValues.get($fofoId).getSaleDiff()</td>
|
|
|
123 |
#else
|
|
|
124 |
<td class="currency">$fofoIdAndallValues.get($fofoId).getSaleDiff()</td>
|
|
|
125 |
#end
|
| 31219 |
amit.gupta |
126 |
|
| 31566 |
amit.gupta |
127 |
<td class="currency lmsSecSale"
|
|
|
128 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
| 31219 |
amit.gupta |
129 |
data-toggle="modal"
|
| 31566 |
amit.gupta |
130 |
data-target="#brandSecSale">$fofoIdAndallValues.get($fofoId).getSecondarylms()</td>
|
|
|
131 |
<td class="currency lmtdSecSale"
|
|
|
132 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
133 |
data-toggle="modal"
|
|
|
134 |
data-target="#brandSecSale">$fofoIdAndallValues.get($fofoId).getSecondarylmtd()</td>
|
|
|
135 |
#if($fofoIdAndallValues.get($fofoId).getSecondarymtd() <= 0)
|
| 31219 |
amit.gupta |
136 |
|
| 31566 |
amit.gupta |
137 |
<td class="currency mtdSecSale"
|
|
|
138 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
139 |
data-toggle="modal" data-target="#brandSecSale"
|
|
|
140 |
style="color:red">$fofoIdAndallValues.get($fofoId).getSecondarymtd()</td>
|
|
|
141 |
#else
|
|
|
142 |
<td class="currency mtdSecSale"
|
|
|
143 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
144 |
data-toggle="modal"
|
|
|
145 |
data-target="#brandSecSale">$fofoIdAndallValues.get($fofoId).getSecondarymtd()</td>
|
|
|
146 |
#end
|
|
|
147 |
#if($fofoIdAndallValues.get($fofoId).getInvestment().getActivatedStockAmount() > 20000)
|
|
|
148 |
<td class="currency" id="activatedStock"
|
|
|
149 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()" data-toggle="modal"
|
|
|
150 |
data-target="#activateStock"
|
|
|
151 |
style="color:red">$fofoIdAndallValues.get($fofoId).getInvestment().getActivatedStockAmount()</td>
|
|
|
152 |
#else
|
|
|
153 |
<td class="currency" id="activatedStock"
|
|
|
154 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()" data-toggle="modal"
|
|
|
155 |
data-target="#activateStock">$fofoIdAndallValues.get($fofoId).getInvestment().getActivatedStockAmount()</td>
|
|
|
156 |
#end
|
|
|
157 |
#if($fofoIdAndallValues.get($fofoId).getWalletAmount() > 50000)
|
|
|
158 |
<td class="currency"
|
|
|
159 |
style="color:red">$fofoIdAndallValues.get($fofoId).getWalletAmount()</td>
|
|
|
160 |
#else
|
|
|
161 |
<td class="currency">$fofoIdAndallValues.get($fofoId).getWalletAmount()</td>
|
|
|
162 |
#end
|
|
|
163 |
<td class="currency instock" data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
164 |
data-toggle="modal"
|
|
|
165 |
data-target="#inStockItem">$fofoIdAndallValues.get($fofoId).getInvestment().getInStockAmount()</td>
|
| 31219 |
amit.gupta |
166 |
|
|
|
167 |
|
| 31566 |
amit.gupta |
168 |
<td class="currency" id="investment"
|
|
|
169 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()" data-toggle="modal"
|
|
|
170 |
data-target="#partnerInvestment">$fofoIdAndallValues.get($fofoId).getInvestment().getTotalInvestment()</td>
|
| 31219 |
amit.gupta |
171 |
|
| 31566 |
amit.gupta |
172 |
#set($realInvestment = $fofoIdAndallValues.get($fofoId).getInvestment().getTotalInvestment() + $fofoIdAndallValues.get($fofoId).getInvestment().getShortInvestment() )
|
| 31219 |
amit.gupta |
173 |
|
|
|
174 |
|
| 31566 |
amit.gupta |
175 |
#set($realpercent = ($fofoIdAndallValues.get($fofoId).getInvestment().getTotalInvestment() / $realInvestment)*100)
|
| 31219 |
amit.gupta |
176 |
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
| 31566 |
amit.gupta |
180 |
#if($realpercent < 75)
|
|
|
181 |
<td class="currency"
|
|
|
182 |
style="color:red">$fofoIdAndallValues.get($fofoId).getInvestment().getShortInvestment()</td>
|
|
|
183 |
#else
|
|
|
184 |
<td class="currency">$fofoIdAndallValues.get($fofoId).getInvestment().getShortInvestment()</td>
|
|
|
185 |
|
|
|
186 |
#end
|
|
|
187 |
<td class="currency" id="indent"
|
|
|
188 |
data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
189 |
data-toggle="modal"
|
|
|
190 |
data-target="#itemWiseIndent">$fofoIdAndallValues.get($fofoId).getInvestment().getUnbilledAmount()</td>
|
|
|
191 |
<td class="tertiary" data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
192 |
data-toggle="modal"
|
|
|
193 |
data-target="#itemWiseTertiary">$fofoIdAndallValues.get($fofoId).getTodayTertiary()</td>
|
|
|
194 |
<td>$fofoIdAndallValues.get($fofoId).getInvestment_ok()</td>
|
|
|
195 |
<td class="openticket" data-fofoid="$fofoIdAndPartnerMap.get($fofoId).getPartnerId()"
|
|
|
196 |
data-toggle="modal"
|
|
|
197 |
data-target="#openTicketModel">$fofoIdAndallValues.get($fofoId).getTicket()</td>
|
|
|
198 |
</tr>
|
| 31219 |
amit.gupta |
199 |
#end
|
|
|
200 |
#end
|
|
|
201 |
</tbody>
|
|
|
202 |
</table>
|
| 31154 |
tejbeer |
203 |
</div>
|
| 26418 |
tejbeer |
204 |
|
| 31219 |
amit.gupta |
205 |
|
| 27579 |
tejbeer |
206 |
</div>
|
| 31219 |
amit.gupta |
207 |
|
|
|
208 |
|
|
|
209 |
<div id="itemWiseTertiary" class="modal" role="dialog">
|
|
|
210 |
<div class="modal-dialog">
|
|
|
211 |
<div class="modal-content">
|
|
|
212 |
|
|
|
213 |
</div>
|
|
|
214 |
</div>
|
| 27586 |
tejbeer |
215 |
</div>
|
| 31219 |
amit.gupta |
216 |
|
|
|
217 |
|
|
|
218 |
<div id="itemWiseIndent" class="modal" role="dialog">
|
|
|
219 |
<div class="modal-dialog">
|
|
|
220 |
<div class="modal-content">
|
|
|
221 |
|
|
|
222 |
</div>
|
|
|
223 |
</div>
|
| 27640 |
tejbeer |
224 |
</div>
|
| 26418 |
tejbeer |
225 |
|
| 31219 |
amit.gupta |
226 |
<div id="inStockItem" class="modal" role="dialog">
|
|
|
227 |
<div class="modal-dialog">
|
|
|
228 |
<div class="modal-content">
|
|
|
229 |
|
|
|
230 |
</div>
|
|
|
231 |
</div>
|
| 27636 |
tejbeer |
232 |
</div>
|
|
|
233 |
|
|
|
234 |
|
| 31219 |
amit.gupta |
235 |
<div id="partnerInvestment" class="modal" role="dialog">
|
|
|
236 |
<div class="modal-dialog">
|
|
|
237 |
<div class="modal-content">
|
|
|
238 |
|
|
|
239 |
</div>
|
|
|
240 |
</div>
|
| 27636 |
tejbeer |
241 |
</div>
|
| 31219 |
amit.gupta |
242 |
|
|
|
243 |
|
|
|
244 |
<div id="activateStock" class="modal" role="dialog">
|
|
|
245 |
<div class="modal-dialog">
|
|
|
246 |
<div class="modal-content">
|
|
|
247 |
|
|
|
248 |
</div>
|
|
|
249 |
</div>
|
| 27636 |
tejbeer |
250 |
</div>
|
| 31219 |
amit.gupta |
251 |
|
|
|
252 |
<div id="brandMtdSale" class="modal" role="dialog">
|
|
|
253 |
<div class="modal-dialog">
|
|
|
254 |
<div class="modal-content">
|
|
|
255 |
|
|
|
256 |
</div>
|
|
|
257 |
</div>
|
| 27637 |
tejbeer |
258 |
</div>
|
| 31219 |
amit.gupta |
259 |
|
|
|
260 |
<div id="brandLMtdSale" class="modal" role="dialog">
|
|
|
261 |
<div class="modal-dialog">
|
|
|
262 |
<div class="modal-content">
|
|
|
263 |
|
|
|
264 |
</div>
|
|
|
265 |
</div>
|
| 27660 |
tejbeer |
266 |
</div>
|
| 31219 |
amit.gupta |
267 |
|
|
|
268 |
<div id="brandLMSSale" class="modal" role="dialog">
|
|
|
269 |
<div class="modal-dialog">
|
|
|
270 |
<div class="modal-content">
|
|
|
271 |
|
|
|
272 |
</div>
|
|
|
273 |
</div>
|
| 27660 |
tejbeer |
274 |
</div>
|
| 31219 |
amit.gupta |
275 |
|
|
|
276 |
<div id="openTicketModel" class="modal" role="dialog">
|
|
|
277 |
<div class="modal-dialog">
|
|
|
278 |
<div class="modal-content">
|
|
|
279 |
|
|
|
280 |
</div>
|
|
|
281 |
</div>
|
|
|
282 |
</div>
|
|
|
283 |
|
| 27893 |
tejbeer |
284 |
<div id="brandSecSale" class="modal" role="dialog">
|
| 31219 |
amit.gupta |
285 |
<div class="modal-dialog">
|
|
|
286 |
<div class="modal-content">
|
|
|
287 |
|
|
|
288 |
</div>
|
|
|
289 |
</div>
|
| 27893 |
tejbeer |
290 |
</div>
|
| 26475 |
amit.gupta |
291 |
</section>
|
| 29162 |
manish |
292 |
|
| 31219 |
amit.gupta |
293 |
<style>
|
|
|
294 |
canvas {
|
| 29162 |
manish |
295 |
-moz-user-select: none;
|
|
|
296 |
-webkit-user-select: none;
|
|
|
297 |
-ms-user-select: none;
|
|
|
298 |
}
|
|
|
299 |
</style>
|
|
|
300 |
|
| 26475 |
amit.gupta |
301 |
<script type="text/javascript">
|
| 27549 |
tejbeer |
302 |
|
|
|
303 |
|
| 31219 |
amit.gupta |
304 |
$(document).ready(function () {
|
| 27549 |
tejbeer |
305 |
|
| 31219 |
amit.gupta |
306 |
$("select.criteria-partnertype").chosen({no_results_text: "Oops, nothing found!"});
|
| 31154 |
tejbeer |
307 |
|
| 31219 |
amit.gupta |
308 |
|
| 31225 |
amit.gupta |
309 |
$.fn.dataTable.ext.search.push(function (settings, data, dataIndex) {
|
|
|
310 |
let partnerTypes = $("select.criteria-partnertype").val();
|
|
|
311 |
if (typeof partnerTypes != "undefined") {
|
| 31219 |
amit.gupta |
312 |
var tablePartnerType = data[2];
|
|
|
313 |
var lastMonthSale = data[7];
|
|
|
314 |
|
|
|
315 |
console.log(lastMonthSale)
|
|
|
316 |
lastMonthSale = lastMonthSale.replace(/,/g, "");
|
|
|
317 |
|
|
|
318 |
console.log(lastMonthSale)
|
|
|
319 |
if (partnerTypes.includes("GREY")) {
|
|
|
320 |
if (parseInt(lastMonthSale) < 200000)
|
|
|
321 |
return false;
|
|
|
322 |
}
|
|
|
323 |
|
|
|
324 |
|
|
|
325 |
if (partnerTypes.includes("BRONZE")) {
|
|
|
326 |
if (parseInt(lastMonthSale) > 200000)
|
|
|
327 |
return false;
|
|
|
328 |
}
|
|
|
329 |
if (!partnerTypes.includes(tablePartnerType)) {
|
|
|
330 |
return true;
|
|
|
331 |
}
|
|
|
332 |
return false;
|
| 31225 |
amit.gupta |
333 |
}
|
|
|
334 |
return true;
|
|
|
335 |
});
|
| 31219 |
amit.gupta |
336 |
$('#authretailerstats thead tr').clone(true).appendTo('#authretailerstats thead');
|
|
|
337 |
$('#authretailerstats thead tr:eq(1) th').each(function (i) {
|
|
|
338 |
var title = $(this).text();
|
|
|
339 |
$(this).html('<input type="text" style = "width:60%;" placeholder="Search ' + title + '" />');
|
|
|
340 |
|
|
|
341 |
$('input', this).on('keyup change', function () {
|
|
|
342 |
if (table.column(i).search() !== this.value) {
|
|
|
343 |
table
|
|
|
344 |
.column(i)
|
|
|
345 |
.search(this.value)
|
|
|
346 |
.draw();
|
|
|
347 |
}
|
|
|
348 |
});
|
|
|
349 |
})
|
|
|
350 |
var table = $('#authretailerstats').DataTable({
|
|
|
351 |
"lengthMenu": [10, 25, 50, 75, 100, 250, 1000],
|
| 30948 |
tejbeer |
352 |
"scrollX": true,
|
| 31219 |
amit.gupta |
353 |
|
|
|
354 |
orderCellsTop: true,
|
|
|
355 |
fixedHeader: true
|
|
|
356 |
});
|
|
|
357 |
|
|
|
358 |
$(document).on('click', ".fileterRowsOnPartnerType", function () {
|
|
|
359 |
table.draw()
|
|
|
360 |
});
|
|
|
361 |
});
|
| 27579 |
tejbeer |
362 |
</script>
|
|
|
363 |
|
|
|
364 |
|
|
|
365 |
<script type="text/javascript">
|
|
|
366 |
|
| 31219 |
amit.gupta |
367 |
$('#authretailerstats').on('click', '.tertiary', function () {
|
|
|
368 |
var fofoId = $(this).data('fofoid');
|
| 27579 |
tejbeer |
369 |
|
|
|
370 |
|
| 31219 |
amit.gupta |
371 |
doGetAjaxRequestHandler(context + "/getItemWiseTertiary?fofoId="
|
|
|
372 |
+ fofoId, function (response) {
|
| 27579 |
tejbeer |
373 |
|
| 31219 |
amit.gupta |
374 |
$('#itemWiseTertiary .modal-content').html(response);
|
| 27586 |
tejbeer |
375 |
|
| 31219 |
amit.gupta |
376 |
});
|
|
|
377 |
});
|
| 27586 |
tejbeer |
378 |
|
|
|
379 |
|
| 31219 |
amit.gupta |
380 |
$('#authretailerstats').on('click', '#indent', function () {
|
|
|
381 |
var fofoId = $(this).data('fofoid');
|
| 27586 |
tejbeer |
382 |
|
| 27636 |
tejbeer |
383 |
|
| 31219 |
amit.gupta |
384 |
doGetAjaxRequestHandler(context + "/getItemWiseIndent?fofoId="
|
|
|
385 |
+ fofoId, function (response) {
|
| 27636 |
tejbeer |
386 |
|
| 31219 |
amit.gupta |
387 |
$('#itemWiseIndent .modal-content').html(response);
|
| 27636 |
tejbeer |
388 |
|
| 31219 |
amit.gupta |
389 |
});
|
|
|
390 |
});
|
| 27636 |
tejbeer |
391 |
|
|
|
392 |
|
| 31219 |
amit.gupta |
393 |
$('#authretailerstats').on('click', '#investment', function () {
|
|
|
394 |
var fofoId = $(this).data('fofoid');
|
|
|
395 |
doGetAjaxRequestHandler(context + "/getPartnerInvestment?fofoId="
|
|
|
396 |
+ fofoId, function (response) {
|
| 27636 |
tejbeer |
397 |
|
| 31219 |
amit.gupta |
398 |
$('#partnerInvestment .modal-content').html(response);
|
| 27636 |
tejbeer |
399 |
|
| 31219 |
amit.gupta |
400 |
});
|
|
|
401 |
});
|
| 27636 |
tejbeer |
402 |
|
| 31219 |
amit.gupta |
403 |
$('#authretailerstats').on('click', '#activatedStock', function () {
|
|
|
404 |
var fofoId = $(this).data('fofoid');
|
|
|
405 |
doGetAjaxRequestHandler(context + "/getPatnerActivateStock?fofoId="
|
|
|
406 |
+ fofoId, function (response) {
|
| 27636 |
tejbeer |
407 |
|
| 31219 |
amit.gupta |
408 |
$('#activateStock .modal-content').html(response);
|
| 27636 |
tejbeer |
409 |
|
| 31219 |
amit.gupta |
410 |
});
|
|
|
411 |
});
|
| 27636 |
tejbeer |
412 |
|
| 27637 |
tejbeer |
413 |
|
| 31219 |
amit.gupta |
414 |
$('#authretailerstats').on('click', '.mtdSale', function () {
|
|
|
415 |
var fofoId = $(this).data('fofoid');
|
|
|
416 |
doGetAjaxRequestHandler(context + "/getPatnerBrandWiseMTDSale?fofoId="
|
|
|
417 |
+ fofoId, function (response) {
|
| 27637 |
tejbeer |
418 |
|
| 31219 |
amit.gupta |
419 |
$('#brandMtdSale .modal-content').html(response);
|
| 27637 |
tejbeer |
420 |
|
| 31219 |
amit.gupta |
421 |
});
|
|
|
422 |
});
|
| 27640 |
tejbeer |
423 |
|
| 31219 |
amit.gupta |
424 |
$('#authretailerstats').on('click', '.lmtdSale', function () {
|
|
|
425 |
var fofoId = $(this).data('fofoid');
|
|
|
426 |
doGetAjaxRequestHandler(context + "/getPatnerBrandWiseLMTDSale?fofoId="
|
|
|
427 |
+ fofoId, function (response) {
|
| 27640 |
tejbeer |
428 |
|
| 31219 |
amit.gupta |
429 |
$('#brandLMtdSale .modal-content').html(response);
|
| 27640 |
tejbeer |
430 |
|
| 31219 |
amit.gupta |
431 |
});
|
|
|
432 |
});
|
| 27660 |
tejbeer |
433 |
|
|
|
434 |
|
| 31219 |
amit.gupta |
435 |
$('#authretailerstats').on('click', '.instock', function () {
|
|
|
436 |
var fofoId = $(this).data('fofoid');
|
|
|
437 |
doGetAjaxRequestHandler(context + "/getPatnerInStock?fofoId="
|
|
|
438 |
+ fofoId, function (response) {
|
|
|
439 |
$('#inStockItem .modal-content').html(response);
|
| 27660 |
tejbeer |
440 |
|
| 31219 |
amit.gupta |
441 |
});
|
|
|
442 |
});
|
| 27660 |
tejbeer |
443 |
|
| 31219 |
amit.gupta |
444 |
$('#authretailerstats').on('click', '.lmsSale', function () {
|
|
|
445 |
var fofoId = $(this).data('fofoid');
|
| 27893 |
tejbeer |
446 |
|
| 31219 |
amit.gupta |
447 |
doGetAjaxRequestHandler(context + "/getPatnerBrandWiseLMSSale?fofoId="
|
|
|
448 |
+ fofoId, function (response) {
|
|
|
449 |
$('#brandLMSSale .modal-content').html(response);
|
| 27893 |
tejbeer |
450 |
|
| 31219 |
amit.gupta |
451 |
});
|
|
|
452 |
});
|
| 27893 |
tejbeer |
453 |
|
| 31219 |
amit.gupta |
454 |
$('#authretailerstats').on('click', '.lmsSecSale', function () {
|
|
|
455 |
var fofoId = $(this).data('fofoid');
|
|
|
456 |
$("#brand-secondary-model .modal-body").empty();
|
|
|
457 |
doGetAjaxRequestHandler(context + "/getPartnerSecondarySale?fofoId="
|
|
|
458 |
+ fofoId + "&timeValue=lms", function (response) {
|
|
|
459 |
$('#brandSecSale .modal-content').html(response);
|
| 27893 |
tejbeer |
460 |
|
| 31219 |
amit.gupta |
461 |
});
|
|
|
462 |
});
|
| 27893 |
tejbeer |
463 |
|
| 31219 |
amit.gupta |
464 |
$('#authretailerstats').on('click', '.mtdSecSale', function () {
|
|
|
465 |
var fofoId = $(this).data('fofoid');
|
|
|
466 |
$("#brand-secondary-model .modal-body").empty();
|
|
|
467 |
doGetAjaxRequestHandler(context + "/getPartnerSecondarySale?fofoId="
|
|
|
468 |
+ fofoId + "&timeValue=mtd", function (response) {
|
|
|
469 |
$('#brandSecSale .modal-content').html(response);
|
| 27660 |
tejbeer |
470 |
|
| 31219 |
amit.gupta |
471 |
});
|
|
|
472 |
});
|
| 29162 |
manish |
473 |
|
| 31219 |
amit.gupta |
474 |
$('#authretailerstats').on('click', '.lmtdSecSale', function () {
|
|
|
475 |
var fofoId = $(this).data('fofoid');
|
|
|
476 |
$("#brand-secondary-model .modal-body").empty();
|
|
|
477 |
doGetAjaxRequestHandler(context + "/getPartnerSecondarySale?fofoId="
|
|
|
478 |
+ fofoId + "&timeValue=lmtd", function (response) {
|
|
|
479 |
$('#brandSecSale .modal-content').html(response);
|
|
|
480 |
|
|
|
481 |
});
|
|
|
482 |
});
|
|
|
483 |
|
|
|
484 |
$('#authretailerstats').on('click', '.openticket', function () {
|
|
|
485 |
var fofoId = $(this).data('fofoid');
|
|
|
486 |
doGetAjaxRequestHandler(context + "/getOpenTicketByFofoId?fofoId="
|
|
|
487 |
+ fofoId, function (response) {
|
|
|
488 |
$('#openTicketModel .modal-content').html(response);
|
|
|
489 |
|
|
|
490 |
});
|
|
|
491 |
});
|
|
|
492 |
|
| 29162 |
manish |
493 |
</script>
|
|
|
494 |
|
|
|
495 |
<script type="text/javascript">
|
| 31219 |
amit.gupta |
496 |
|
|
|
497 |
var config = $chartPieMap;
|
|
|
498 |
|
|
|
499 |
var ctx = document.getElementById('chart-partnerType').getContext('2d');
|
|
|
500 |
var bar = new Chart(ctx, config);
|
| 29162 |
manish |
501 |
</script>
|
|
|
502 |
|
|
|
503 |
|
|
|
504 |
|
|
|
505 |
|
|
|
506 |
|