Subversion Repositories SmartDukaan

Rev

Rev 28005 | Rev 28032 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28005 Rev 28020
Line 5... Line 5...
5
	<div class="col-lg-6">
5
	<div class="col-lg-6">
6
		<table
6
		<table
7
			class="table table-striped table-advance table-hover partner-planning-details">
7
			class="table table-striped table-advance table-hover partner-planning-details">
8
			<thead>
8
			<thead>
9
				<tr>
9
				<tr>
-
 
10
					<th>Warehouse</th>
10
					<th>Partner Name</th>
11
					<th>Partner Name</th>
11
					<th>Stock</th>
12
					<th>Stock</th>
12
					<th>Sale</th>
13
					<th>Sale</th>
13
 
14
 
14
				</tr>
15
				</tr>
15
			</thead>
16
			</thead>
16
			<tbody>
17
			<tbody>
17
				#foreach($keyvalue in $inStock.entrySet())
18
				#foreach($keyvalue in $inStock.entrySet())
18
				<tr>
19
				<tr>
-
 
20
					<td>$warehouseMap.get($keyvalue.getValue().getWarehouseId())</td>
19
					<td>$customRetailers.get($keyvalue.getKey()).getBusinessName()</td>
21
					<td>$customRetailers.get($keyvalue.getKey()).getBusinessName()</td>
20
					<td>$keyvalue.getValue()</td>
22
					<td>$keyvalue.getValue().getQty()</td>
21
					#if($fofoSale.get($keyvalue.getKey()))
23
					#if($fofoSale.get($keyvalue.getKey()))
22
					<td>$fofoSale.get($keyvalue.getKey())</td> #else
24
					<td>$fofoSale.get($keyvalue.getKey()).getQty()</td> #else
23
					<td>0</td> #end
25
					<td>0</td> #end
24
				</tr>
26
				</tr>
25
				#end
27
				#end
26
 
28
 
27
			</tbody>
29
			</tbody>
Line 32... Line 34...
32
	<div class="col-lg-6">
34
	<div class="col-lg-6">
33
		<table
35
		<table
34
			class="table table-striped table-advance table-hover partner-planning-details">
36
			class="table table-striped table-advance table-hover partner-planning-details">
35
			<thead>
37
			<thead>
36
				<tr>
38
				<tr>
-
 
39
					<th>Warehouse</th>
37
					<th>Partner Name</th>
40
					<th>Partner Name</th>
38
					<th>Item</th>
41
					<th>Item</th>
39
					<th>Stock</th>
42
					<th>Stock</th>
40
					<th>Sale</th>
43
					<th>Sale</th>
41
 
44
 
42
				</tr>
45
				</tr>
43
			</thead>
46
			</thead>
44
			<tbody>
47
			<tbody>
45
				#foreach($keyvalue in $inStockItemMap.entrySet())
48
				#foreach($keyvalue in $inStockItemMap.entrySet())
46
				<tr>
49
				<tr>
-
 
50
					<td>$warehouseMap.get($keyvalue.getValue().getWarehouseId())</td>
-
 
51
 
47
					<td>$customRetailers.get($keyvalue.getKey().getFofoId()).getBusinessName()</td>
52
					<td>$customRetailers.get($keyvalue.getKey().getFofoId()).getBusinessName()</td>
48
					<td>$keyvalue.getValue().getBrand()
53
					<td>$keyvalue.getValue().getBrand()
49
						$keyvalue.getValue().getModelName()
54
						$keyvalue.getValue().getModelName()
50
						$keyvalue.getValue().getModelNumber()</td>
55
						$keyvalue.getValue().getModelNumber()</td>
51
					<td>$keyvalue.getValue().getQty()</td>
56
					<td>$keyvalue.getValue().getQty()</td>
Line 62... Line 67...
62
	#end
67
	#end
63
</div>
68
</div>
64
 
69
 
65
 
70
 
66
<script type="text/javascript">
71
<script type="text/javascript">
67
	$(document).ready(function() {
72
	$(document).ready(
-
 
73
			function() {
-
 
74
 
-
 
75
				$('.partner-planning-details thead tr').clone(true).appendTo(
-
 
76
						'.partner-planning-details thead');
-
 
77
				$('.partner-planning-details thead tr:eq(1) th').each(
-
 
78
						function(i) {
-
 
79
							var title = $(this).text();
-
 
80
							$(this).html(
-
 
81
									'<input type="text" style = "width:60%;" placeholder="Search '
-
 
82
											+ title + '" />');
-
 
83
 
-
 
84
							$('input', this).on('keyup change', function() {
-
 
85
								if (table.column(i).search() !== this.value) {
-
 
86
									table.column(i).search(this.value).draw();
-
 
87
								}
-
 
88
							});
-
 
89
						});
68
		var table = $('.partner-planning-details').DataTable({
90
				var table = $('.partner-planning-details').DataTable({
-
 
91
 
-
 
92
					"lengthMenu" : [ 10, 25, 50, 75, 100, 250 ],
69
			"pageLength" : 100
93
					"pageLength" : 250,
70
		});
94
				});
71
	});
95
			});
72
</script>
96
</script>
73
97