Subversion Repositories SmartDukaan

Rev

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

Rev 30004 Rev 30044
Line -... Line 1...
-
 
1
<style>
-
 
2
 
-
 
3
   h5 { text-align: center;
-
 
4
    background-color: lightgray;
-
 
5
    padding: 5px;
-
 
6
    font-size: 16px;
-
 
7
    }
-
 
8
    
-
 
9
  #brand-instock tr.hide-table-padding td {
-
 
10
  padding: 0;
-
 
11
}
-
 
12
 
-
 
13
.expand-button {
-
 
14
	position: relative;
-
 
15
}
-
 
16
 
-
 
17
.accordion-toggle .expand-button:after
-
 
18
{
-
 
19
  position: absolute;
-
 
20
  left:.75rem;
-
 
21
  top: 50%;
-
 
22
  transform: translate(0, -50%);
-
 
23
  content: '-';
-
 
24
}
-
 
25
.accordion-toggle.collapsed .expand-button:after
-
 
26
{
-
 
27
  content: '+';
-
 
28
}
-
 
29
</style> 
-
 
30
 
-
 
31
 
-
 
32
 
-
 
33
 
1
 <div class="modal-header">
34
 <div class="modal-header">
2
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
35
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
3
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
36
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
4
	        </h4>
37
	        </h4>
5
       </div>
38
       </div>
6
  <div class="modal-body" style="height:400px;overflow:auto;">
39
  <div class="modal-body" style="height:400px;overflow:auto;">
-
 
40
  
-
 
41
  #if($brand != "undefined")
7
    <div class = "row">
42
  <div class = "row">
8
       <div class="col-lg-12">
43
       <div class="col-lg-12">
9
 
44
 
10
 
-
 
-
 
45
 <h5> Focused Model </h5>
11
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
46
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
12
				 <thead>
47
				 <thead>
13
	    				<tr>
48
	    				<tr>
14
	    				<th>Item</th>
49
	    				<th>Item</th>
15
	    				<th>Pending Indent</th>
50
	    				<th>Pending Indent</th>
Line 47... Line 82...
47
	    				</tbody>
82
	    				</tbody>
48
	  </table>
83
	  </table>
49
	  
84
	  
50
	  	         </div>	
85
	  	         </div>	
51
	      </div>	
86
	      </div>	
-
 
87
	      
-
 
88
	      
-
 
89
	      
-
 
90
	       <div class = "row">
-
 
91
       <div class="col-lg-12">
-
 
92
 
-
 
93
 <h5> In Stock </h5>
-
 
94
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
-
 
95
				 <thead>
-
 
96
	    				<tr>
-
 
97
	    				<th>Item</th>
-
 
98
	    			    <th>Qty</th>
-
 
99
	    				
-
 
100
	    				</tr>
-
 
101
				 </thead>
-
 
102
	    			<tbody>
-
 
103
	    		
-
 
104
	    			    #foreach($inStock in $inStocks)
-
 
105
	    				<tr>
-
 
106
	    				<td>$inStock.getItemDescription()</td>
-
 
107
    					<td>$inStock.getQty()</td>
-
 
108
    				
-
 
109
	    				</tr>
-
 
110
	    				
-
 
111
	    				#end
-
 
112
	    				
-
 
113
	    				</tbody>
-
 
114
	  </table>
-
 
115
	  
-
 
116
	  	         </div>	
-
 
117
	      </div>	
-
 
118
	      
-
 
119
	      
-
 
120
	      
-
 
121
	       <div class = "row">
-
 
122
       <div class="col-lg-12">
-
 
123
 
-
 
124
 <h5> Grn Pending </h5>
-
 
125
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
-
 
126
				 <thead>
-
 
127
	    				<tr>
-
 
128
	    				<th>Item</th>
-
 
129
	    			    <th>Qty</th>
-
 
130
	    				
-
 
131
	    				</tr>
-
 
132
				 </thead>
-
 
133
	    			<tbody>
-
 
134
	    		
-
 
135
	    			    #foreach($grnPending in $grnPendings)
-
 
136
	    				<tr>
-
 
