Subversion Repositories SmartDukaan

Rev

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

Rev 34384 Rev 34389
Line 42... Line 42...
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="max-height:70vh;overflow:auto;">
46
<div class="modal-body" style="max-height:70vh;overflow:auto;">
-
 
47
	<div class="row">
-
 
48
		<div class="col-md-12">
-
 
49
			#if($brand != "undefined")
-
 
50
				<div class="row">
-
 
51
					<div class="col-md-12">
-
 
52
						<ul class="nav nav-pills">
-
 
53
							#foreach($bnd in $brands)
-
 
54
								<li class="brandFocusedStockDetail" data-brand="$bnd"
-
 
55
									data-fofoid="$fofoId">
-
 
56
									<a href="#tab_$bnd">$bnd</a>
-
 
57
								</li>
-
 
58
							#end
-
 
59
						</ul>
-
 
60
 
-
 
61
						<hr>
-
 
62
 
-
 
63
						<div>
-
 
64
							#foreach($bnd in $brands)
-
 
65
								<div id="tab_$bnd" class="clearfix"></div>
-
 
66
								#set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))
-
 
67
								<h4>$bnd</h4>
-
 
68
								<table class="table table-striped table-advance table-hover" style="width:100%">
-
 
69
									<thead>
-
 
70
									<tr>
-
 
71
										<th>Item</th>
-
 
72
										<th>Status</th>
-
 
73
										<th>Our Stock</th>
-
 
74
										<th>P-Fullfilled</th>
-
 
75
										<th>P-Shortage</th>
-
 
76
										<th>P-CurrentQty</th>
-
 
77
										<th>Aging</th>
-
 
78
										##										<th>Action</th>
-
 
79
									</tr>
-
 
80
									</thead>
-
 
81
									<tbody>
-
 
82
										#foreach($statusKey in $statusModelMap.keySet())
-
 
83
											#foreach($stocklist in $statusModelMap.get($statusKey))
-
 
84
											<tr>
-
 
85
												<td>$stocklist.getModelNumber()</td>
-
 
86
												<td>$stocklist.getStatus()</td>
-
 
87
												<td>$stocklist.getNetAvailability()</td>
-
 
88
												<td>$stocklist.getPartnerStockAvailability()</td>
-
 
89
												<td>$stocklist.getPartnerShortageStock()</td>
-
 
90
												<td>$stocklist.getPartnerCurrentAvailability()</td>
-
 
91
												#if($stocklist.getExceedDays() >= 15)
-
 
92
													<td style="color: red;">$stocklist.getExceedDays()</td>
-
 
93
												#else
-
 
94
													<td>$stocklist.getExceedDays()</td>
-
 
95
												#end
-
 
96
												##												<td>
-
 
97
												##													<button class="btn btn-sm btn-success add-to-cart-btn"
-
 
98
												##															data-catalogid="$stocklist.getCatalogId()"
-
 
99
												##															data-model="$stocklist.getModelNumber()">
-
 
100
												##														Add
-
 
101
												##													</button>
-
 
102
												##												</td>
-
 
103
											</tr>
-
 
104
											#end
-
 
105
										#end
-
 
106
									</tbody>
-
 
107
								</table>
-
 
108
							#end
-
 
109
						</div>
-
 
110
					</div>
-
 
111
				</div>
-
 
112
 
-
 
113
			#end
-
 
114
			<div id="itemWiseBrandStockDetail">
-
 
115
 
-
 
116
			</div>
-
 
117
 
-
 
118
		</div>
-
 
119
		##		<div class="col-md-3">
-
 
120
		##			<div id="cart-sidebar" style=" width:100%; background:#f8f9fa; border:1px solid #ccc; padding:5px; border-radius:6px;">
-
 
121
		##				<h5>Cart</h5>
-
 
122
		##				<div id="custom-cart-section" class="well" style="padding: 4px;"></div>
-
 
123
		##			</div>
-
 
124
		##
-
 
125
		##		</div>
-
 
126
	</div>
47
 
127
 
48
  
-
 
49
  #if($brand != "undefined")
-
 
50
  <div class = "row">
-
 
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 brandFocusedStockDetail" data-brand="$bnd"
-
 
