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