Subversion Repositories SmartDukaan

Rev

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