Subversion Repositories SmartDukaan

Rev

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

Rev 34036 Rev 34087
Line 49... Line 49...
49
  <div class = "row">
49
  <div class = "row">
50
 
50
 
51
	  <div class="col-md-12">
51
	  <div class="col-md-12">
52
		  <ul class="nav nav-pills">
52
		  <ul class="nav nav-pills">
53
			  #foreach($bnd in $brands)
53
			  #foreach($bnd in $brands)
54
				  <li class="tab-inactive #if($bnd == $brand) active #end">
54
				  <li class="tab-inactive #if($bnd == $brand) active #end brandFocusedStockDetail" data-brand="$bnd"
-
 
55
					  data-fofoid="$fofoId">
55
					  <a data-toggle="pill" href="#tab_$bnd">$bnd</a>
56
					  <a data-toggle="pill" href="#tab_$bnd">$bnd</a>
56
				  </li>
57
				  </li>
57
			  #end
58
			  #end
58
		  </ul>
59
		  </ul>
59
 
60
 
Line 84... Line 85...
84
								  <table id="table_$bnd_$statusKey"
85
								  <table id="table_$bnd_$statusKey"
85
										 class="table table-striped table-advance table-hover" style="width:100%">
86
										 class="table table-striped table-advance table-hover" style="width:100%">
86
									  <thead>
87
									  <thead>
87
									  <tr>
88
									  <tr>
88
										  <th>Item</th>
89
										  <th>Item</th>
89
										  ##										  <th>Brand</th>
-
 
90
										  <th>Our Stock</th>
90
										  <th>Our Stock</th>
91
										  <th>P-Fullfilled</th>
91
										  <th>P-Fullfilled</th>
92
										  <th>P-Shortage</th>
92
										  <th>P-Shortage</th>
93
										  <th>P-CurrentQty</th>
93
										  <th>P-CurrentQty</th>
94
										  ##										  <th>Status</th>
-
 
95
										  <th>Aging</th>
94
										  <th>Aging</th>
96
									  </tr>
95
									  </tr>
97
									  </thead>
96
									  </thead>
98
									  <tbody>
97
									  <tbody>
99
										  #foreach($stocklist in $statusModelMap.get($statusKey))
98
										  #foreach($stocklist in $statusModelMap.get($statusKey))
100
										  <tr>
99
										  <tr>
101
											  <td>$stocklist.getModelNumber()</td>
100
											  <td>$stocklist.getModelNumber()</td>
102
											  ##											  <td>$stocklist.getBrand()</td>
-
 
103
											  <td>$stocklist.getNetAvailability()</td>
101
											  <td>$stocklist.getNetAvailability()</td>
104
											  <td>$stocklist.getPartnerStockAvailability()</td>
102
											  <td>$stocklist.getPartnerStockAvailability()</td>
105
											  <td>$stocklist.getPartnerShortageStock()</td>
103
											  <td>$stocklist.getPartnerShortageStock()</td>
106
											  <td>$stocklist.getPartnerCurrentAvailability()</td>
104
											  <td>$stocklist.getPartnerCurrentAvailability()</td>
107
											  ##											  <td>$stocklist.getStatus()</td>
-
 
108
											  <td>$stocklist.getExceedDays()</td>
105
											  <td>$stocklist.getExceedDays()</td>
109
										  </tr>
106
										  </tr>
110
										  #end
107
										  #end
111
									  </tbody>
108
									  </tbody>
112
								  </table>
109
								  </table>
Line 163... Line 160...
163
	  ##						</tbody>
160
	  ##						</tbody>
164
	  ##			  </table>
161
	  ##			  </table>
165
	  ##
162
	  ##
166
	  ##	   </div>
163
	  ##	   </div>
167
  </div>
164
  </div>
168
	      
-
 
169
	      
-
 
170
	      
-
 
171
	       <div class = "row">
-
 
172
			   <hr style="border-top: 2px solid #ccc">
-
 
173
       <div class="col-lg-12">
-
 
174
 
165
 
175
 <h5> In Stock </h5>
-
 
176
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
-
 
177
				 <thead>
-
 
178
	    				<tr>
-
 
179
	    				<th>Item</th>
-
 
180
	    			    <th>Qty</th>
-
 
181
	    				
-
 
182
	    				</tr>
-
 
183
				 </thead>
-
 
184
	    			<tbody>
-
 
185
	    		
166
  #end
186
	    			    #foreach($inStock in $inStocks)
167
	  <div id="itemWiseBrandStockDetail">
