Subversion Repositories SmartDukaan

Rev

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

Rev 27724 Rev 27738
Line 47... Line 47...
47
	<div class="col-lg-6">
47
	<div class="col-lg-6">
48
				
48
				
49
				 <div class="row col-lg-3">
49
				 <div class="row col-lg-3">
50
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Open PO</strong></h3>
50
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Open PO</strong></h3>
51
				 </div>
51
				 </div>
52
				 <table class="table table-striped table-advance table-hover">
52
				 <table class="table table-striped table-advance table-hover" id ="openpo">
53
	    			<tbody>
53
	    			<tbody>
54
	    				<tr>
54
	    				<tr>
55
	    				 <th>Brand</th>
55
	    				 <th>Brand</th>
56
	    				 <th>today Qty</th>
56
	    				 <th>today Qty</th>
57
	    				 <th>today</th>
57
	    				 <th>today</th>
Line 61... Line 61...
61
	    				 <th>7 Days</th>
61
	    				 <th>7 Days</th>
62
	    				</tr>
62
	    				</tr>
63
	    				#foreach($po in $openPO)
63
	    				#foreach($po in $openPO)
64
	    				<tr onclick="">
64
	    				<tr onclick="">
65
	    	 		     <td>$po.getBrand()</td>
65
	    	 		     <td>$po.getBrand()</td>
66
	    	 		     <td class="currency">$po.getTodayQty()</td>
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 class="currency">$po.getTodayValue()</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 class="currency">$po.getThreedaysQty()</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 class="currency">$po.getThreedaysValue()</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 class="currency">$po.getSevendaysQty()</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 class="currency">$po.getSevendaysValue()</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>
72
	    	 		   </tr>
72
	    	 		   </tr>
73
	    				 #end
73
	    				 #end
74
	    				
74
	    				
75
	    		    </tbody>
75
	    		    </tbody>
76
	    		</table>
76
	    		</table>
77
	    		
77
	    		
78
	    	 <div class="row col-lg-3">
78
	    	 <div class="row col-lg-3">
79
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Our Purchase</strong></h3>
79
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Our Purchase</strong></h3>
80
				 </div>
80
				 </div>
81
				 <table class="table table-striped table-advance table-hover">
81
				 <table class="table table-striped table-advance table-hover" id ="openpurchase">
82
	    			<tbody>
82
	    			<tbody>
83
	    				<tr>
83
	    				<tr>
84
	    				 <th>Brand</th>
84
	    				 <th>Brand</th>
85
	    				  <th>today Qty</th>
85
	    				  <th>today Qty</th>
86
	    				  <th>today</th>
86
	    				  <th>today</th>
Line 93... Line 93...
93
	    				
93
	    				
94
	    				</tr>
94
	    				</tr>
95
	    				#foreach($pur in $purchase)
95
	    				#foreach($pur in $purchase)
96
	    				<tr onclick="">
96
	    				<tr onclick="">
97
	    	 		     <td>$pur.getBrand()</td>
97
	    	 		     <td>$pur.getBrand()</td>
98
			 		       <td class="currency">$pur.getTodayQty()</td>
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 class="currency">$pur.getTodayValue()</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 class="currency">$pur.getThreedaysQty()</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 class="currency">$pur.getThreedaysValue()</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 class="currency">$pur.getFifteendaysQty()</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 class="currency">$pur.getFifteendaysValue()</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 class="currency">$pur.getMtdQty()</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 class="currency">$pur.getMtd()</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>
106
	    	 		   </tr>
106
	    	 		   </tr>
107
	    				 #end
107
	    				 #end
108
	    				
108
	    				
109
	    		    </tbody>
109
	    		    </tbody>
110
	    		</table>
110
	    		</table>
Line 112... Line 112...
112
	
112
	
113
	<div class="col-lg-6">
113
	<div class="col-lg-6">
114
			 <div class="row col-lg-4">
114
			 <div class="row col-lg-4">
115
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Secondary Billing</strong></h3>
115
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Secondary Billing</strong></h3>
116
				 </div>
116
				 </div>
117
				 <table class="table table-striped table-advance table-hover">
117
				 <table class="table table-striped table-advance table-hover" id ="secondaryBillingtable">
118
	    			<tbody>
118
	    			<tbody>
119
	    				<tr>
119
	    				<tr>
120
	    				 <th>Brand</th>
120
	    				 <th>Brand</th>
121
	    				 <th>today Qty</th>
121
	    				 <th>today Qty</th>
122
	    				 <th>today</th>
122
	    				 <th>today</th>
Line 130... Line 130...
130
	    				</tr>
130
	    				</tr>
131
	    				
131
	    				
132
	    			  #foreach($bill in $billing)
132
	    			  #foreach($bill in $billing)
133
	    				<tr onclick="">
133
	    				<tr onclick="">
134
	    	 		      <td>$bill.getBrand()</td>
134
	    	 		      <td>$bill.getBrand()</td>
135
	    	 		      <td class="currency">$bill.getTodayQty()</td>
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 class="currency">$bill.getTodayValue()</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 class="currency">$bill.getThreedaysQty()</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 class="currency">$bill.getThreedaysValue()</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 class="currency">$bill.getMtdQty()</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 class="currency">$bill.getMtd()</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 class="currency">$bill.getLmtdQty()</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 class="currency">$bill.getLmtd()</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>
143
	    	 		     </tr>
143
	    	 		     </tr>
144
	    				 #end
144
	    				 #end
145
	    			
145
	    			
146
	    				
146
	    				
147
	    		    </tbody>
147
	    		    </tbody>
148
	    		</table>
148
	    		</table>
149
	    		
149
	    		
150
	    			 <div class="row col-lg-3">
150
	    			 <div class="row col-lg-3">
151
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Partner Tertairy</strong></h3>
151
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Partner Tertairy</strong></h3>
152
				 </div>
152
				 </div>
153
				 <table class="table table-striped table-advance table-hover">
153
				 <table class="table table-striped table-advance table-hover" id ="tertiaryTable">
154
	    			<tbody>
154
	    			<tbody>
155
	    				<tr>
155
	    				<tr>
156
	    				 <th>Brand</th>
156
	    				 <th>Brand</th>
157
	    				 <th>today Qty</th>
157
	    				 <th>today Qty</th>
158
	    				 <th>today</th>
158
	    				 <th>today</th>
Line 165... Line 165...
165
	    				
165
	    				
166
	    				</tr>
166
	    				</tr>
167
	    				#foreach($ter in $tertiary)
167
	    				#foreach($ter in $tertiary)
168
	    				<tr onclick="">
168
	    				<tr onclick="">
169
	    	 		     <td>$ter.getBrand()</td>
169
	    	 		     <td>$ter.getBrand()</td>
170
	    	 		      <td class="currency">$ter.getTodayQty()</td>
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 class="currency">$ter.getTodayValue()</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 class="currency">$ter.getThreedaysQty()</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 class="currency">$ter.getThreedaysValue()</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 class="currency">$ter.getMtdQty()</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 class="currency">$ter.getMtd()</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 class="currency">$ter.getLmtdQty()</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 class="currency">$ter.getLmtd()</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>
178
	    	 		   </tr>
178
	    	 		   </tr>
179
	    			#end
179
	    			#end
180
	    		    </tbody>
180
	    		    </tbody>
181
	    		</table>	
181
	    		</table>	
182
		
182
		
183
	</div>
183
	</div>
184
	</div>
184
	</div>
185
 
185
 
186
</section>
-
 
187
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>
-
 
263