Subversion Repositories SmartDukaan

Rev

Rev 27724 | Rev 27748 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27723 tejbeer 1
 
2
<section class="wrapper">
3
	<div class="row">
4
		<div class="col-lg-12">
5
			<h3 class="page-header"><i class="icon_document_alt"></i>Inventory</h3>
6
			<ol class="breadcrumb">
7
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
8
				<li><i class="icon_document_alt"></i>Inventory</li>						  	
9
			</ol>
10
		</div>
11
	</div>
12
 
13
 
14
	<table style="Width:100%; margin:15px">
15
		<tr>
16
			<td  style="Width:40%; float:left">
17
		     <div class = "row">
18
		       <div class="col-lg-6">
19
			    <div class="input-group">
20
		    		<select class="form-control input-sm" id = "warehouseMap" name="warehouseMap" placeholder="Warehouse">
21
						<option value="" disabled selected>Warehouse</option>
22
						#if($warehouseId.contains(0))
23
						<option value="0" selected>All</option>
24
						#else 
25
							<option value="0">All</option>
26
							#end
27
						  #foreach($wm in $warehouseMap.entrySet()))
28
	                      #if($warehouseId.contains($wm.getKey()) && !$warehouseId.contains(0))
29
		             		<option value="$wm.getKey()" selected>$wm.getValue()</option>
30
		             	  #else
31
		             		<option value="$wm.getKey()">$wm.getValue()</option>
32
		             	  #end
33
		             	  #end
34
		             	</select>
35
	    		<span class="input-group-btn">
36
	      			<button class="btn btn-primary submit" id="warehouse-wise-billing" type="button">Go!</button>
37
	    		</span>
38
	          </div>
39
	          </div>
40
	         </div>
41
	        </td>
42
 
43
 
44
		</tr>
45
    </table>
46
	<div class="row">
47
	<div class="col-lg-6">
48
 
49
				 <div class="row col-lg-3">
50
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Open PO</strong></h3>
51
				 </div>
27738 tejbeer 52
				 <table class="table table-striped table-advance table-hover" id ="openpo">
27723 tejbeer 53
	    			<tbody>
54
	    				<tr>
55
	    				 <th>Brand</th>
56
	    				 <th>today Qty</th>
57
	    				 <th>today</th>
58
	    				 <th>3 Days Qty</th>
59
                         <th>3 Days</th>
60
                         <th>7 Days Qty</th>
61
	    				 <th>7 Days</th>
62
	    				</tr>
63
	    				#foreach($po in $openPO)
64
	    				<tr onclick="">
65
	    	 		     <td>$po.getBrand()</td>
27738 tejbeer 66
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$po.getBrand()" class="currency openpodays">$po.getTodayQty()</td>
67
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$po.getBrand()" class="currency openpodays">$po.getTodayValue()</td> 
68
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$po.getBrand()" class="currency openpodays">$po.getThreedaysQty()</td> 
69
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$po.getBrand()" class="currency openpodays">$po.getThreedaysValue()</td>
70
	    	 		     <td  data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "7" data-brand = "$po.getBrand()" class="currency openpodays">$po.getSevendaysQty()</td>
71
	    	 		     <td  data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "7" data-brand = "$po.getBrand()" class="currency openpodays">$po.getSevendaysValue()</td>
27723 tejbeer 72
	    	 		   </tr>
73
	    				 #end
74
 
75
	    		    </tbody>
76
	    		</table>
77
 
78
	    	 <div class="row col-lg-3">
79
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Our Purchase</strong></h3>
80
				 </div>
27738 tejbeer 81
				 <table class="table table-striped table-advance table-hover" id ="openpurchase">
27723 tejbeer 82
	    			<tbody>
83
	    				<tr>
84
	    				 <th>Brand</th>
85
	    				  <th>today Qty</th>
86
	    				  <th>today</th>
87
	    				  <th>3 Days Qty</th>
88
                          <th>3 Days</th>
89
                          <th>15 Days Qty</th>
90
	    				  <th>last 15 Days</th>
91
	    				  <th>MTD Qty</th>
92
	    				  <th>MTD</th>
93
 
94
	    				</tr>
95
	    				#foreach($pur in $purchase)
96
	    				<tr onclick="">
97
	    	 		     <td>$pur.getBrand()</td>
27738 tejbeer 98
			 		       <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getTodayQty()</td>
99
			 		       <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getTodayValue()</td>
100
			 		       <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getThreedaysQty()</td>
101
			 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getThreedaysValue()</td>
102
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "15" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getFifteendaysQty()</td>
103
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "15" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getFifteendaysValue()</td>
104
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getMtdQty()</td>
105
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getMtd()</td>
27723 tejbeer 106
	    	 		   </tr>
107
	    				 #end
108
 
109
	    		    </tbody>
110
	    		</table>
111
	</div>
112
 
113
	<div class="col-lg-6">
114
			 <div class="row col-lg-4">
115
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Secondary Billing</strong></h3>
116
				 </div>
27738 tejbeer 117
				 <table class="table table-striped table-advance table-hover" id ="secondaryBillingtable">
27723 tejbeer 118
	    			<tbody>
119
	    				<tr>
120
	    				 <th>Brand</th>
121
	    				 <th>today Qty</th>
122
	    				 <th>today</th>
123
                         <th>3 Days Qty</th>
