Subversion Repositories SmartDukaan

Rev

Rev 34487 | Rev 34491 | 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
    }
34437 ranu 8
 
9
   .mrt-0 {
10
	   margin-top: 0;
11
   }
30044 tejbeer 12
 
13
  #brand-instock tr.hide-table-padding td {
14
  padding: 0;
15
}
16
 
34095 ranu 17
 
18
   .expand-button {
30044 tejbeer 19
	position: relative;
20
}
21
 
22
.accordion-toggle .expand-button:after
23
{
24
  position: absolute;
25
  left:.75rem;
26
  top: 50%;
27
  transform: translate(0, -50%);
28
  content: '-';
29
}
30
.accordion-toggle.collapsed .expand-button:after
31
{
32
  content: '+';
33
}
34035 ranu 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
 
34437 ranu 66
	li.brandFocusedStockDetail a {
67
		padding: 8px 10px !important;
68
	}
69
 
34397 ranu 70
</style>
71
 
30044 tejbeer 72
 
73
 
74
 
75
 
30003 tejbeer 76
 <div class="modal-header">
31897 tejbeer 77
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
30004 tejbeer 78
	        <h4 class="modal-title"> Stock Info  ($customRetailer.getBusinessName())
34437 ranu 79
				<input type="hidden" id="fofo-id" value="$customRetailer.getPartnerId()">
34490 ranu 80
				<a id="mobileAppId" href="${rc.contextPath}/mobileapp?emailId=$customRetailer.getEmail()"
81
				   class="btn btn-default" target="_blank">Franchise App</a>
34437 ranu 82
 
83
			</h4>
30003 tejbeer 84
       </div>
34425 ranu 85
<div class="modal-body" style="max-height:75vh;overflow:auto;">
34389 ranu 86
	<div class="row">
34437 ranu 87
		<div class="col-md-8" style="max-height: 70vh;overflow: auto;">
34397 ranu 88
			<div class="well row" style="margin: 0;">
34425 ranu 89
				<h4>Summary
34490 ranu 90
					<a href="#" class="dashboard-view" data-fofoid="$sdCreditRequirement.getFofoId()">More Info</a>
34425 ranu 91
				</h4>
34412 ranu 92
				<div class="col-md-4">
93
					<h5>Fund Detail</h5>
34397 ranu 94
					<ul>
34412 ranu 95
						<li>Total Limit <span class="currency"> $sdCreditRequirement.getLimit()</span></li>
96
						<li>Utilization <span class="currency"> $sdCreditRequirement.getUtilizedAmount()</span></li>
97
						<li>Available Limit <span class="currency"> $sdCreditRequirement.getAvailableLimit()</span></li>
98
						<li>Wallet Amount <span class="currency"> $userWallet.getAmount()</span></li>
99
					</ul>
100
				</div>
101
				<div class="col-md-4">
102
					<h5>Investment Detail</h5>
103
					<ul>
34402 ranu 104
						#if($shortInvest > 0)
34412 ranu 105
							<li>Short Investment -: <span class="currency">$shortInvest</span></li>
34402 ranu 106
						#end
34412 ranu 107
 
108
						<li>DRR / Today Purchase <span class="currency"> $purchaseTargetFtd </span> /
34397 ranu 109
							#if($purchasedFtd < $purchaseTargetFtd)
110
								<span style="color: red;"> <span class="currency"> $purchasedFtd</span> </span>
111
							#else
112
								<span style="color: green;"> <span class="currency"> $purchasedFtd</span> </span>
113
							#end
114
						</li>
115
 
116
					</ul>
34412 ranu 117
 
118
					<h5>Recoverable Amount </h5>
119
					<ul>
34438 ranu 120
						<li>(Short Invest + Over due) <br>
34412 ranu 121
							<span class="currency">$shortInvest</span> + <span
122
									class="currency">$totalPendingAmount</span>
123
						</li>
124
					</ul>
125
 
34397 ranu 126
				</div>
34412 ranu 127
 
128
				<div class="col-md-4">
129
					<h5>Target</h5>
34397 ranu 130
					<ul>
34412 ranu 131
						<li>Monthly Target -: <span class="currency">$monthlyTarget.purchaseTarget</span></li>
132
						<li>Purchase Mtd -: <span class="currency">$purchaseMtd</span></li>
