Subversion Repositories SmartDukaan

Rev

Rev 31218 | Rev 31224 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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