187
	    				<tr>
-
 
188
	    				<td>$inStock.getItemDescription()</td>
-
 
189
    					<td>$inStock.getQty()</td>
-
 
190
    				
-
 
191
	    				</tr>
-
 
192
	    				
-
 
193
	    				#end
-
 
194
	    				
-
 
195
	    				</tbody>
-
 
196
	  </table>
-
 
197
	  
-
 
198
	  	         </div>	
-
 
199
	      </div>	
-
 
200
	      
-
 
201
	      
-
 
202
	      
-
 
203
	       <div class = "row">
-
 
204
       <div class="col-lg-12">
-
 
205
 
-
 
206
 <h5> Grn Pending </h5>
-
 
207
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
-
 
208
				 <thead>
-
 
209
	    				<tr>
-
 
210
	    				<th>Item</th>
-
 
211
	    			    <th>Qty</th>
-
 
212
	    				
-
 
213
	    				</tr>
-
 
214
				 </thead>
-
 
215
	    			<tbody>
-
 
216
	    		
-
 
217
	    			    #foreach($grnPending in $grnPendings)
-
 
218
	    				<tr>
-
 
219
	    				<td>$grnPending.getItemDescription()</td>
-
 
220
    					<td>$grnPending.getQty()</td>
-
 
221
    				
-
 
222
	    				</tr>
-
 
223
	    				
-
 
224
	    				#end
-
 
225
	    				
-
 
226
	    				</tbody>
-
 
227
	  </table>
-
 
228
	  	         </div>	
-
 
229
	      </div>	
-
 
230
	      
-
 
231
	      
-
 
232
	      
-
 
233
	       <div class = "row">
-
 
234
       <div class="col-lg-12">
-
 
235
 
168
 
236
 <h5> Pending Indent </h5>
-
 
237
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
-
 
238
				 <thead>
-
 
239
	    				<tr>
-
 
240
	    				<th>Item</th>
-
 
241
	    			    <th>Qty</th>
-
 
242
	    				
-
 
243
	    				</tr>
-
 
244
				 </thead>
-
 
245
	    			<tbody>
-
 
246
	    		
-
 
247
	    			    #foreach($pendingIndent in $pendingIndents)
-
 
248
	    				<tr>
-
 
249
	    				<td>$pendingIndent.getItemDescription()</td>
-
 
250
    					<td>$pendingIndent.getQty()</td>
-
 
251
    				
-
 
252
	    				</tr>
-
 
253
	    				
-
 
254
	    				#end
-
 
255
	    				
-
 
256
	    				</tbody>
-
 
257
	  </table>
-
 
258
	  	         </div>	
-
 
259
	      </div>	
-
 
260
	  </div>
169
	  </div>
-
 
170
  </div>
261
	
171
 
262
	#else
-
 
263
 
172
 
-
 
173
<div class="modal-footer">
-
 
174
	<button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
264
 
175
 
265
	<div class="row">
-
 
266
       <div class="col-lg-12">
-
 
267
	    	 <h5> Focused Model </h5>
-
 
268
	             <table class="table  table-advance" id = "brand-focused">
-
 
269
	    			<tbody>
-
 
270
	    			  <tr>
-
 
271
	    			    <th>#</th>
-
 
272
				        <th>Brand</th>
-
 
273
				       
-
 
274
	                 </tr>	
-
 
275
	                 #set($index = 0)
-
 
276
	                 
-
 
277
	               #foreach($focused in $focusedModelShortageBrandMap.entrySet())
-
 
278
						    
-
 
279
			         <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#focused-$index">	
-
 
280
			         <td class="expand-button"></td>	
-
 
281
		    	         <td>$focused.getKey()</td>
-
 
282
		    	         
-
 
283
		    		   </tr>	
-
 
284
			      
-
 
285
		    		
-
 
286
		    		<tr class="hide-table-padding">
-
 
287
		    		<td></td>
-
 
288
					<td colspan="3">
-
 
289
					<div  class="collapse p-3" id="focused-$index">
-
 
290
					 <table class="table  table-advance" >
-
 
291
	    			<tbody>
-
 
292
	    			  <tr>
-
 
293
				      <th>Item</th>
-
 
294
	    				<th>Pending Indent</th>
-
 
295
	    				<th>In Stock</th>
-
 
296
	    				<th>Shortage Qty</th>
-
 
297
	    			    <th>Availability</th>
-
 
298
						
-
 
299
	                 </tr>	
-
 
300
	                 
-
 
