Subversion Repositories SmartDukaan

Rev

Rev 34087 | Rev 34384 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30044 tejbeer 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
 
34095 ranu 13
 
14
   .expand-button {
30044 tejbeer 15
	position: relative;
16
}
17
 
18
.accordion-toggle .expand-button:after
19
{
20
  position: absolute;
21
  left:.75rem;
22
  top: 50%;
23
  transform: translate(0, -50%);
24
  content: '-';
25
}
26
.accordion-toggle.collapsed .expand-button:after
27
{
28
  content: '+';
29
}
34035 ranu 30
 
31
   .tab-inactive {
32
	   background-color: #cccccc47;
33
	   border-radius: 4px;
34
   }
35
 
36
</style>
30044 tejbeer 37
 
38
 
39
 
40
 
30003 tejbeer 41
 <div class="modal-header">
31897 tejbeer 42
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
30004 tejbeer 43
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
30003 tejbeer 44
	        </h4>
45
       </div>
46
  <div class="modal-body" style="height:400px;overflow:auto;">
34035 ranu 47
 
30044 tejbeer 48
 
49
  #if($brand != "undefined")
50
  <div class = "row">
30003 tejbeer 51
 
34035 ranu 52
	  <div class="col-md-12">
53
		  <ul class="nav nav-pills">
54
			  #foreach($bnd in $brands)
34087 ranu 55
				  <li class="tab-inactive #if($bnd == $brand) active #end brandFocusedStockDetail" data-brand="$bnd"
56
					  data-fofoid="$fofoId">
34035 ranu 57
					  <a data-toggle="pill" href="#tab_$bnd">$bnd</a>
58
				  </li>
59
			  #end
60
		  </ul>
31417 amit.gupta 61
 
34035 ranu 62
		  <hr>
31417 amit.gupta 63
 
34035 ranu 64
		  <div class="tab-content">
65
			  #foreach($bnd in $brands)
66
				  #set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))
67
				  <div id="tab_$bnd" class="tab-pane fade #if($bnd == $brand) in active #end">
68
					  <!-- Subtabs -->
69
					  <ul class="nav nav-pills">
70
						  #if($statusModelMap && !$statusModelMap.isEmpty())
71
							  #foreach($statusKey in $statusModelMap.keySet())
72
								  <li class="tab-inactive #if($foreach.index == 0) active #end">
73
									  <a data-toggle="pill" href="#tab_${bnd}_$statusKey">$statusKey</a>
74
								  </li>
75
							  #end
76
						  #else
77
							  <li>No data available</li>
78
						  #end
79
					  </ul>
31417 amit.gupta 80
 
34035 ranu 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"
87
										 class="table table-striped table-advance table-hover" style="width:100%">
88
									  <thead>
89
									  <tr>
90
										  <th>Item</th>
91
										  <th>Our Stock</th>
92
										  <th>P-Fullfilled</th>
93
										  <th>P-Shortage</th>
94
										  <th>P-CurrentQty</th>
95
										  <th>Aging</th>
96
									  </tr>
97
									  </thead>
98
									  <tbody>
99
										  #foreach($stocklist in $statusModelMap.get($statusKey))
100
										  <tr>
101
											  <td>$stocklist.getModelNumber()</td>
102
											  <td>$stocklist.getNetAvailability()</td>
103
											  <td>$stocklist.getPartnerStockAvailability()</td>
104
											  <td>$stocklist.getPartnerShortageStock()</td>
105
											  <td>$stocklist.getPartnerCurrentAvailability()</td>
106
											  <td>$stocklist.getExceedDays()</td>
107
										  </tr>
108
										  #end
109
									  </tbody>
110
								  </table>
111
							  </div>
112
						  #end
113
					  </div>
114
				  </div>
115
			  #end
116
		  </div>
117
	  </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>
30044 tejbeer 166
 
34087 ranu 167
  #end
168
	  <div id="itemWiseBrandStockDetail">
30044 tejbeer 169
 
30003 tejbeer 170
	  </div>
34087 ranu 171
  </div>
34035 ranu 172
 
173
 
34087 ranu 174
<div class="modal-footer">
175
	<button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
176
 
177
</div>