Subversion Repositories SmartDukaan

Rev

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

Rev 34095 Rev 34384
Line 41... Line 41...
41
 <div class="modal-header">
41
 <div class="modal-header">
42
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
42
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
43
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
43
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
44
	        </h4>
44
	        </h4>
45
       </div>
45
       </div>
46
  <div class="modal-body" style="height:400px;overflow:auto;">
46
<div class="modal-body" style="max-height:70vh;overflow:auto;">
47
 
47
 
48
  
48
  
49
  #if($brand != "undefined")
49
  #if($brand != "undefined")
50
  <div class = "row">
50
  <div class = "row">
51
 
-
 
52
	  <div class="col-md-12">
51
	  <div class="col-md-12">
53
		  <ul class="nav nav-pills">
52
		  <ul class="nav nav-pills">
54
			  #foreach($bnd in $brands)
53
			  #foreach($bnd in $brands)
55
				  <li class="tab-inactive #if($bnd == $brand) active #end brandFocusedStockDetail" data-brand="$bnd"
54
				  <li class="tab-inactive #if($bnd == $brand) active #end brandFocusedStockDetail" data-brand="$bnd"
56
					  data-fofoid="$fofoId">
55
					  data-fofoid="$fofoId">
Line 60... Line 59...
60
		  </ul>
59
		  </ul>
61
 
60
 
62
		  <hr>
61
		  <hr>
63
 
62
 
64
		  <div class="tab-content">
63
		  <div class="tab-content">
-
 
64
 
65
			  #foreach($bnd in $brands)
65
			  #foreach($bnd in $brands)
66
				  #set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))
66
				  #set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))
-
 
67
 
67
				  <div id="tab_$bnd" class="tab-pane fade #if($bnd == $brand) in active #end">
68
				  <div id="tab_$bnd" class="tab-pane fade #if($bnd == $brand) in active #end">
68
					  <!-- Subtabs -->
69
					  <!-- Subtabs -->
69
					  <ul class="nav nav-pills">
-
 
70
						  #if($statusModelMap && !$statusModelMap.isEmpty())
-
 
71
							  #foreach($statusKey in $statusModelMap.keySet())
70
					  #foreach($statusKey in $statusModelMap.keySet())
72
								  <li class="tab-inactive #if($foreach.index == 0) active #end">
71
						  <h4 style="margin-bottom: 7px;">$statusKey</h4>
73
									  <a data-toggle="pill" href="#tab_${bnd}_$statusKey">$statusKey</a>
72
						  <table class="table table-striped table-advance table-hover" style="width:100%">
74
								  </li>
73
							  <thead>
75
							  #end
74
							  <tr>
76
						  #else
75
								  <th>Item</th>
77
							  <li>No data available</li>
76
								  <th>Our Stock</th>
78
						  #end
-
 
79
					  </ul>
-
 
80
 
-
 
81
					  <!-- Subtab Content -->
-
 
82
					  <div class="tab-content">
-
 
83
						  #foreach($statusKey in $statusModelMap.keySet())
-
 
84
							  <div id="tab_${bnd}_$statusKey"
-
 
85
								   class="tab-pane fade #if($foreach.index == 0) in active #end">
-
 
86
								  <table id="table_$bnd_$statusKey"
77
								  <th>P-Fullfilled</th>
87
										 class="table table-striped table-advance table-hover" style="width:100%">
-
 
88
									  <thead>
78
								  <th>P-Shortage</th>
89
									  <tr>
-
 
90
										  <th>Item</th>
79
								  <th>P-CurrentQty</th>
91
										  <th>Our Stock</th>
80
								  <th>7 Days Sold Qty</th>
92
										  <th>P-Fullfilled</th>
81
								  <th>14 Days Sold Qty</th>
93
										  <th>P-Shortage</th>
82
								  <th>21 Days Sold Qty</th>
94
										  <th>P-CurrentQty</th>
83
								  <th>28 Days Sold Qty</th>
95
										  <th>Aging</th>
84
								  <th>Aging</th>
96
									  </tr>
85
							  </tr>
97
									  </thead>
86
							  </thead>
98
									  <tbody>
87
							  <tbody>
-
 
88
 
99
										  #foreach($stocklist in $statusModelMap.get($statusKey))
89
								  #foreach($stocklist in $statusModelMap.get($statusKey))
100
										  <tr>
90
								  <tr>
-
 
91
									  #if($stocklist.getExceedDays() >= 15)
-
 