124
                         <th>3 Days</th>
125
                         <th>MTD Qty</th>
126
	    				 <th>MTD</th>
127
	    				  <th>LMTD Qty</th>
128
	    				  <th>LMTD</th>
129
 
130
	    				</tr>
27724 tejbeer 131
 
132
	    			  #foreach($bill in $billing)
27723 tejbeer 133
	    				<tr onclick="">
27724 tejbeer 134
	    	 		      <td>$bill.getBrand()</td>
27738 tejbeer 135
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getTodayQty()</td>
136
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getTodayValue()</td>
137
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getThreedaysQty()</td>
138
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getThreedaysValue()</td>
139
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getMtdQty()</td>
140
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getMtd()</td>
141
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "2" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getLmtdQty()</td>
142
	    	 		       <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "2" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getLmtd()</td>
27724 tejbeer 143
	    	 		     </tr>
144
	    				 #end
145
 
27723 tejbeer 146
 
147
	    		    </tbody>
148
	    		</table>
149
 
150
	    			 <div class="row col-lg-3">
151
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Partner Tertairy</strong></h3>
152
				 </div>
27738 tejbeer 153
				 <table class="table table-striped table-advance table-hover" id ="tertiaryTable">
27723 tejbeer 154
	    			<tbody>
155
	    				<tr>
156
	    				 <th>Brand</th>
157
	    				 <th>today Qty</th>
158
	    				 <th>today</th>
159
                         <th>3 Days Qty</th>
160
                         <th>3 Days</th>
161
                         <th>MTD Qty</th>
162
	    				 <th>MTD</th>
163
	    				  <th>LMTD Qty</th>
164
	    				  <th>LMTD</th>
165
 
166
	    				</tr>
27724 tejbeer 167
	    				#foreach($ter in $tertiary)
27723 tejbeer 168
	    				<tr onclick="">
27724 tejbeer 169
	    	 		     <td>$ter.getBrand()</td>
27738 tejbeer 170
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getTodayQty()</td>
171
	    	 		     <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getTodayValue()</td>
172
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getThreedaysQty()</td>
173
	    	 		    <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getThreedaysValue()</td>
174
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getMtdQty()</td>
175
	    	 		    <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getMtd()</td>
176
	    	 		      <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "2" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getLmtdQty()</td>
177
	    	 		    <td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "2" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getLmtd()</td>
27724 tejbeer 178
	    	 		   </tr>
179
	    			#end
27723 tejbeer 180
	    		    </tbody>
181
	    		</table>	
182
 
183
	</div>
184
	</div>
185
 
27738 tejbeer 186
 
187
  <div id="inventoryListingModel" class="modal" role="dialog">
188
	  <div class="modal-dialog">
189
	    <div class="modal-content">
190
 
191
    </div>
192
   </div>
193
 </div>
194
 
195
 <script>
196
 $('#openpo').on('click', '.openpodays', function(){
197
 	console.log("Hello")
198
 
199
 		var timeValue = $(this).data('time');
200
 
201
		var brand = $(this).data('brand');
202
		 var warehouseId = $('#warehouseMap').val()
203
 
204
				doGetAjaxRequestHandler(context + "/getOpenPoItemByBrand?timeValue="
205
						+ timeValue+ "&brand="+brand +"&warehouseIds="+warehouseId, function(response) {
206
 
207
					$('#inventoryListingModel .modal-content').html(response);
208
 
209
				});
210
});
211
 
212
 
213
 $('#openpurchase').on('click', '.openpurchasedays', function(){
214
 	console.log("Hello")
215
 
216
 		var timeValue = $(this).data('time');
217
 
218
		var brand = $(this).data('brand');
219
		 var warehouseId = $('#warehouseMap').val()
220
 
221
				doGetAjaxRequestHandler(context + "/getOurPurchaseItemByBrand?timeValue="
222
						+ timeValue+ "&brand="+brand +"&warehouseIds="+warehouseId, function(response) {
223
 
224
					$('#inventoryListingModel .modal-content').html(response);
225
 
226
				});
227
});
228
 
229
 $('#secondaryBillingtable').on('click', '.secondaryBilling', function(){
230
 	console.log("Hello")
231
 
232
 		var timeValue = $(this).data('time');
233
 
234
		var brand = $(this).data('brand');
235
		 var warehouseId = $('#warehouseMap').val()
236
 
237
				doGetAjaxRequestHandler(context + "/getSecondaryBillingItemByBrand?timeValue="
238
						+ timeValue+ "&brand="+brand +"&warehouseIds="+warehouseId, function(response) {
239
 
240
					$('#inventoryListingModel .modal-content').html(response);
241
 
242
				});
243
});
244
 
245
  $('#tertiaryTable').on('click', '.tertBilling', function(){
246
 	console.log("Hello")
247
 
248
 		var timeValue = $(this).data('time');
249
 
250
		var brand = $(this).data('brand');
251
		 var warehouseId = $('#warehouseMap').val()
252
 
253
				doGetAjaxRequestHandler(context + "/getPartnerTertiaryItemByBrand?timeValue="
254
						+ timeValue+ "&brand="+brand +"&warehouseIds="+warehouseId, function(response) {
255
 
256
					$('#inventoryListingModel .modal-content').html(response);
257
 
258
				});
259
});
260
 
261
 </script>
262
</section>