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