137
	    				<td>$grnPending.getItemDescription()</td>
-
 
138
    					<td>$grnPending.getQty()</td>
-
 
139
    				
-
 
140
	    				</tr>
-
 
141
	    				
-
 
142
	    				#end
-
 
143
	    				
-
 
144
	    				</tbody>
-
 
145
	  </table>
-
 
146
	  	         </div>	
-
 
147
	      </div>	
-
 
148
	      
-
 
149
	      
-
 
150
	      
-
 
151
	       <div class = "row">
-
 
152
       <div class="col-lg-12">
-
 
153
 
-
 
154
 <h5> Pending Indent </h5>
-
 
155
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
-
 
156
				 <thead>
-
 
157
	    				<tr>
-
 
158
	    				<th>Item</th>
-
 
159
	    			    <th>Qty</th>
-
 
160
	    				
-
 
161
	    				</tr>
-
 
162
				 </thead>
-
 
163
	    			<tbody>
-
 
164
	    		
-
 
165
	    			    #foreach($pendingIndent in $pendingIndents)
-
 
166
	    				<tr>
-
 
167
	    				<td>$pendingIndent.getItemDescription()</td>
-
 
168
    					<td>$pendingIndent.getQty()</td>
-
 
169
    				
-
 
170
	    				</tr>
-
 
171
	    				
-
 
172
	    				#end
-
 
173
	    				
-
 
174
	    				</tbody>
-
 
175
	  </table>
-
 
176
	  	         </div>	
-
 
177
	      </div>	
52
	  </div>
178
	  </div>
-
 
179
	
-
 
180
	#else
-
 
181
	
-
 
182
	
-
 
183
	
-
 
184
<div class = "row">
-
 
185
       <div class="col-lg-12">
-
 
186
	    	 <h5> Focused Model </h5>
-
 
187
	             <table class="table  table-advance" id = "brand-focused">
-
 
188
	    			<tbody>
-
 
189
	    			  <tr>
-
 
190
	    			    <th>#</th>
-
 
191
				        <th>Brand</th>
-
 
192
				       
-
 
193
	                 </tr>	
-
 
194
	                 #set($index = 0)
-
 
195
	                 
-
 
196
	               #foreach($focused in $focusedModelShortageBrandMap.entrySet())
-
 
197
						    
-
 
198
			         <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#focused-$index">	
-
 
199
			         <td class="expand-button"></td>	
-
 
200
		    	         <td>$focused.getKey()</td>
-
 
201
		    	         
-
 
202
		    		   </tr>	
-
 
203
			      
-
 
204
		    		
-
 
205
		    		<tr class="hide-table-padding">
-
 
206
		    		<td></td>
-
 
207
					<td colspan="3">
-
 
208
					<div  class="collapse p-3" id="focused-$index">
-
 
209
					 <table class="table  table-advance" >
-
 
210
	    			<tbody>
-
 
211
	    			  <tr>
-
 
212
				      <th>Item</th>
-
 
213
	    				<th>Pending Indent</th>
-
 
214
	    				<th>In Stock</th>
-
 
215
	    				<th>Shortage Qty</th>
-
 
216
	    			    <th>Availability</th>
-
 
217
						
-
 
218
	                 </tr>	
-
 
219
	                 
-
 
220
	                 #foreach($item in $focused.getValue()) 
-
 
221
	             
-
 
222
			          
-
 
223
			            <tr>
-
 
224
	    				<td>$item.getBrandName() $item.getModelName()  $item.getModelNumber() </td>
-
 
225
    					<td>$item.getPendingIndentQty()</td>
-
 
226
    					
-
 
227
    					
-
 
228
    					#if($item.getShortageQty() > $item.getGrnStockQty())
-
 
229
    				    <td style = "color:red" >$item.getGrnStockQty()</td>
-
 
230
    				    #else
-
 
231
    				      <td>$item.getGrnStockQty()</td>
-
 
232
    				    #end
-
 
233
    				    
-
 
234
    				    #if($item.getShortageQty() > 0 )
-
 
235
				     	<td>$item.getShortageQty()</td>	