92
										  <td style="color: red;">$stocklist.getModelNumber()</td>
-
 
93
									  #else
101
											  <td>$stocklist.getModelNumber()</td>
94
										  <td>$stocklist.getModelNumber()</td>
-
 
95
									  #end
-
 
96
 
102
											  <td>$stocklist.getNetAvailability()</td>
97
									  <td>$stocklist.getNetAvailability()</td>
103
											  <td>$stocklist.getPartnerStockAvailability()</td>
98
									  <td>$stocklist.getPartnerStockAvailability()</td>
104
											  <td>$stocklist.getPartnerShortageStock()</td>
99
									  <td>$stocklist.getPartnerShortageStock()</td>
105
											  <td>$stocklist.getPartnerCurrentAvailability()</td>
100
									  <td>$stocklist.getPartnerCurrentAvailability()</td>
-
 
101
									  #if($sevenDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty())
-
 
102
										  <td>$sevenDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty()</td>
-
 
103
									  #else
106
											  <td>$stocklist.getExceedDays()</td>
104
										  <td>-</td>
-
 
105
									  #end
-
 
106
									  #if($fourteenDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty())
-
 
107
										  <td>$fourteenDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty()</td>
-
 
108
									  #else
107
										  </tr>
109
										  <td>-</td>
108
										  #end
110
									  #end
-
 
111
									  #if($twentyOneDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty())
-
 
112
										  <td>$twentyOneDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty()</td>
-
 
113
									  #else
-
 
114
										  <td>-</td>
109
									  </tbody>
115
									  #end
-
 
116
									  #if($twentyEightDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty())
-
 
117
										  <td>$twentyEightDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty()</td>
110
								  </table>
118
									  #else
-
 
119
										  <td>-</td>
-
 
120
									  #end
-
 
121
									  <td>$stocklist.getExceedDays()</td>
111
							  </div>
122
								  </tr>
112
						  #end
123
								  #end
-
 
124
							  </tbody>
113
					  </div>
125
						  </table>
-
 
126
					  #end
114
				  </div>
127
				  </div>
115
			  #end
128
			  #end
116
		  </div>
129
		  </div>
117
	  </div>
130
	  </div>
118
 
-
 
119
 
-
 
120
 
-
 
121
 
-
 
122
	  ##		  <div class="col-lg-12">
-
 
123
	  ##
-
 
124
	  ##		   <h5> Focused Model </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>Pending Indent</th>
-
 
130
	  ##						<th>In Stock</th>
-
 
131
	  ##						<th>Shortage Qty</th>
-
 
132
	  ##						<th>Availability</th>
-
 
133
	  ##
-
 
134
	  ##						</tr>
-
 
135
	  ##				 </thead>
-
 
136
	  ##				 <tbody>
-
 
137
	  ##
-
 
138
	  ##						#foreach($shortageList in $focusedModelShortageList)
-
 
139
	  ##						<tr>
-
 
140
	  ##						<td>$shortageList.getBrandName() $shortageList.getModelName()  $shortageList.getModelNumber() </td>
-
 
141
	  ##						<td>$shortageList.getPendingIndentQty()</td>
-
 
142
	  ##
-
 
143
	  ##
-
 
144
	  ##						#if($shortageList.getShortageQty() > $shortageList.getGrnStockQty())
-
 
145
	  ##							<td style="color:red">$shortageList.getGrnStockQty()</td>
-
 
146
	  ##						#else
-
 
147
	  ##							<td>$shortageList.getGrnStockQty()</td>
-
 
148
	  ##						#end
-
 
149
	  ##
-
 
150
	  ##							#if($shortageList.getShortageQty() > 0 )
-
 
151
	  ##								<td>$shortageList.getShortageQty()</td>
-
 
152
	  ##							#else
-
 
153
	  ##								<td>0</td>
-
 
154
	  ##							#end
-
 
155
	  ##							<td>$shortageList.getAvailability()</td>
-
 
156
	  ##
-
 
157
	  ##						</tr>
-
 
158
	  ##
-
 
159
	  ##						#end
-
 
160
	  ##
-
 
161
	  ##						</tbody>
-
 
162
	  ##			  </table>
-
 
163
	  ##
-
 
164
	  ##	   </div>
-
 
165
  </div>
131
  </div>
166
 
132
 
167
  #end
133
  #end
168
	  <div id="itemWiseBrandStockDetail">
134
	  <div id="itemWiseBrandStockDetail">
169
 
135