Subversion Repositories SmartDukaan

Rev

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

Rev 31897 Rev 34035
Line 24... Line 24...
24
}
24
}
25
.accordion-toggle.collapsed .expand-button:after
25
.accordion-toggle.collapsed .expand-button:after
26
{
26
{
27
  content: '+';
27
  content: '+';
28
}
28
}
-
 
29
 
-
 
30
   .tab-inactive {
-
 
31
	   background-color: #cccccc47;
-
 
32
	   border-radius: 4px;
-
 
33
   }
-
 
34
 
29
</style> 
35
</style>
30
 
36
 
31
 
37
 
32
 
38
 
33
 
39
 
34
 <div class="modal-header">
40
 <div class="modal-header">
35
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
41
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
36
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
42
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
37
	        </h4>
43
	        </h4>
38
       </div>
44
       </div>
39
  <div class="modal-body" style="height:400px;overflow:auto;">
45
  <div class="modal-body" style="height:400px;overflow:auto;">
-
 
46
 
40
  
47
  
41
  #if($brand != "undefined")
48
  #if($brand != "undefined")
42
  <div class = "row">
49
  <div class = "row">
43
       <div class="col-lg-12">
-
 
44
 
50
 
45
 <h5> Focused Model </h5>
51
	  <div class="col-md-12">
-
 
52
		  <ul class="nav nav-pills">
-
 
53
			  #foreach($bnd in $brands)
-
 
54
				  <li class="tab-inactive #if($bnd == $brand) active #end">
-
 
55
					  <a data-toggle="pill" href="#tab_$bnd">$bnd</a>
-
 
56
				  </li>
-
 
57
			  #end
-
 
58
		  </ul>
-
 
59
 
-
 
60
		  <hr>
-
 
61
 
-
 
62
		  <div class="tab-content">
-
 
63
			  #foreach($bnd in $brands)
-
 
64
				  #set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))
-
 
65
				  <div id="tab_$bnd" class="tab-pane fade #if($bnd == $brand) in active #end">
-
 
66
					  <!-- Subtabs -->
-
 
67
					  <ul class="nav nav-pills">
-
 
68
						  #if($statusModelMap && !$statusModelMap.isEmpty())
-
 
69
							  #foreach($statusKey in $statusModelMap.keySet())
-
 
70
								  <li class="tab-inactive #if($foreach.index == 0) active #end">
-
 
71
									  <a data-toggle="pill" href="#tab_${bnd}_$statusKey">$statusKey</a>
-
 
72
								  </li>
-
 
73
							  #end
-
 
74
						  #else
-
 
75
							  <li>No data available</li>
-
 
76
						  #end
-
 
77
					  </ul>
-
 
78
 
-
 
79
					  <!-- Subtab Content -->
-
 
80
					  <div class="tab-content">
-
 
81
						  #foreach($statusKey in $statusModelMap.keySet())
-
 
82
							  <div id="tab_${bnd}_$statusKey"
-
 
83
								   class="tab-pane fade #if($foreach.index == 0) in active #end">
-
 
84
								  <table id="table_$bnd_$statusKey"
46
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
85
										 class="table table-striped table-advance table-hover" style="width:100%">
47
				 <thead>
86
									  <thead>
48
	    				<tr>
87
									  <tr>
49
	    				<th>Item</th>
88
										  <th>Item</th>
50
	    				<th>Pending Indent</th>
89
										  <th>Brand</th>
51
	    				<th>In Stock</th>
90
										  <th>Our Stock</th>
-
 
91
										  <th>P-Fullfilled</th>
52
	    				<th>Shortage Qty</th>
92
										  <th>P-Shortage</th>
53
	    			    <th>Availability</th>
93
										  <th>P-CurrentQty</th>
-
 
94
										  <th>Status</th>
54
	    				
95
										  <th>Aging</th>
55
	    				</tr>
96
									  </tr>
56
				 </thead>
97
									  </thead>
57
	    			<tbody>
98
									  <tbody>
58
	    		
-
 
59
	    			    #foreach($shortageList in $focusedModelShortageList)
99
										  #foreach($stocklist in $statusModelMap.get($statusKey))
60
	    				<tr>
100
										  <tr>
61
	    				<td>$shortageList.getBrandName() $shortageList.getModelName()  $shortageList.getModelNumber() </td>
101
											  <td>$stocklist.getModelNumber()</td>
62
    					<td>$shortageList.getPendingIndentQty()</td>
102
											  <td>$stocklist.getBrand()</td>
63
    					
103
											  <td>$stocklist.getNetAvailability()</td>
64
    					
104
											  <td>$stocklist.getPartnerStockAvailability()</td>