-
 
236
				     	#else
-
 
237
				     	<td>0</td>	
-
 
238
				     	#end
-
 
239
						<td>$item.getAvailabitiy()</td>
-
 
240
						
-
 
241
	    				</tr>
-
 
242
		    	        
-
 
243
		    		  
-
 
244
		    		  #end
-
 
245
		    		 
-
 
246
		    		   
-
 
247
		    		   </tbody>
-
 
248
	                  </table>
-
 
249
			        </div>
-
 
250
					</td>
-
 
251
					
-
 
252
					
-
 
253
					</tr>
-
 
254
					#set($index=$index+1)
-
 
255
					#end
-
 
256
					
-
 
257
					
-
 
258
		    	    </tbody>
-
 
259
	             </table>
-
 
260
	        
-
 
261
	         </div>	
-
 
262
	      </div>
-
 
263
	
-
 
264
	  <div class = "row">
-
 
265
       <div class="col-lg-12">
-
 
266
	    	 <h5> In Stock </h5>
-
 
267
	             <table class="table  table-advance" id = "brand-instock">
-
 
268
	    			<tbody>
-
 
269
	    			  <tr>
-
 
270
	    			    <th>#</th>
-
 
271
				        <th>Brand</th>
-
 
272
				       
-
 
273
	                 </tr>	
-
 
274
	                 #set($index = 0)
-
 
275
	                 
-
 
276
	               #foreach($brand in $inStockBrandMap.entrySet())
-
 
277
						    
-
 
278
			         <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#brand-$index">	
-
 
279
			         <td class="expand-button"></td>	
-
 
280
		    	         <td>$brand.getKey()</td>
-
 
281
		    	         
-
 
282
		    		   </tr>	
-
 
283
			      
-
 
284
		    		
-
 
285
		    		<tr class="hide-table-padding">
-
 
286
		    		<td></td>
-
 
287
					<td colspan="3">
-
 
288
					<div  class="collapse p-3" id="brand-$index">
-
 
289
					 <table class="table  table-advance" >
-
 
290
	    			<tbody>
-
 
291
	    			  <tr>
-
 
292
				        <th width="36%">Item</th>
-
 
293
				        <th>Quantity</th>
-
 
294
						
-
 
295
	                 </tr>	
-
 
296
	                 
-
 
297
	                 #foreach($items in $brand.getValue()) 
-
 
298
	             
-
 
299
			            <tr>	
-
 
300
			              <td>$items.getItemDescription()</td>
-
 
301
		    	          <td>$items.getQty()</td>
-
 
302
		    	        
-
 
303
		    		   </tr>	
-
 
304
		    		  #end
-
 
305
		    		 
-
 
306
		    		   
-
 
307
		    		   </tbody>
-
 
308
	                  </table>
-
 
309
			        </div>
-
 
310
					</td>
-
 
311
					
-
 
312
					
-
 
313
					</tr>
-
 
314
					#set($index=$index+1)
-
 
315
					#end
-
 
316
					
-
 
317
					
-
 
318
		    	    </tbody>
-
 
319
	             </table>
-
 
320
	        
-
 
321
	         </div>	
-
 
322
	      </div>	
-
 
323
	
-
 
324
	
-
 
325
	
-
 
326
		  <div class = "row">
-
 
327
       <div class="col-lg-12">
-
 
328
	    	 <h5> Grn Pending </h5>
-
 
329
	             <table class="table  table-advance" id = "brand-grn">
-
 
330
	    			<tbody>
-
 
331
	    			  <tr>
-
 
332
	    			    <th>#</th>
-
 
333
				        <th>Brand</th>
-
 
334
				       
-
 
335
	                 </tr>	
-
 
336
	                 #set($index = 0)
-
 
337
	                 
-
 
338
	               #foreach($grnpending in $grnPendingBrandMap.entrySet())
-
 
339
						    
-
 
340
			         <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#grn-$index">	
-
 
341
			         <td class="expand-button"></td>	
-
 
342
		    	         <td>$grnpending.getKey()</td>
-
 
343
		    	         
-
 
344
		    		   </tr>	
