Subversion Repositories SmartDukaan

Rev

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

Rev 27552 Rev 27556
Line 159... Line 159...
159
				console.log(response)
159
				console.log(response)
160
			});
160
			});
161
	}
161
	}
162
	
162
	
163
	
163
	
-
 
164
	function getWarehouseWiseBrandPartnerSale(warehouseId){
-
 
165
	
-
 
166
		doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?warehouseId="+warehouseId,
-
 
167
			function(response) {
-
 
168
				$('#' + "main-content").html(response);
-
 
169
				console.log(response)
-
 
170
			});
-
 
171
	}
-
 
172
	
-
 
173
	
164
</script>
174
</script>
165
	
175
	
166
	
176
	
167
<script type="text/javascript">
177
<script type="text/javascript">
168
	function getWarehouseWiseData(){
178
	function getWarehouseWiseData(){
Line 282... Line 292...
282
				 <table class="table table-striped table-advance table-hover">
292
				 <table class="table table-striped table-advance table-hover">
283
	    			<tbody>
293
	    			<tbody>
284
	    				<tr>
294
	    				<tr>
285
	    				<th>W/H Location</th>
295
	    				<th>W/H Location</th>
286
	    				<th>Partners</th>
296
	    				<th>Partners</th>
287
                         <th>lmtd</th>
297
                         <th>LMTD</th>
288
	    				 <th>mtd</th>
298
	    				 <th>MTD</th>
289
	    				 <th>Today Tertiary</th>
299
	    				 <th>Today Tertiary</th>
290
	    				 <th>Tickets</th>
300
	    				 <th>Tickets</th>
291
	    				</tr>
301
	    				</tr>
292
	    				#foreach($name in $warehousePartnerDetailMap.keySet())
302
	    				#foreach($name in $warehousePartnerDetailMap.keySet())
293
	    				<tr onclick="getWarehousePartners($name)">
303
	    				<tr onclick="getWarehousePartners($name)">
Line 352... Line 362...
352
			 </div>
362
			 </div>
353
			</div>
363
			</div>
354
			
364
			
355
			#end
365
			#end
356
					
366
					
-
 
367
					
-
 
368
			<div class="row">
-
 
369
				<div class="col-lg-6">
-
 
370
					<div class="row col-lg-4">
-
 
371
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Brand Wise Report</strong></h3>
-
 
372
					</div>
-
 
373
					<div class="row col-lg-12 info-box white-bg">
-
 
374
					
-
 
375
					 <table class="table table-striped table-advance table-hover">
-
 
376
	    			<tbody>
-
 
377
	    				<tr>
-
 
378
	    				<th>W/H Location</th>
-
 
379
	    				 <th>LMTD</th>
-
 
380
	    				  <th>LMTD Qty</th>
-
 
381
	    				   <th>MTD</th>
-
 
382
	    				    <th>MTD Qty</th>
-
 
383
	    				</tr>
-
 
384
	    				#foreach($salekey in $$warehouseMap.keySet())
-
 
385
	    				<tr onclick="getWarehouseWiseBrandPartnerSale($brandSales.get($salekey).getWarehouseId())">
-
 
386
	    				  
-
 
387
	    	 		      <td>$warehouseMap.get($salekey)</td>
-
 
388
	    	 		      #if($brandSales.get($salekey).getLmtd())
-
 
389
	    	 		      <td class="currency">$brandSales.get($salekey).getLmtd()</td>
-
 
390
	    	 		      #else
-
 
391
	    	 		      <td>0</td>
-
 
392
	    	 		      #end
-
 
393
	    	 		       
-
 
394
	    	 		      #if($brandSales.get($salekey).getLmtdQty())
-
 
395
	    	 		      <td class="currency">$brandSales.get($salekey).getLmtdQty()</td>
-
 
396
	    	 		      #else
-
 
397
	    	 		      <td>0</td>
-
 
398
	    	 		      #end
-
 
399
	    	 		       #if($brandSales.get($salekey).getMtd())
-
 
400
	    	 		      <td class="currency">$brandSales.get($salekey).getMtd()</td>
-
 
401
	    	 		      #else
-
 
402
	    	 		      <td>0</td>
-
 
403
	    	 		      #end
-
 
404
	    	 		      #if($brandSales.get($salekey).getMtdQty())
-
 
405
	    	 		      <td class="currency">$brandSales.get($salekey).getMtdQty()</td>
-
 
406
	    	 		      #else
-
 
407
	    	 		      <td>0</td>
-
 
408
	    	 		      #end
-
 
409
	    	 		   </tr>
-
 
410
	    				 #end
-
 
411
	    				
-
 
412
	    		    </tbody>
-
 
413
	    		</table>
-
 
414
	    		</div>
-
 
415
			</div>
-
 
416
			</div>
357
			<div class="row">
417
			<div class="row">
358
				<div class="col-lg-6">
418
				<div class="col-lg-6">
359
					<div class="row col-lg-4">
419
					<div class="row col-lg-4">
360
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Reports</strong></h3>
420
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Reports</strong></h3>
361
					</div>
421
					</div>