133
						<li>Sale Mtd -: <span class="currency">$saleMtd</span></li>
134
					</ul>
34397 ranu 135
 
136
				</div>
137
 
138
 
139
			</div>
34437 ranu 140
			<div class="clearfix"></div>
34389 ranu 141
			#if($brand != "undefined")
34397 ranu 142
				<hr style="margin-top:25px; margin-bottom: 10px;">
34389 ranu 143
				<div class="row">
144
					<div class="col-md-12">
145
						<ul class="nav nav-pills">
146
							#foreach($bnd in $brands)
34412 ranu 147
								<li class="brandFocusedStockDetail" data-brand="$bnd" data-fofoid="$fofoId">
34454 ranu 148
									#if(!$brandStatusWiseStockListMap.containsKey($bnd))
34412 ranu 149
										<a style="color: red;" href="#tab_$bnd">$bnd</a>
150
									#else
151
										<a href="#tab_$bnd">$bnd</a>
152
									#end
34389 ranu 153
								</li>
154
							#end
34412 ranu 155
							<li><a href="#collapse1" data-toggle="collapse"
156
								   style="background-color: #ccc;color: black;">In Stock </a></li>
157
							<li><a href="#collapse2" data-toggle="collapse"
158
								   style="background-color: #ccc;color: black;">Sales </a></li>
159
 
160
 
34389 ranu 161
						</ul>
34412 ranu 162
						<hr>
163
						<div class="col-md-12 well panel-collapse collapse" id="collapse1">
164
							<h4>In Stock </h4>
165
							<div id="itemWiseBrandStockDetail"></div>
166
						</div>
167
						<div id="collapse2" class="panel-collapse collapse col-md-12 well">
168
							<h4>Seven Days Sales</h4>
169
							<table class="table table-striped table-advance table-hover" style="width:100%">
170
								<thead>
171
								<tr>
172
									<th style="width: 25%;">Item</th>
173
									<th style="width: 9%;">Brand</th>
174
									<th style="width: 15%;">Sold Qty</th>
175
								</tr>
176
								</thead>
177
								<tbody>
178
									#foreach($catalog in $sevenDayAboveSoldsCatalogs)
179
									<tr>
180
										<td>$catalog.getModelNumber()</td>
181
										<td>$catalog.getBrand()</td>
182
										<td>$catalog.getSoldQty()</td>
183
									</tr>
184
									#end
185
								</tbody>
186
							</table>
187
							<h4>14 Days Sales</h4>
188
							<table class="table table-striped table-advance table-hover" style="width:100%">
189
								<thead>
190
								<tr>
191
									<th style="width: 25%;">Item</th>
192
									<th style="width: 9%;">Brand</th>
193
									<th style="width: 15%;">Sold Qty</th>
194
								</tr>
195
								</thead>
196
								<tbody>
197
									#foreach($catalog in $fourteenDayAboveSoldsCatalogs)
198
									<tr>
199
										<td>$catalog.getModelNumber()</td>
200
										<td>$catalog.getBrand()</td>
201
										<td>$catalog.getSoldQty()</td>
202
									</tr>
203
									#end
204
								</tbody>
205
							</table>
206
							<h4>21 Days Sales</h4>
207
							<table class="table table-striped table-advance table-hover" style="width:100%">
208
								<thead>
209
								<tr>
210
									<th style="width: 25%;">Item</th>
211
									<th style="width: 9%;">Brand</th>
212
									<th style="width: 15%;">Sold Qty</th>
213
								</tr>
214
								</thead>
215
								<tbody>
216
									#foreach($catalog in $twentyOneDayAboveSoldsCatalogs)
217
									<tr>
218
										<td>$catalog.getModelNumber()</td>
219
										<td>$catalog.getBrand()</td>
220
										<td>$catalog.getSoldQty()</td>
221
									</tr>
222
									#end
223
								</tbody>
224
							</table>
225
							<h4>28 Days Sales</h4>
226
							<table class="table table-striped table-advance table-hover" style="width:100%">
227
								<thead>
228
								<tr>
229
									<th style="width: 25%;">Item</th>
230
									<th style="width: 9%;">Brand</th>
231
									<th style="width: 15%;">Sold Qty</th>
232
								</tr>
233
								</thead>
234
								<tbody>
235
									#foreach($catalog in $twentyEightDayAboveSoldsCatalogs)