65
    					#if($shortageList.getShortageQty() > $shortageList.getGrnStockQty())
105
											  <td>$stocklist.getPartnerShortageStock()</td>
66
							<td style="color:red">$shortageList.getGrnStockQty()</td>
106
											  <td>$stocklist.getPartnerCurrentAvailability()</td>
67
						#else
107
											  <td>$stocklist.getStatus()</td>
68
							<td>$shortageList.getGrnStockQty()</td>
108
											  <td>$stocklist.getExceedDays()</td>
-
 
109
										  </tr>
69
						#end
110
										  #end
70
 
-
 
71
							#if($shortageList.getShortageQty() > 0 )
111
									  </tbody>
72
								<td>$shortageList.getShortageQty()</td>
112
								  </table>
-
 
113
							  </div>
73
							#else
114
						  #end
74
								<td>0</td>
115
					  </div>
-
 
116
				  </div>
75
							#end
117
			  #end
76
							<td>$shortageList.getAvailability()</td>
118
		  </div>
-
 
119
	  </div>
77
 
120
 
78
						</tr>
-
 
79
 
121
 
-
 
122
 
-
 
123
 
-
 
124
	  ##		  <div class="col-lg-12">
-
 
125
	  ##
-
 
126
	  ##		   <h5> Focused Model </h5>
-
 
127
	  ##			<table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
-
 
128
	  ##				 <thead>
-
 
129
	  ##						<tr>
-
 
130
	  ##						<th>Item</th>
-
 
131
	  ##						<th>Pending Indent</th>
-
 
132
	  ##						<th>In Stock</th>
-
 
133
	  ##						<th>Shortage Qty</th>
-
 
134
	  ##						<th>Availability</th>
-
 
135
	  ##
-
 
136
	  ##						</tr>
-
 
137
	  ##				 </thead>
-
 
138
	  ##				 <tbody>
-
 
139
	  ##
-
 
140
	  ##						#foreach($shortageList in $focusedModelShortageList)
-
 
141
	  ##						<tr>
-
 
142
	  ##						<td>$shortageList.getBrandName() $shortageList.getModelName()  $shortageList.getModelNumber() </td>
-
 
143
	  ##						<td>$shortageList.getPendingIndentQty()</td>
-
 
144
	  ##
-
 
145
	  ##
-
 
146
	  ##						#if($shortageList.getShortageQty() > $shortageList.getGrnStockQty())
-
 
147
	  ##							<td style="color:red">$shortageList.getGrnStockQty()</td>
-
 
148
	  ##						#else
-
 
149
	  ##							<td>$shortageList.getGrnStockQty()</td>
80
						#end
150
	  ##						#end
-
 
151
	  ##
-
 
152
	  ##							#if($shortageList.getShortageQty() > 0 )
-
 
153
	  ##								<td>$shortageList.getShortageQty()</td>
-
 
154
	  ##							#else
-
 
155
	  ##								<td>0</td>
-
 
156
	  ##							#end
-
 
157
	  ##							<td>$shortageList.getAvailability()</td>
-
 
158
	  ##
-
 
159
	  ##						</tr>
-
 
160
	  ##
81
	    				
161
	  ##						#end
-
 
162
	  ##
82
	    				</tbody>
163
	  ##						</tbody>
83
	  </table>
164
	  ##			  </table>
84
	  
165
	  ##
85
	  	         </div>	
166
	  ##	   </div>
86
	      </div>	
167
  </div>
87
	      
168
	      
88
	      
169
	      
89
	      
170
	      
90
	       <div class = "row">
171
	       <div class = "row">
-
 
172
			   <hr style="border-top: 2px solid #ccc">
91
       <div class="col-lg-12">
173
       <div class="col-lg-12">
92
 
174
 
93
 <h5> In Stock </h5>
175
 <h5> In Stock </h5>
94
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
176
 <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
95
				 <thead>
177
				 <thead>
Line 176... Line 258...
176
	  	         </div>	
258
	  	         </div>	
177
	      </div>	
259
	      </div>	
178
	  </div>
260
	  </div>
179
	
261
	
180
	#else
262
	#else
181
	
-
 
182
	
263
 
183
	
264
 
184
<div class = "row">
265
	<div class="row">
185
       <div class="col-lg-12">
266
       <div class="col-lg-12">
186
	    	 <h5> Focused Model </h5>
267
	    	 <h5> Focused Model </h5>
187
	             <table class="table  table-advance" id = "brand-focused">
268
	             <table class="table  table-advance" id = "brand-focused">
188
	    			<tbody>
269
	    			<tbody>
189
	    			  <tr>
270
	    			  <tr>