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