236
									<tr>
237
										<td>$catalog.getModelNumber()</td>
238
										<td>$catalog.getBrand()</td>
239
										<td>$catalog.getSoldQty()</td>
240
									</tr>
241
									#end
242
								</tbody>
243
							</table>
34035 ranu 244
 
34412 ranu 245
						</div>
34389 ranu 246
						<div>
247
							#foreach($bnd in $brands)
248
								<div id="tab_$bnd" class="clearfix"></div>
249
								#set($statusModelMap = $brandStatusWiseStockListMap.get($bnd))
250
								<h4>$bnd</h4>
251
								<table class="table table-striped table-advance table-hover" style="width:100%">
252
									<thead>
253
									<tr>
34487 ranu 254
										<th style="width: 21%;">Item</th>
34437 ranu 255
										<th style="width: 8%;">Status</th>
256
										<th style="width:7% ">DP</th>
34487 ranu 257
										<th style="width: 11%;">Our Stock</th>
258
										<th style="width: 13%;">P-Fullfilled</th>
259
										<th style="width: 13%;">P-Shortage</th>
260
										<th style="width: 13%;">P-CurrentQty</th>
261
										<th style="width: 7%;">Indent</th>
34437 ranu 262
										<th style="width: 7%;">Aging</th>
263
										<th>Action</th>
34389 ranu 264
									</tr>
265
									</thead>
266
									<tbody>
267
										#foreach($statusKey in $statusModelMap.keySet())
268
											#foreach($stocklist in $statusModelMap.get($statusKey))
269
											<tr>
34397 ranu 270
												#if($stocklist.getPartnerCurrentAvailability() < 1)
271
													<td style="color: red;">$stocklist.getModelNumber()</td>
272
												#else
273
													<td>$stocklist.getModelNumber()</td>
274
												#end
34462 tejus.loha 275
												<td>$stocklist.getStatus()</td>
34437 ranu 276
												<td>$tagListingsMap.get($stocklist.getCatalogId()).getSellingPrice()</td>
34389 ranu 277
												<td>$stocklist.getNetAvailability()</td>
278
												<td>$stocklist.getPartnerStockAvailability()</td>
279
												<td>$stocklist.getPartnerShortageStock()</td>
280
												<td>$stocklist.getPartnerCurrentAvailability()</td>
34487 ranu 281
												<td>
282
													#if($pendingIndentsDetailMap.get($stocklist.getCatalogId()).getQty())
283
														$pendingIndentsDetailMap.get($stocklist.getCatalogId()).getQty()
284
													#else
285
														-
286
													#end
287
												</td>
34397 ranu 288
												<td>$stocklist.getExceedDays()</td>
34437 ranu 289
												<td>
290
													<button class="btn btn-sm btn-success add-to-cart-btn"
34449 ranu 291
															data-toggle="modal"
292
															data-target="#poItemsDetail"
34437 ranu 293
															data-catalogid="$stocklist.getCatalogId()"
294
															data-model="$stocklist.getModelNumber()"
295
															data-price="$tagListingsMap.get($stocklist.getCatalogId()).getSellingPrice()">
296
														Add to PO
297
													</button>
298
												</td>
34389 ranu 299
											</tr>
300
											#end
301
										#end
302
									</tbody>
303
								</table>
304
							#end
305
						</div>
306
					</div>
307
				</div>
31417 amit.gupta 308
 
34389 ranu 309
			#end
34437 ranu 310
		</div>
311
		<div class="col-md-4">
312
			<div id="cart-sidebar"
313
				 style=" width:100%; background:#f8f9fa; border:1px solid #ccc; padding:5px; border-radius:6px;">
314
				<h5 class="mrt-0">Suggested Po Item List</h5>
315
				<div id="custom-cart-section" class="well"
316
					 style="padding: 4px;max-height: 55vh;overflow-y: auto;"></div>
317
				<button id="save-po-btn" class="btn btn-primary btn-block" style="margin-top:10px;">Save PO</button>
318
			</div>
319
		</div>
34384 ranu 320
 
34389 ranu 321
	</div>
31417 amit.gupta 322
 
34384 ranu 323
 
34389 ranu 324
</div>
30044 tejbeer 325
 
326
 
34087 ranu 327
<div class="modal-footer">
328
	<button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
329
 
330
</div>
34389 ranu 331