Subversion Repositories SmartDukaan

Rev

Rev 34404 | Rev 34425 | 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>
34397 ranu 37
 
38
<style>
39
	.well {
40
		background-color: #f9f9f9;
41
		border: 1px solid #ddd;
42
		border-radius: 12px;
43
		padding: 5px 20px;
44
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
45
	}
46
 
47
	.well h4 {
48
		margin-bottom: 10px;
49
		font-weight: 500;
50
		border-bottom: 1px solid #ccc;
51
		padding-bottom: 6px;
52
	}
53
 
54
	.well ul li {
34412 ranu 55
		list-style: decimal;
34397 ranu 56
		padding: 4px 0;
57
		font-weight: 400;
58
		font-size: 16px;
59
		border-bottom: 1px dashed #eee;
60
	}
61
 
34404 ranu 62
	.well .currency {
63
		font-weight: 500
64
	}
65
 
34397 ranu 66
</style>
67
 
30044 tejbeer 68
 
69
 
70
 
71
 
30003 tejbeer 72
 <div class="modal-header">
31897 tejbeer 73
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
30004 tejbeer 74
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
30003 tejbeer 75
	        </h4>
76
       </div>
34384 ranu 77
<div class="modal-body" style="max-height:70vh;overflow:auto;">
34389 ranu 78
	<div class="row">
79
		<div class="col-md-12">
34397 ranu 80
			<div class="well row" style="margin: 0;">
81
				<h4>Summary </h4>
34412 ranu 82
				<div class="col-md-4">
83
					<h5>Fund Detail</h5>
34397 ranu 84
					<ul>
34412 ranu 85
						<li>Total Limit <span class="currency"> $sdCreditRequirement.getLimit()</span></li>
86
						<li>Utilization <span class="currency"> $sdCreditRequirement.getUtilizedAmount()</span></li>
87
						<li>Available Limit <span class="currency"> $sdCreditRequirement.getAvailableLimit()</span></li>
88
						<li>Wallet Amount <span class="currency"> $userWallet.getAmount()</span></li>
89
					</ul>
90
				</div>
91
				<div class="col-md-4">
92
					<h5>Investment Detail</h5>
93
					<ul>
34402 ranu 94
						#if($shortInvest > 0)
34412 ranu 95
							<li>Short Investment -: <span class="currency">$shortInvest</span></li>
34402 ranu 96
						#end
34412 ranu 97
 
98
						<li>DRR / Today Purchase <span class="currency"> $purchaseTargetFtd </span> /
34397 ranu 99
							#if($purchasedFtd < $purchaseTargetFtd)
100
								<span style="color: red;"> <span class="currency"> $purchasedFtd</span> </span>
101
							#else
102
								<span style="color: green;"> <span class="currency"> $purchasedFtd</span> </span>
103
							#end
104
						</li>
105
 
106
					</ul>
34412 ranu 107
 
108
					<h5>Recoverable Amount </h5>
109
					<ul>
110
						<li>(Short Invest + Loan Over due) <br>
111
							<span class="currency">$shortInvest</span> + <span
112
									class="currency">$totalPendingAmount</span>
113
						</li>
114
					</ul>
115
 
34397 ranu 116
				</div>
34412 ranu 117
 
118
				<div class="col-md-4">
119
					<h5>Target</h5>
34397 ranu 120
					<ul>
34412 ranu 121
						<li>Monthly Target -: <span class="currency">$monthlyTarget.purchaseTarget</span></li>
122
						<li>Purchase Mtd -: <span class="currency">$purchaseMtd</span></li>
123
						<li>Sale Mtd -: <span class="currency">$saleMtd</span></li>
124
					</ul>
34397 ranu 125
 
126
				</div>
127
 
128
 
129
			</div>
130
		</div>
131
		<div class="clearfix"></div>
132
		<div class="col-md-12">
34412 ranu 133
 
34389 ranu 134
			#if($brand != "undefined")
34397 ranu 135
				<hr style="margin-top:25px; margin-bottom: 10px;">
34389 ranu 136
				<div class="row">
137
					<div class="col-md-12">
138
						<ul class="nav nav-pills">
139
							#foreach($bnd in $brands)
34412 ranu 140
								<li class="brandFocusedStockDetail" data-brand="$bnd" data-fofoid="$fofoId">
141
									#if(!$brandToMtdMap.containsKey($bnd))
142
										<a style="color: red;" href="#tab_$bnd">$bnd</a>
143
									#else
144
										<a href="#tab_$bnd">$bnd</a>
145
									#end
34389 ranu 146
								</li>
147
							#end
34412 ranu 148
							<li><a href="#collapse1" data-toggle="collapse"
149
								   style="background-color: #ccc;color: black;">In Stock </a></li>
150
							<li><a href="#collapse2" data-toggle="collapse"
151
								   style="background-color: #ccc;color: black;">Sales </a></li>
152
 
153
 
34389 ranu 154
						</ul>
34412 ranu 155
						<hr>
156
						<div class="col-md-12 well panel-collapse collapse" id="collapse1">
157
							<h4>In Stock </h4>
158
							<div id="itemWiseBrandStockDetail"></div>
159
						</div>
160
						<div id="collapse2" class="panel-collapse collapse col-md-12 well">
161
							<h4>Seven Days Sales</h4>
162
							<table class="table table-striped table-advance table-hover" style="width:100%">
163
								<thead>
164
								<tr>
165
									<th style="width: 25%;">Item</th>
166
									<th style="width: 9%;">Brand</th>
167
									<th style="width: 15%;">Sold Qty</th>