-
 
345
			      
-
 
346
		    		
-
 
347
		    		<tr class="hide-table-padding">
-
 
348
		    		<td></td>
-
 
349
					<td colspan="3">
-
 
350
					<div  class="collapse p-3" id="grn-$index">
-
 
351
					 <table class="table  table-advance" >
-
 
352
	    			<tbody>
-
 
353
	    			  <tr>
-
 
354
				        <th width="36%">Item</th>
-
 
355
				        <th>Quantity</th>
-
 
356
						
-
 
357
	                 </tr>	
-
 
358
	                 
-
 
359
	                 #foreach($items in $grnpending.getValue()) 
-
 
360
	             
-
 
361
			            <tr>	
-
 
362
			              <td>$items.getItemDescription()</td>
-
 
363
		    	          <td>$items.getQty()</td>
-
 
364
		    	        
-
 
365
		    		   </tr>	
-
 
366
		    		  #end
-
 
367
		    		 
-
 
368
		    		   
-
 
369
		    		   </tbody>
-
 
370
	                  </table>
-
 
371
			        </div>
-
 
372
					</td>
-
 
373
					
-
 
374
					
-
 
375
					</tr>
-
 
376
					#set($index=$index+1)
-
 
377
					#end
-
 
378
					
-
 
379
					
-
 
380
		    	    </tbody>
-
 
381
	             </table>
-
 
382
	        
-
 
383
	         </div>	
-
 
384
	      </div>
-
 
385
	      
-
 
386
	      
-
 
387
	      
-
 
388
	      	  <div class = "row">
-
 
389
       <div class="col-lg-12">
-
 
390
	    	 <h5> Pending Indent </h5>
-
 
391
	             <table class="table  table-advance" id = "brand-pending">
-
 
392
	    			<tbody>
-
 
393
	    			  <tr>
-
 
394
	    			    <th>#</th>
-
 
395
				        <th>Brand</th>
-
 
396
				       
-
 
397
	                 </tr>	
-
 
398
	                 #set($index = 0)
-
 
399
	                 
-
 
400
	               #foreach($pendingIndent in $pendingIndentBrandMap.entrySet())
-
 
401
						    
-
 
402
			         <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#pending-$index">	
-
 
403
			         <td class="expand-button"></td>	
-
 
404
		    	         <td>$pendingIndent.getKey()</td>
-
 
405
		    	         
-
 
406
		    		   </tr>	
-
 
407
			      
-
 
408
		    		
-
 
409
		    		<tr class="hide-table-padding">
-
 
410
		    		<td></td>
-
 
411
					<td colspan="3">
-
 
412
					<div  class="collapse p-3" id="pending-$index">
-
 
413
					 <table class="table  table-advance" >
-
 
414
	    			<tbody>
-
 
415
	    			  <tr>
-
 
416
				        <th width="36%">Item</th>
-
 
417
				        <th>Quantity</th>
-
 
418
						
-
 
419
	                 </tr>	
-
 
420
	                 
-
 
421
	                 #foreach($items in $pendingIndent.getValue()) 
-
 
422
	             
-
 
423
			            <tr>	
-
 
424
			              <td>$items.getItemDescription()</td>
-
 
425
		    	          <td>$items.getQty()</td>
-
 
426
		    	        
-
 
427
		    		   </tr>	
-
 
428
		    		  #end
-
 
429
		    		 
-
 
430
		    		   
-
 
431
		    		   </tbody>
-
 
432
	                  </table>
-
 
433
			        </div>
-
 
434
					</td>
-
 
435
					
-
 
436
					
-
 
437
					</tr>
-
 
438
					#set($index=$index+1)
-
 
439
					#end
-
 
440
					
-
 
441
					
-
 
442
		    	    </tbody>
-
 
443
	             </table>
-
 
444
	        
-
 
445
	         </div>	
-
 
446
	      </div>
-
 
447
	#end
53
  
448
  
54
  	<div class="modal-footer">
449
  	<div class="modal-footer">
55
		        <button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
450
		        <button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
56
	
451
	
57
	   </div>
452
	   </div>
58
453