Subversion Repositories SmartDukaan

Rev

Rev 28020 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28005 tejbeer 1
<div class="row">
2
 
3
 
4
	#if(!$inStock.isEmpty())
5
	<div class="col-lg-6">
6
		<table
7
			class="table table-striped table-advance table-hover partner-planning-details">
8
			<thead>
9
				<tr>
10
					<th>Partner Name</th>
11
					<th>Stock</th>
12
					<th>Sale</th>
13
 
14
				</tr>
15
			</thead>
16
			<tbody>
17
				#foreach($keyvalue in $inStock.entrySet())
18
				<tr>
19
					<td>$customRetailers.get($keyvalue.getKey()).getBusinessName()</td>
20
					<td>$keyvalue.getValue()</td>
21
					#if($fofoSale.get($keyvalue.getKey()))
22
					<td>$fofoSale.get($keyvalue.getKey())</td> #else
23
					<td>0</td> #end
24
				</tr>
25
				#end
26
 
27
			</tbody>
28
		</table>
29
	</div>
30
	#else
31
 
32
	<div class="col-lg-6">
33
		<table
34
			class="table table-striped table-advance table-hover partner-planning-details">
35
			<thead>
36
				<tr>
37
					<th>Partner Name</th>
38
					<th>Item</th>
39
					<th>Stock</th>
40
					<th>Sale</th>
41
 
42
				</tr>
43
			</thead>
44
			<tbody>
45
				#foreach($keyvalue in $inStockItemMap.entrySet())
46
				<tr>
47
					<td>$customRetailers.get($keyvalue.getKey().getFofoId()).getBusinessName()</td>
48
					<td>$keyvalue.getValue().getBrand()
49
						$keyvalue.getValue().getModelName()
50
						$keyvalue.getValue().getModelNumber()</td>
51
					<td>$keyvalue.getValue().getQty()</td>
52
					#if($fofoSaleItem.get($keyvalue.getKey()))
53
					<td>$fofoSaleItem.get($keyvalue.getKey()).getQty()</td> #else
54
					<td>0</td> #end
55
				</tr>
56
				#end
57
 
58
			</tbody>
59
		</table>
60
	</div>
61
 
62
	#end
63
</div>
64
 
65
 
66
<script type="text/javascript">
67
	$(document).ready(function() {
68
		var table = $('.partner-planning-details').DataTable({
69
			"pageLength" : 100
70
		});
71
	});
72
</script>