Subversion Repositories SmartDukaan

Rev

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

Rev 27574 Rev 27591
Line 159... Line 159...
159
				console.log(response)
159
				console.log(response)
160
			});
160
			});
161
	}
161
	}
162
	
162
	
163
	
163
	
164
	function getWarehouseWiseBrandPartnerSale(warehouseId){
164
	function getWarehouseWiseBrandPartnerSale(brand){
165
	
165
	
166
		doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?warehouseId="+warehouseId,
166
		doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand="+brand,
167
			function(response) {
167
			function(response) {
168
				$('#' + "main-content").html(response);
168
				$('#' + "main-content").html(response);
169
				console.log(response)
169
				console.log(response)
170
			});
170
			});
171
	}
171
	}
Line 380... Line 380...
380
					</div>
380
					</div>
381
					
381
					
382
					 <table class="table table-striped table-advance table-hover">
382
					 <table class="table table-striped table-advance table-hover">
383
	    			<tbody>
383
	    			<tbody>
384
	    				<tr>
384
	    				<tr>
385
	    				<th>W/H Location</th>
385
	    			    <th>Brand</th>
386
	    				<th>LMS</th>
386
	    				<th>LMS</th>
387
	    				  <th>LMS Qty</th>
387
	    				  <th>LMS Qty</th>
388
	    				 <th>LMTD</th>
388
	    				 <th>LMTD</th>
389
	    				  <th>LMTD Qty</th>
389
	    				  <th>LMTD Qty</th>
390
	    				   <th>MTD</th>
390
	    				   <th>MTD</th>
391
	    				    <th>MTD Qty</th>
391
	    				    <th>MTD Qty</th>
392
	    				</tr>
392
	    				</tr>
393
	    				#foreach($salekey in $$warehouseMap.keySet())
393
	    				#foreach($salekey in $$brandSales)
394
	    				<tr onclick="getWarehouseWiseBrandPartnerSale($brandSales.get($salekey).getWarehouseId())">
394
	    				<tr onclick="getWarehouseWiseBrandPartnerSale(`$salekey.getBrand()`)">
395
	    				  
-
 
396
	    	 		      <td>$warehouseMap.get($salekey)</td>
395
	    				  <td>$salekey.getBrand()</td>
397
	    	 		      
396
	    	 		    
398
	    	 		      #if($brandSales.get($salekey).getLms())
397
	    	 		      #if($salekey.getLms())
399
	    	 		      <td class="currency">$brandSales.get($salekey).getLms()</td>
398
	    	 		      <td class="currency">$salekey.getLms()</td>
400
	    	 		      #else
399
	    	 		      #else
401
	    	 		      <td>0</td>
400
	    	 		      <td>0</td>
402
	    	 		      #end
401
	    	 		      #end
403
	    	 		       
402
	    	 		       
404
	    	 		      #if($brandSales.get($salekey).getLmsQty())
403
	    	 		      #if($salekey.getLmsQty())
405
	    	 		      <td class="currency">$brandSales.get($salekey).getLmsQty()</td>
404
	    	 		      <td class="currency">$salekey.getLmsQty()</td>
406
	    	 		      #else
405
	    	 		      #else
407
	    	 		      <td>0</td>
406
	    	 		      <td>0</td>
408
	    	 		      #end
407
	    	 		      #end
409
	    	 		      #if($brandSales.get($salekey).getLmtd())
408
	    	 		      #if($salekey.getLmtd())
410
	    	 		      <td class="currency">$brandSales.get($salekey).getLmtd()</td>
409
	    	 		      <td class="currency">$salekey.getLmtd()</td>
411
	    	 		      #else
410
	    	 		      #else
412
	    	 		      <td>0</td>
411
	    	 		      <td>0</td>
413
	    	 		      #end
412
	    	 		      #end
414
	    	 		       
413
	    	 		       
415
	    	 		      #if($brandSales.get($salekey).getLmtdQty())
414
	    	 		      #if($salekey.getLmtdQty())
416
	    	 		      <td class="currency">$brandSales.get($salekey).getLmtdQty()</td>
415
	    	 		      <td class="currency">$salekey.getLmtdQty()</td>
417
	    	 		      #else
416
	    	 		      #else
418
	    	 		      <td>0</td>
417
	    	 		      <td>0</td>
419
	    	 		      #end
418
	    	 		      #end
420
	    	 		       #if($brandSales.get($salekey).getMtd())
419
	    	 		       #if($salekey.getMtd())
421
	    	 		      <td class="currency">$brandSales.get($salekey).getMtd()</td>
420
	    	 		      <td class="currency">$salekey.getMtd()</td>
422
	    	 		      #else
421
	    	 		      #else
423
	    	 		      <td>0</td>
422
	    	 		      <td>0</td>
424
	    	 		      #end
423
	    	 		      #end
425
	    	 		      #if($brandSales.get($salekey).getMtdQty())
424
	    	 		      #if($salekey.getMtdQty())
426
	    	 		      <td class="currency">$brandSales.get($salekey).getMtdQty()</td>
425
	    	 		      <td class="currency">$salekey.getMtdQty()</td>
427
	    	 		      #else
426
	    	 		      #else
428
	    	 		      <td>0</td>
427
	    	 		      <td>0</td>
429
	    	 		      #end
428
	    	 		      #end
430
	    	 		   </tr>
429
	    	 		   </tr>
431
	    				 #end
430
	    				 #end