Subversion Repositories SmartDukaan

Rev

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

Rev 30948 Rev 31154
Line 42... Line 42...
42
			</ol>
42
			</ol>
43
		</div>
43
		</div>
44
	</div>
44
	</div>
45
	
45
	
46
	
46
	
47
<div class="row col-lg-12" style="width:518px;height:272px;">
47
<div class="row" >
-
 
48
 
-
 
49
      <div row col-lg-4">
48
	       	<canvas id="chart-partnerType" style="width:auto"></canvas>
50
	       	<canvas id="chart-partnerType" style="width:auto"></canvas>
-
 
51
	       </div>
-
 
52
	       	
-
 
53
	       	
-
 
54
	       	
-
 
55
	    <div row col-lg-6">
-
 
56
	     		  
-
 
57
        <div class="form-group col-lg-3">
-
 
58
            <label>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>
49
</div>
75
</div>
50
 
76
 
51
 
77
 
52
<div class="row">
78
<div class="row">
53
					
79
					
Line 64... Line 90...
64
	    				<th>MTD</th>
90
	    				<th>MTD</th>
65
	    				<th>Sale Diff</th>
91
	    				<th>Sale Diff</th>
66
	    				<th>LM.S</th>
92
	    				<th>LM.S</th>
67
	    				<th>LMTD.S</th>
93
	    				<th>LMTD.S</th>
68
	    				<th>MTD.S</th>
94
	    				<th>MTD.S</th>
69
	    				
-
 
70
	    			    <th>Unbilled Activated Stock</th>
95
	       			    <th>Unbilled Activated Stock</th>
71
	    			    <th>Wallet Amount</th>
96
	    			    <th>Wallet Amount</th>
72
	    				<th>In Stock Invest</th>
97
	    				<th>In Stock Invest</th>
73
	    				<th>Total Invest</th>
98
	    				<th>Total Invest</th>
74
	    				<th>Short Invest</th>
99
	    				<th>Short Invest</th>
75
	    			    <th>Pending Indent</th>
100
	    			    <th>Pending Indent</th>
Line 247... Line 272...
247
<script type="text/javascript">
272
<script type="text/javascript">
248
 
273
 
249
 
274
 
250
$(document).ready(function() {
275
$(document).ready(function() {
251
 
276
 
-
 
277
 $("select.criteria-partnertype").chosen({no_results_text: "Oops, nothing found!"});
-
 
278
 
-
 
279
 
-
 
280
 $.fn.dataTable.ext.search.push(function (settings, data, dataIndex) {
-
 
281
 
-
 
282
   var partnerTypes =  $("select.criteria-partnertype").val();
-
 
283
   
-
 
284
   console.log(partnerTypes);
-
 
285
   var tablePartnerType = data[2];
-
 
286
   var lastMonthSale = data[4];
-
 
287
    if (partnerTypes.includes("GREY")) {
-
 
288
      if(lastMonthSale < 20000)
-
 
289
        return false;
-
 
290
    }
-
 
291
   
-
 
292
   if (!partnerTypes.includes(tablePartnerType)) {
-
 
293
        return true;
-
 
294
    }
-
 
295
    return false;
-
 
296
});
-
 
297
 
252
    $('#authretailerstats thead tr').clone(true).appendTo( '#authretailerstats thead' );
298
    $('#authretailerstats thead tr').clone(true).appendTo( '#authretailerstats thead' );
253
    $('#authretailerstats thead tr:eq(1) th').each( function (i) {
299
    $('#authretailerstats thead tr:eq(1) th').each( function (i) {
254
        var title = $(this).text();
300
        var title = $(this).text();
255
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
301
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
256
 
302
 
Line 268... Line 314...
268
            "scrollX": true,
314
            "scrollX": true,
269
           
315
           
270
        orderCellsTop: true,
316
        orderCellsTop: true,
271
        fixedHeader: true
317
        fixedHeader: true
272
    } );
318
    } );
-
 
319
    
-
 
320
         	$(document).on('click', ".fileterRowsOnPartnerType", function() {
-
 
321
        table.draw()
-
 
322
	});
273
});
323
});
274
</script>
324
</script>
275
 
325
 
276
 
326
 
277
<script type="text/javascript">
327
<script type="text/javascript">