Subversion Repositories SmartDukaan

Rev

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

Rev 27529 Rev 27538
Line 75... Line 75...
75
			<div class="col-lg-12">
75
			<div class="col-lg-12">
76
				 <table id="warehouseBrandStock" class="table table-striped table-advance table-hover">
76
				 <table id="warehouseBrandStock" class="table table-striped table-advance table-hover">
77
				 <thead>
77
				 <thead>
78
	    			<tr>
78
	    			<tr>
79
	    				<th>Brand</th>
79
	    				<th>Brand</th>
-
 
80
	    				<th>Category</th>
80
	    				<th>Stock Qty</th>
81
	    				<th>Stock Qty</th>
81
	    				<th>Stock Value</th>
82
	    				<th>Stock Value</th>
82
	    				<th>Pending Indent</th>
83
	    				<th>Pending Indent</th>
83
	    			 </tr>
84
	    			 </tr>
84
				 </thead>
85
				 </thead>
85
	    			<tbody>
86
	    			<tbody>
86
	    			    #foreach($key in $warehouseWiseBrandStock)
87
	    			    #foreach($key in $warehouseWiseBrandStock)
87
	    				<tr>
88
	    				<tr>
88
	    	 		     <td data-warehouse-id="$key.getWarehouseId()">$key.getBrand()</td>
89
	    	 		     <td data-warehouse-id="$key.getWarehouseId()">$key.getBrand()</td>
-
 
90
	    	 		     <td>$key.getCategoryName()</td>
89
	    	 		     <td>$key.getStockQty()</td>
91
	    	 		     <td>$key.getStockQty()</td>
90
	    	 		     <td class="currency">$key.getStockValue()</td> 
92
	    	 		     <td class="currency">$key.getStockValue()</td> 
91
	    	 		     <td>$key.getPendingIndent()</td>
93
	    	 		     <td>$key.getPendingIndent()</td>
92
	    				</tr>
94
	    				</tr>
93
	    				 #end
95
	    				 #end
Line 123... Line 125...
123
						
125
						
124
        var brands = [];
126
        var brands = [];
125
        brands.push(data[0])
127
        brands.push(data[0])
126
        console.log(data);
128
        console.log(data);
127
        console.log(brands)
129
        console.log(brands)
128
        doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandItemStock?warehouseId="+warehouseId+"&brands="+brands,
130
        doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandItemStock?warehouseId="+warehouseId+"&brands="+brands+"&category="+data[1],
129
			function(response) {
131
			function(response) {
130
				$('.warehouse-brand-item-container').html(response);
132
				$('.warehouse-brand-item-container').html(response);
131
				console.log(response)
133
				console.log(response)
-
 
134
		 doGetAjaxRequestHandler(context + "/getWarehouseWiseItemStock?warehouseId="+warehouseId+"&brands="+brands+"&category="+data[1],
-
 
135
			function(response) {
-
 
136
				$('#warehosueItemStock').html(response);
-
 
137
				console.log(response)
-
 
138
			
-
 
139
		});
132
			});
140
			});
-
 
141
 
133
    } );
142
    } );
134
});
143
});
135
 
144
 
136
 
145
 
137
$(document).ready(function() {
146
$(document).ready(function() {