Subversion Repositories SmartDukaan

Rev

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