301
	                 #foreach($item in $focused.getValue()) 
-
 
302
	             
-
 
303
			          
-
 
304
			            <tr>
-
 
305
	    				<td>$item.getBrandName() $item.getModelName()  $item.getModelNumber() </td>
-
 
306
    					<td>$item.getPendingIndentQty()</td>
-
 
307
    					
-
 
308
    					
-
 
309
    					#if($item.getShortageQty() > $item.getGrnStockQty())
-
 
310
    				    <td style = "color:red" >$item.getGrnStockQty()</td>
-
 
311
    				    #else
-
 
312
    				      <td>$item.getGrnStockQty()</td>
-
 
313
    				    #end
-
 
314
    				    
-
 
315
    				    #if($item.getShortageQty() > 0 )
-
 
316
				     	<td>$item.getShortageQty()</td>	
-
 
317
				     	#else
-
 
318
				     	<td>0</td>	
-
 
319
				     	#end
-
 
320
						<td>$item.getAvailabitiy()</td>
-
 
321
						
-
 
322
	    				</tr>
-
 
323
		    	        
-
 
324
		    		  
-
 
325
		    		  #end
-
 
326
		    		 
-
 
327
		    		   
-
 
328
		    		   </tbody>
-
 
329
	                  </table>
-
 
330
			        </div>
-
 
331
					</td>
-
 
332
					
-
 
333
					
-
 
334
					</tr>
-
 
335
					#set($index=$index+1)
-
 
336
					#end
-
 
337
					
-
 
338
					
-
 
339
		    	    </tbody>
-
 
340
	             </table>
-
 
341
	        
-
 
342
	         </div>	
-
 
343
	      </div>
-
 
344
	
-
 
345
	  <div class = "row">
-
 
346
       <div class="col-lg-12">
-
 
347
	    	 <h5> In Stock </h5>
-
 
348
	             <table class="table  table-advance" id = "brand-instock">
-
 
349
	    			<tbody>
-
 
350
	    			  <tr>
-
 
351
	    			    <th>#</th>
-
 
352
				        <th>Brand</th>
-
 
353
				       
-
 
354
	                 </tr>	
-
 
355
	                 #set($index = 0)
-
 
356
	                 
-
 
357
	               #foreach($brand in $inStockBrandMap.entrySet())
-
 
358
						    
-
 
359
			         <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#brand-$index">	
-
 
360
			         <td class="expand-button"></td>	
-
 
361
		    	         <td>$brand.getKey()</td>
-
 
362
		    	         
-
 
363
		    		   </tr>	
-
 
364
			      
-
 
365
		    		
-
 
366
		    		<tr class="hide-table-padding">
-
 
367
		    		<td></td>
-
 
368
					<td colspan="3">
-
 
369
					<div  class="collapse p-3" id="brand-$index">
-
 
370
					 <table class="table  table-advance" >
-
 
371
	    			<tbody>
-
 
372
	    			  <tr>
-
 
373
				        <th width="36%">Item</th>
-
 
374
				        <th>Quantity</th>
-
 
375
						
-
 
376
	                 </tr>	
-
 
377
	                 
-
 
378
	                 #foreach($items in $brand.getValue()) 
-
 
379
	             
-
 
380
			            <tr>	
-
 
381
			              <td>$items.getItemDescription()</td>
-
 
382
		    	          <td>$items.getQty()</td>
-
 
383
		    	        
-
 
384
		    		   </tr>	
-
 
385
		    		  #end
-
 
386
		    		 
-
 
387
		    		   
-
 
388
		    		   </tbody>
-
 
389
	                  </table>
-
 
390
			        </div>
-
 
391
					</td>
-
 
392
					
-
 
393
					
-
 
394
					</tr>
-
 
395
					#set($index=$index+1)
-
 
396
					#end
-
 
397
					
-
 
398
					
-
 
399
		    	    </tbody>
-
 
400
	             </table>
-
 
401
	        
-
 
402
	         </div>	
-
 
403
	      </div>	
-
 
404
	
-
 
405
	
-
 
406
	
-
 
407
		  <div class = "row">
-
 
408
       <div class="col-lg-12">
-
 
409
	    	 <h5> Grn Pending </h5>
-
 
410
	             <table class="table  table-advance" id = "brand-grn">
-
 
411
	    			<tbody>
-
 
412
	    			  <tr>
-
 
413
	    			    <th>#</th>
-
 
414
				        <th>Brand</th>
-
 
415
				       
-
 
416
	                 </tr>	