168
								</tr>
169
								</thead>
170
								<tbody>
171
									#foreach($catalog in $sevenDayAboveSoldsCatalogs)
172
									<tr>
173
										<td>$catalog.getModelNumber()</td>
174
										<td>$catalog.getBrand()</td>
175
										<td>$catalog.getSoldQty()</td>
176
									</tr>
177
									#end
178
								</tbody>
179
							</table>
180
							<h4>14 Days Sales</h4>
181
							<table class="table table-striped table-advance table-hover" style="width:100%">
182
								<thead>
183
								<tr>
184
									<th style="width: 25%;">Item</th>
185
									<th style="width: 9%;">Brand</th>
186
									<th style="width: 15%;">Sold Qty</th>
187
								</tr>
188
								</thead>
189
								<tbody>
190
									#foreach($catalog in $fourteenDayAboveSoldsCatalogs)
191
									<tr>
192
										<td>$catalog.getModelNumber()</td>
193
										<td>$catalog.getBrand()</td>
194
										<td>$catalog.getSoldQty()</td>
195
									</tr>
196
									#end
197
								</tbody>
198
							</table>
199
							<h4>21 Days Sales</h4>
200
							<table class="table table-striped table-advance table-hover" style="width:100%">
201
								<thead>
202
								<tr>
203
									<th style="width: 25%;">Item</th>
204
									<th style="width: 9%;">Brand</th>
205
									<th style="width: 15%;">Sold Qty</th>
206
								</tr>
207
								</thead>
208
								<tbody>
209
									#foreach($catalog in $twentyOneDayAboveSoldsCatalogs)
210
									<tr>
211
										<td>$catalog.getModelNumber()</td>
212
										<td>$catalog.getBrand()</td>
213
										<td>$catalog.getSoldQty()</td>
214
									</tr>
215
									#end
216
								</tbody>
217
							</table>
218
							<h4>28 Days Sales</h4>
219
							<table class="table table-striped table-advance table-hover" style="width:100%">
220
								<thead>
221
								<tr>
222
									<th style="width: 25%;">Item</th>
223
									<th style="width: 9%;">Brand</th>
224
									<th style="width: 15%;">Sold Qty</th>
225
								</tr>
226
								</thead>
227
								<tbody>
228
									#foreach($catalog in $twentyEightDayAboveSoldsCatalogs)
229
									<tr>
230
										<td>$catalog.getModelNumber()</td>
231
										<td>$catalog.getBrand()</td>
232
										<td>$catalog.getSoldQty()</td>
233
									</tr>
234
									#end
235
								</tbody>
236
							</table>
34035 ranu 237
 
34412 ranu 238
						</div>
34389 ranu 239
						<div>
240
							#foreach($bnd in $brands)
241
								<div id="tab_$bnd" class="clearfix"></div>
242
								#set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))
243
								<h4>$bnd</h4>
244
								<table class="table table-striped table-advance table-hover" style="width:100%">
245
									<thead>
246
									<tr>
34397 ranu 247
										<th style="width: 25%;">Item</th>
248
										<th style="width: 9%;">Status</th>
249
										<th style="width: 13%;">Our Stock</th>
250
										<th style="width: 15%;">P-Fullfilled</th>
251
										<th style="width: 15%;">P-Shortage</th>
252
										<th style="width: 15%;">P-CurrentQty</th>
253
										<th style="width: 8%;">Aging</th>
34389 ranu 254
										##										<th>Action</th>
255
									</tr>
256
									</thead>
257
									<tbody>
258
										#foreach($statusKey in $statusModelMap.keySet())
259
											#foreach($stocklist in $statusModelMap.get($statusKey))
260
											<tr>
34397 ranu 261
												#if($stocklist.getPartnerCurrentAvailability() < 1)
262
													<td style="color: red;">$stocklist.getModelNumber()</td>
263
												#else
264
													<td>$stocklist.getModelNumber()</td>
265
												#end
34389 ranu 266
												<td>$stocklist.getStatus()</td>
267
												<td>$stocklist.getNetAvailability()</td>
268
												<td>$stocklist.getPartnerStockAvailability()</td>
269
												<td>$stocklist.getPartnerShortageStock()</td>
270
												<td>$stocklist.getPartnerCurrentAvailability()</td>
34397 ranu 271
												<td>$stocklist.getExceedDays()</td>
34389 ranu 272
												##												<td>
273
												##													<button class="btn btn-sm btn-success add-to-cart-btn"
274
												##															data-catalogid="$stocklist.getCatalogId()"
275
												##															data-model="$stocklist.getModelNumber()">
276
												##														Add
277
												##													</button>
278
												##												</td>
279
											</tr>
280
											#end
281
										#end
282
									</tbody>
283
								</table>
284
							#end
285
						</div>
286
					</div>
287
				</div>
31417 amit.gupta 288
 
34389 ranu 289
			#end
34384 ranu 290
 
291
 
34389 ranu 292
		</div>
293
		##		<div class="col-md-3">
294
		##			<div id="cart-sidebar" style=" width:100%; background:#f8f9fa; border:1px solid #ccc; padding:5px; border-radius:6px;">
295
		##				<h5>Cart</h5>
296
		##				<div id="custom-cart-section" class="well" style="padding: 4px;"></div>
297
		##			</div>
298
		##
299
		##		</div>
300
	</div>
31417 amit.gupta 301
 
34384 ranu 302
 
34389 ranu 303
</div>
30044 tejbeer 304
 
305
 
34087 ranu 306
<div class="modal-footer">
307
	<button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
308
 
309
</div>
34389 ranu 310