Subversion Repositories SmartDukaan

Rev

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

Rev 27574 Rev 27591
Line 47... Line 47...
47
		<tr>
47
		<tr>
48
			<td  style="Width:40%; float:left">
48
			<td  style="Width:40%; float:left">
49
		     <div class = "row">
49
		     <div class = "row">
50
		       <div class="col-lg-12">
50
		       <div class="col-lg-12">
51
			    <div class="input-group">
51
			    <div class="input-group">
52
		    		<select class="form-control input-sm" id = "warehouseMap" name="warehouseMap" placeholder="Warehouse">
52
		    		<select class="form-control input-sm" id = "brands" name="brands" placeholder="Brand">
53
						<option value="" disabled selected>Warehouse</option>
53
						<option value="" disabled selected>Brand</option>
54
						#if($warehouseId == 0)
-
 
55
						<option value="0" selected>All</option>
-
 
56
						#else 
-
 
57
							<option value="0">All</option>
-
 
58
							#end
-
 
59
						  #foreach($wm in $warehouseMap.entrySet()))
54
						  #foreach($brand in $brands))
60
	                      #if($wm.getKey()==$warehouseId)
55
	                      #if($brand == $selectedbrand)
61
		             		<option value="$wm.getKey()" selected>$wm.getValue()</option>
56
		             		<option value="$brand" selected>$brand</option>
62
		             	  #else
57
		             	  #else
63
		             		<option value="$wm.getKey()">$wm.getValue()</option>
58
		             		<option value="$brand">$brand</option>
64
		             	  #end
59
		             	  #end
65
		             	  #end
60
		             	  #end
66
		             	</select>
61
		             	</select>
67
	    		<span class="input-group-btn">
62
	    		<span class="input-group-btn">
68
	      			<button class="btn btn-primary submit" id="warehouse-partner-brand-sale" type="button">Go!</button>
63
	      			<button class="btn btn-primary submit" id="warehouse-partner-brand-sale" type="button">Go!</button>
Line 79... Line 74...
79
					
74
					
80
			<div class="col-lg-12">
75
			<div class="col-lg-12">
81
				 <table id="warehousePartnerBrandSale" class="table table-striped table-advance table-hover">
76
				 <table id="warehousePartnerBrandSale" class="table table-striped table-advance table-hover">
82
				 <thead>
77
				 <thead>
83
	    			<tr>
78
	    			<tr>
84
	    				<th>Brand</th>
79
	    			    <th> W/H Id</th>
-
 
80
	    				<th>W/H Location</th>
85
	    			    <th>LMS</th>
81
	    			    <th>LMS</th>
86
	    			    <th>LMS Qty</th>
82
	    			    <th>LMS Qty</th>
87
	    			    <th>LMTD</th>
83
	    			    <th>LMTD</th>
88
	    			    <th>LMTD Qty</th>
84
	    			    <th>LMTD Qty</th>
89
	    				<th>MTD</th>
85
	    				<th>MTD</th>
90
	    				<th>MTD Qty</th>
86
	    				<th>MTD Qty</th>
91
	    			 </tr>
87
	    			 </tr>
92
				 </thead>
88
				 </thead>
93
	    			<tbody>
89
	    			<tbody>
94
	    			    #foreach($sales in $warehouseBrandPartnerSales)
90
	    			    #foreach($sales in $warehouseWiseBrandPartnerSales)
95
	    				<tr>
91
	    				<tr>
96
	    	 		     <td>$sales.getBrand()</td>
92
	    				  <td>$sales.getWarehouseId()</td>
-
 
93
	    	 		      <td>$warehouseMap.get($sales.getWarehouseId())</td>
97
	    	 		      <td class="currency">$sales.getLms()</td>
94
	    	 		      <td class="currency">$sales.getLms()</td>
98
	    	 		      <td>$sales.getLmsQty()</td>
95
	    	 		      <td>$sales.getLmsQty()</td>
99
	    	 		      <td class="currency">$sales.getLmtd()</td>
96
	    	 		      <td class="currency">$sales.getLmtd()</td>
100
	    	 		      <td>$sales.getLmtdQty()</td>
97
	    	 		      <td>$sales.getLmtdQty()</td>
101
	    	 		      <td class="currency">$sales.getMtd()</td>
98
	    	 		      <td class="currency">$sales.getMtd()</td>
Line 145... Line 142...
145
 
142
 
146
    
143
    
147
     $('#warehousePartnerBrandSale tbody').on('click', 'tr', function () {
144
     $('#warehousePartnerBrandSale tbody').on('click', 'tr', function () {
148
        var data = table.row( this ).data();
145
        var data = table.row( this ).data();
149
        
146
        
150
        var warehouseId = $('#warehouseMap').val();
147
       var brand = $('#brands').val();
151
						
-
 
152
    	 doGetAjaxRequestHandler(context + "/getWarehouseBrandWiseItemSale?warehouseId="+warehouseId+"&brand="+data[0],
148
       doGetAjaxRequestHandler(context + "/getWarehouseBrandWiseItemSale?warehouseId="+data[0]+"&brand="+brand,
153
			function(response) {
149
			function(response) {
154
				$('.warehouse-brand-item-sale-container').html(response);
150
				$('.warehouse-brand-item-sale-container').html(response);
155
				console.log(response)
151
				console.log(response)
156
			
152
			
157
		});
153
		});
Line 165... Line 161...
165
$(document).ready(function() {
161
$(document).ready(function() {
166
$("#warehouse-partner-brand-sale")
162
$("#warehouse-partner-brand-sale")
167
		.live(
163
		.live(
168
			'click',
164
			'click',
169
			function() {
165
			function() {
170
		var warehouseId = $('#warehouseMap').val();
166
		var brand = $('#brands').val();
171
          doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?warehouseId="+warehouseId,
167
          doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand="+brand,
172
			function(response) {
168
			function(response) {
173
				$('#' + "main-content").html(response);
169
				$('#' + "main-content").html(response);
174
				console.log(response)
170
				console.log(response)
175
			});
171
			});
176
	});
172
	});