Subversion Repositories SmartDukaan

Rev

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