55
					  data-fofoid="$fofoId">
-
 
56
					  <a data-toggle="pill" href="#tab_$bnd">$bnd</a>
-
 
57
				  </li>
-
 
58
			  #end
-
 
59
		  </ul>
-
 
60
 
-
 
61
		  <hr>
-
 
62
 
-
 
63
		  <div class="tab-content">
-
 
64
 
-
 
65
			  #foreach($bnd in $brands)
-
 
66
				  #set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))
-
 
67
 
-
 
68
				  <div id="tab_$bnd" class="tab-pane fade #if($bnd == $brand) in active #end">
-
 
69
					  <!-- Subtabs -->
-
 
70
					  #foreach($statusKey in $statusModelMap.keySet())
-
 
71
						  <h4 style="margin-bottom: 7px;">$statusKey</h4>
-
 
72
						  <table class="table table-striped table-advance table-hover" style="width:100%">
-
 
73
							  <thead>
-
 
74
							  <tr>
-
 
75
								  <th>Item</th>
-
 
76
								  <th>Our Stock</th>
-
 
77
								  <th>P-Fullfilled</th>
-
 
78
								  <th>P-Shortage</th>
-
 
79
								  <th>P-CurrentQty</th>
-
 
80
								  <th>7 Days Sold Qty</th>
-
 
81
								  <th>14 Days Sold Qty</th>
-
 
82
								  <th>21 Days Sold Qty</th>
-
 
83
								  <th>28 Days Sold Qty</th>
-
 
84
								  <th>Aging</th>
-
 
85
							  </tr>
-
 
86
							  </thead>
-
 
87
							  <tbody>
-
 
88
 
-
 
89
								  #foreach($stocklist in $statusModelMap.get($statusKey))
-
 
90
								  <tr>
-
 
91
									  #if($stocklist.getExceedDays() >= 15)
-
 
92
										  <td style="color: red;">$stocklist.getModelNumber()</td>
-
 
93
									  #else
-
 
94
										  <td>$stocklist.getModelNumber()</td>
-
 
95
									  #end
-
 
96
 
-
 
97
									  <td>$stocklist.getNetAvailability()</td>
-
 
98
									  <td>$stocklist.getPartnerStockAvailability()</td>
-
 
99
									  <td>$stocklist.getPartnerShortageStock()</td>
-
 
100
									  <td>$stocklist.getPartnerCurrentAvailability()</td>
-
 
101
									  #if($sevenDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty())
-
 
102
										  <td>$sevenDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty()</td>
-
 
103
									  #else
-
 
104
										  <td>-</td>
-
 
105
									  #end
-
 
106
									  #if($fourteenDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty())
-
 
107
										  <td>$fourteenDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty()</td>
-
 
108
									  #else
-
 
109
										  <td>-</td>
-
 
110
									  #end
-
 
111
									  #if($twentyOneDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty())
-
 
112
										  <td>$twentyOneDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty()</td>
-
 
113
									  #else
-
 
114
										  <td>-</td>
-
 
115
									  #end
-
 
116
									  #if($twentyEightDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty())
-
 
117
										  <td>$twentyEightDayAboveSoldsCatalogsMap.get($stocklist.getCatalogId()).getSoldQty()</td>
-
 
118
									  #else
-
 
119
										  <td>-</td>
-
 
120
									  #end
-
 
121
									  <td>$stocklist.getExceedDays()</td>
-
 
122
								  </tr>
-
 
123
								  #end
-
 
124
							  </tbody>
-
 
125
						  </table>
-
 
126
					  #end
-
 
127
				  </div>
-
 
128
			  #end
-
 
129
		  </div>
-
 
130
	  </div>
-
 
131
  </div>
-
 
132
 
128
 
133
  #end
-
 
134
	  <div id="itemWiseBrandStockDetail">
-
 
135
 
-
 
136
	  </div>
-
 
137
  </div>
129
</div>
138
 
130
 
139
 
131
 
140
<div class="modal-footer">
132
<div class="modal-footer">
141
	<button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
133
	<button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
142
 
134
 
143
</div>
135
</div>
-
 
136