Subversion Repositories SmartDukaan

Rev

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