| 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>
|
|
|
41 |
<li><i class="icon_document_alt"></i>Auth User Detail</li>
|
|
|
42 |
</ol>
|
|
|
43 |
</div>
|
|
|
44 |
</div>
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
<div class="row">
|
|
|
48 |
|
| 27549 |
tejbeer |
49 |
<div class="col-lg-12">
|
|
|
50 |
<table id="authretailerstats" class="table table-striped table-advance table-hover" style="width:100%">
|
| 26477 |
amit.gupta |
51 |
<thead>
|
| 26418 |
tejbeer |
52 |
<tr>
|
| 27545 |
tejbeer |
53 |
<th>Stores</th>
|
| 27548 |
tejbeer |
54 |
<th>Category</th>
|
|
|
55 |
<th>Manager</th>
|
| 26418 |
tejbeer |
56 |
<th>lmtd</th>
|
|
|
57 |
<th>mtd</th>
|
| 27548 |
tejbeer |
58 |
<th>sale diff</th>
|
| 27545 |
tejbeer |
59 |
<th>Wallet Amount</th>
|
| 26418 |
tejbeer |
60 |
<th>In Stock Investment</th>
|
|
|
61 |
<th>Total Investment</th>
|
| 27548 |
tejbeer |
62 |
<th>Short Investment</th>
|
| 27643 |
tejbeer |
63 |
<th>Unbilled Activated Stock</th>
|
|
|
64 |
<th>Pending Indent</th>
|
| 27545 |
tejbeer |
65 |
<th>Today Tertiary</th>
|
|
|
66 |
<th>last 3 days Tertiary</th>
|
| 26418 |
tejbeer |
67 |
<th>Ticket</th>
|
|
|
68 |
</tr>
|
| 26477 |
amit.gupta |
69 |
</thead>
|
|
|
70 |
<tbody>
|
| 26418 |
tejbeer |
71 |
#foreach($name in $fofoIdAndallValues.keySet())
|
|
|
72 |
<tr>
|
| 27548 |
tejbeer |
73 |
<td>$fofoIdAndPartnerMap.get($name).getBusinessName() ($fofoIdAndPartnerMap.get($name).getAddress().getCity())</td>
|
|
|
74 |
<td>$fofoIdAndallValues.get($name).getPartnerType()</td>
|
| 27545 |
tejbeer |
75 |
<td>$fofoIdAndallValues.get($name).getAuthUser()</td>
|
| 27637 |
tejbeer |
76 |
<td class="currency lmtdSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandLMtdSale">$fofoIdAndallValues.get($name).getLmtd()</td>
|
| 27636 |
tejbeer |
77 |
<td class="currency mtdSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandMtdSale">$fofoIdAndallValues.get($name).getMtd()</td>
|
| 27550 |
tejbeer |
78 |
<td class="currency">$fofoIdAndallValues.get($name).getSaleDiff()</td>
|
| 27545 |
tejbeer |
79 |
<td class="currency">$fofoIdAndallValues.get($name).getWalletAmount()</td>
|
| 27640 |
tejbeer |
80 |
<td class="currency instock" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#inStockItem" >$fofoIdAndallValues.get($name).getInvestment().getInStockAmount()</td>
|
| 27636 |
tejbeer |
81 |
<td class="currency" id="investment" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#partnerInvestment">$fofoIdAndallValues.get($name).getInvestment().getTotalInvestment()</td>
|
| 27548 |
tejbeer |
82 |
<td class="currency">$fofoIdAndallValues.get($name).getInvestment().getShortInvestment()</td>
|
| 27636 |
tejbeer |
83 |
<td class="currency" id="activatedStock" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#activateStock">$fofoIdAndallValues.get($name).getInvestment().getActivatedStockAmount()</td>
|
| 27586 |
tejbeer |
84 |
<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 |
85 |
<td class="tertiary" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#itemWiseTertiary">$fofoIdAndallValues.get($name).getTodayTertiary()</td>
|
| 27549 |
tejbeer |
86 |
<td>$fofoIdAndallValues.get($name).getLastThreeDaytertiary()</td>
|
| 26418 |
tejbeer |
87 |
<td>$fofoIdAndallValues.get($name).getTicket()</td>
|
|
|
88 |
</tr>
|
| 27579 |
tejbeer |
89 |
#end
|
| 26418 |
tejbeer |
90 |
</tbody>
|
|
|
91 |
</table>
|
|
|
92 |
</div>
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
</div>
|
| 27579 |
tejbeer |
96 |
|
|
|
97 |
|
|
|
98 |
<div id="itemWiseTertiary" class="modal" role="dialog">
|
|
|
99 |
<div class="modal-dialog">
|
|
|
100 |
<div class="modal-content">
|
|
|
101 |
|
|
|
102 |
</div>
|
|
|
103 |
</div>
|
|
|
104 |
</div>
|
| 27586 |
tejbeer |
105 |
|
|
|
106 |
|
|
|
107 |
<div id="itemWiseIndent" class="modal" role="dialog">
|
|
|
108 |
<div class="modal-dialog">
|
|
|
109 |
<div class="modal-content">
|
|
|
110 |
|
|
|
111 |
</div>
|
|
|
112 |
</div>
|
|
|
113 |
</div>
|
| 27636 |
tejbeer |
114 |
|
| 27640 |
tejbeer |
115 |
<div id="inStockItem" class="modal" role="dialog">
|
|
|
116 |
<div class="modal-dialog">
|
|
|
117 |
<div class="modal-content">
|
|
|
118 |
|
|
|
119 |
</div>
|
|
|
120 |
</div>
|
|
|
121 |
</div>
|
| 26418 |
tejbeer |
122 |
|
| 27636 |
tejbeer |
123 |
|
|
|
124 |
<div id="partnerInvestment" class="modal" role="dialog">
|
|
|
125 |
<div class="modal-dialog">
|
|
|
126 |
<div class="modal-content">
|
|
|
127 |
|
|
|
128 |
</div>
|
|
|
129 |
</div>
|
|
|
130 |
</div>
|
|
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
<div id="activateStock" class="modal" role="dialog">
|
|
|
135 |
<div class="modal-dialog">
|
| 27643 |
tejbeer |
136 |
<div class="modal-content" >
|
| 27636 |
tejbeer |
137 |
|
|
|
138 |
</div>
|
|
|
139 |
</div>
|
|
|
140 |
</div>
|
|
|
141 |
|
|
|
142 |
<div id="brandMtdSale" class="modal" role="dialog">
|
|
|
143 |
<div class="modal-dialog">
|
|
|
144 |
<div class="modal-content">
|
|
|
145 |
|
|
|
146 |
</div>
|
|
|
147 |
</div>
|
|
|
148 |
</div>
|
| 27637 |
tejbeer |
149 |
|
|
|
150 |
<div id="brandLMtdSale" class="modal" role="dialog">
|
|
|
151 |
<div class="modal-dialog">
|
|
|
152 |
<div class="modal-content">
|
|
|
153 |
|
|
|
154 |
</div>
|
|
|
155 |
</div>
|
|
|
156 |
</div>
|
| 26475 |
amit.gupta |
157 |
</section>
|
|
|
158 |
<script type="text/javascript">
|
| 27549 |
tejbeer |
159 |
|
|
|
160 |
|
| 26475 |
amit.gupta |
161 |
$(document).ready(function() {
|
| 27549 |
tejbeer |
162 |
|
|
|
163 |
$('#authretailerstats thead tr').clone(true).appendTo( '#authretailerstats thead' );
|
|
|
164 |
$('#authretailerstats thead tr:eq(1) th').each( function (i) {
|
|
|
165 |
var title = $(this).text();
|
|
|
166 |
$(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
|
|
|
167 |
|
|
|
168 |
$( 'input', this ).on( 'keyup change', function () {
|
|
|
169 |
if ( table.column(i).search() !== this.value ) {
|
|
|
170 |
table
|
|
|
171 |
.column(i)
|
|
|
172 |
.search( this.value )
|
|
|
173 |
.draw();
|
|
|
174 |
}
|
|
|
175 |
} );
|
|
|
176 |
} )
|
|
|
177 |
var table = $('#authretailerstats').DataTable( {
|
|
|
178 |
orderCellsTop: true,
|
|
|
179 |
fixedHeader: true
|
|
|
180 |
} );
|
| 26476 |
amit.gupta |
181 |
});
|
| 27579 |
tejbeer |
182 |
</script>
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
<script type="text/javascript">
|
|
|
186 |
|
|
|
187 |
$('#authretailerstats').on('click', '.tertiary', function(){
|
|
|
188 |
var fofoId = $(this).data('fofoid');
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
doGetAjaxRequestHandler(context + "/getItemWiseTertiary?fofoId="
|
|
|
192 |
+ fofoId, function(response) {
|
|
|
193 |
|
|
|
194 |
$('#itemWiseTertiary .modal-content').html(response);
|
|
|
195 |
|
|
|
196 |
});
|
|
|
197 |
});
|
|
|
198 |
|
| 27586 |
tejbeer |
199 |
|
|
|
200 |
$('#authretailerstats').on('click', '#indent', function(){
|
|
|
201 |
var fofoId = $(this).data('fofoid');
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
doGetAjaxRequestHandler(context + "/getItemWiseIndent?fofoId="
|
|
|
205 |
+ fofoId, function(response) {
|
|
|
206 |
|
|
|
207 |
$('#itemWiseIndent .modal-content').html(response);
|
|
|
208 |
|
|
|
209 |
});
|
|
|
210 |
});
|
|
|
211 |
|
| 27636 |
tejbeer |
212 |
|
|
|
213 |
|
|
|
214 |
$('#authretailerstats').on('click', '#investment', function(){
|
|
|
215 |
var fofoId = $(this).data('fofoid');
|
|
|
216 |
doGetAjaxRequestHandler(context + "/getPartnerInvestment?fofoId="
|
|
|
217 |
+ fofoId, function(response) {
|
|
|
218 |
|
|
|
219 |
$('#partnerInvestment .modal-content').html(response);
|
|
|
220 |
|
|
|
221 |
});
|
|
|
222 |
});
|
|
|
223 |
|
|
|
224 |
$('#authretailerstats').on('click', '#activatedStock', function(){
|
|
|
225 |
var fofoId = $(this).data('fofoid');
|
|
|
226 |
doGetAjaxRequestHandler(context + "/getPatnerActivateStock?fofoId="
|
|
|
227 |
+ fofoId, function(response) {
|
|
|
228 |
|
|
|
229 |
$('#activateStock .modal-content').html(response);
|
|
|
230 |
|
|
|
231 |
});
|
|
|
232 |
});
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
$('#authretailerstats').on('click', '.mtdSale', function(){
|
|
|
236 |
var fofoId = $(this).data('fofoid');
|
|
|
237 |
doGetAjaxRequestHandler(context + "/getPatnerBrandWiseMTDSale?fofoId="
|
|
|
238 |
+ fofoId, function(response) {
|
|
|
239 |
|
|
|
240 |
$('#brandMtdSale .modal-content').html(response);
|
|
|
241 |
|
|
|
242 |
});
|
|
|
243 |
});
|
| 27637 |
tejbeer |
244 |
|
|
|
245 |
$('#authretailerstats').on('click', '.lmtdSale', function(){
|
|
|
246 |
var fofoId = $(this).data('fofoid');
|
|
|
247 |
doGetAjaxRequestHandler(context + "/getPatnerBrandWiseLMTDSale?fofoId="
|
|
|
248 |
+ fofoId, function(response) {
|
|
|
249 |
|
|
|
250 |
$('#brandLMtdSale .modal-content').html(response);
|
|
|
251 |
|
|
|
252 |
});
|
|
|
253 |
});
|
| 27640 |
tejbeer |
254 |
|
|
|
255 |
|
|
|
256 |
$('#authretailerstats').on('click', '.instock', function(){
|
|
|
257 |
var fofoId = $(this).data('fofoid');
|
|
|
258 |
doGetAjaxRequestHandler(context + "/getPatnerInStock?fofoId="
|
|
|
259 |
+ fofoId, function(response) {
|
|
|
260 |
console.log(response)
|
|
|
261 |
$('#inStockItem .modal-content').html(response);
|
|
|
262 |
|
|
|
263 |
});
|
|
|
264 |
});
|
| 26475 |
amit.gupta |
265 |
</script>
|