-
 
417
	                 #set($index = 0)
-
 
418
	                 
-
 
419
	               #foreach($grnpending in $grnPendingBrandMap.entrySet())
-
 
420
						    
-
 
421
			         <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#grn-$index">	
-
 
422
			         <td class="expand-button"></td>	
-
 
423
		    	         <td>$grnpending.getKey()</td>
-
 
424
		    	         
-
 
425
		    		   </tr>	
-
 
426
			      
-
 
427
		    		
-
 
428
		    		<tr class="hide-table-padding">
-
 
429
		    		<td></td>
-
 
430
					<td colspan="3">
-
 
431
					<div  class="collapse p-3" id="grn-$index">
-
 
432
					 <table class="table  table-advance" >
-
 
433
	    			<tbody>
-
 
434
	    			  <tr>
-
 
435
				        <th width="36%">Item</th>
-
 
436
				        <th>Quantity</th>
-
 
437
						
-
 
438
	                 </tr>	
-
 
439
	                 
-
 
440
	                 #foreach($items in $grnpending.getValue()) 
-
 
441
	             
-
 
442
			            <tr>	
-
 
443
			              <td>$items.getItemDescription()</td>
-
 
444
		    	          <td>$items.getQty()</td>
-
 
445
		    	        
-
 
446
		    		   </tr>	
-
 
447
		    		  #end
-
 
448
		    		 
-
 
449
		    		   
-
 
450
		    		   </tbody>
-
 
451
	                  </table>
-
 
452
			        </div>
-
 
453
					</td>
-
 
454
					
-
 
455
					
-
 
456
					</tr>
-
 
457
					#set($index=$index+1)
-
 
458
					#end
-
 
459
					
-
 
460
					
-
 
461
		    	    </tbody>
-
 
462
	             </table>
-
 
463
	        
-
 
464
	         </div>	
-
 
465
	      </div>
-
 
466
	      
-
 
467
	      
-
 
468
	      
-
 
469
	      	  <div class = "row">
-
 
470
       <div class="col-lg-12">
-
 
471
	    	 <h5> Pending Indent </h5>
-
 
472
	             <table class="table  table-advance" id = "brand-pending">
-
 
473
	    			<tbody>
-
 
474
	    			  <tr>
-
 
475
	    			    <th>#</th>
-
 
476
				        <th>Brand</th>
-
 
477
				       
-
 
478
	                 </tr>	
-
 
479
	                 #set($index = 0)
-
 
480
	                 
-
 
481
	               #foreach($pendingIndent in $pendingIndentBrandMap.entrySet())
-
 
482
						    
-
 
483
			         <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#pending-$index">	
-
 
484
			         <td class="expand-button"></td>	
-
 
485
		    	         <td>$pendingIndent.getKey()</td>
-
 
486
		    	         
-
 
487
		    		   </tr>	
-
 
488
			      
-
 
489
		    		
-
 
490
		    		<tr class="hide-table-padding">
-
 
491
		    		<td></td>
-
 
492
					<td colspan="3">
-
 
493
					<div  class="collapse p-3" id="pending-$index">
-
 
494
					 <table class="table  table-advance" >
-
 
495
	    			<tbody>
-
 
496
	    			  <tr>
-
 
497
				        <th width="36%">Item</th>
-
 
498
				        <th>Quantity</th>
-
 
499
						
-
 
500
	                 </tr>	
-
 
501
	                 
-
 
502
	                 #foreach($items in $pendingIndent.getValue()) 
-
 
503
	             
-
 
504
			            <tr>	
-
 
505
			              <td>$items.getItemDescription()</td>
-
 
506
		    	          <td>$items.getQty()</td>
-
 
507
		    	        
-
 
508
		    		   </tr>	
-
 
509
		    		  #end
-
 
510
		    		 
-
 
511
		    		   
-
 
512
		    		   </tbody>
-
 
513
	                  </table>
-
 
514
			        </div>
-
 
515
					</td>
-
 
516
					
-
 
517
					
-
 
518
					</tr>
-
 
519
					#set($index=$index+1)
-
 
520
					#end
-
 
521
					
-
 
522
					
-
 
523
		    	    </tbody>
-
 
524
	             </table>
-
 
525
	        
-
 
526
	         </div>	
-
 
527
	      </div>
-
 
528
	#end
-
 
529
  
-
 
530
  	<div class="modal-footer">
-
 
531
		        <button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
-
 
532
	
-
 
533
	   </div>
-
 
534
176
</div>
-
 
177