Subversion Repositories SmartDukaan

Rev

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

Rev 23506 Rev 23638
Line 1... Line 1...
1
<style>
1
<style>
-
 
2
	.pointer {
-
 
3
		cursor:pointer;
-
 
4
	}
2
	.btn:hover{
5
	.btn:hover{
3
  		color: grey;
6
  		color: grey;
4
  		text-decoration: none;
7
  		text-decoration: none;
5
	}
8
	}
6
	.btn-primary:hover{
9
	.btn-primary:hover{
Line 22... Line 25...
22
			</ol>
25
			</ol>
23
		</div>
26
		</div>
24
	</div>
27
	</div>
25
	
28
	
26
    <div>
29
    <div>
27
    	 <div class="row"><strong>Stock older than $ageDays days could be requested for Return</strong></div>
-
 
28
	     <div class="row">
30
	     <div class="row">
29
			<div class="col-lg-10" id="returnable-container">
31
			<div class="col-lg-2" id="store-container">
30
				<table class="table table-striped table-condensed table-bordered" id="returnables">
32
				<table class="table table-striped table-condensed table-bordered" id="returnables">
31
	    			<thead>
33
	    			<thead>
32
			            <tr>
34
			            <tr>
33
							<th>Item Id</th>
35
							<th>Id</th>
34
							<th>Description</th>
-
 
35
							<th>Serial Number</th>
36
							<th>Store Name</th>
36
							<!--<th>Invoice Number</th>-->
-
 
37
							<th>Purchase Price</th>
-
 
38
							<!--<th>Effective Price</th>-->
-
 
39
							<th>Scanned On</th>
-
 
40
							<th>Status</th>
-
 
41
			            </tr>
37
			            </tr>
42
			        </thead>
38
			        </thead>
43
					<tbody>
39
					<tbody>
44
						#foreach( $returnableInventoryItem in $returnableInventoryItems )
40
						#foreach( $customRetailerEntry in $customRetailers.entrySet() )
45
						<tr>
41
						<tr>
46
							<td>$returnableInventoryItem.getItemId()</td>
42
							<td>$customRetailerEntry.getKey()</td>
47
							<td>$returnableInventoryItem.getItemDescription()</td>
-
 
48
							<td>$returnableInventoryItem.getSerialNumber()</td>
-
 
49
							<td>$returnableInventoryItem.getUnitPrice()</td>
-
 
50
							<td>$returnableInventoryItem.getFormattedCreateTimestamp()</td>
-
 
51
							<!--<td>$date.format('MMM d, yy', $returnableInventoryItem.getCreateTimestamp())</td>-->
-
 
52
							<td>
-
 
53
							#if($returnsInProcess.containsKey($returnableInventoryItem.getId()))
-
 
54
								$returnsInProcess.get($returnableInventoryItem.getId()).getStatus().getValue()
-
 
55
							#else
-
 
56
								<a href="javascript:void(0);" data-inventoryitemid="$returnableInventoryItem.getId()" class="request-return">Request Return</a>
43
							<td><a class="storename pointer" data-id="$customRetailerEntry.getKey()">$customRetailerEntry.getValue().getBusinessName()</a></td>
57
							#end</td>
-
 
58
						</tr>
44
						</tr>
59
						#end
45
						#end
60
					</tbody>
46
					</tbody>
61
				</table>
47
				</table>
62
			</div>
48
			</div>
-
 
49
			<div class="col-lg-4" id="inventory-container">
-
 
50
				<table class="table table-striped table-condensed table-bordered">
-
 
51
	    			<thead>
-
 
52
			            <tr>
-
 
53
							<th>Item Id</th>
-
 
54
							<th>Description</th>
-
 
55
							<th>Qty</th>
-
 
56
			            </tr>
-
 
57
			        </thead>
-
 
58
			        <tbody id="inventory-body">
-
 
59
			        </tbody>
-
 
60
				</table>
-
 
61
			</div>
-
 
62
			<div class="col-lg-6" id="returnable-container">
-
 
63
				<table class="table table-striped table-condensed table-bordered">
-
 
64
					<thead>
-
 
65
						<tr>
-
 
66
							<th>Serial Number</th>
-
 
67
							<th>Unit Price</th>
-
 
68
							<th>Scanned On</th>
-
 
69
							<th>Status</th>
-
 
70
						</tr>
-
 
71
					</thead>
-
 
72
					<tbody id="returnables-body">
-
 
73
					</tbody>
-
 
74
				</table>
-
 
75
			</div>
63
    	</div>
76
    	</div>
64
</section>
77
</section>
65
<script type="text/javascript">
78
<script type="text/javascript">
66
/* Create an array with the values of all the input boxes in a column */
79
/* Create an array with the values of all the input boxes in a column */
67
$.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )
80
$.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )
Line 95... Line 108...
95
    } );
108
    } );
96
}
109
}
97
 
110
 
98
/* Initialise the table with the required column ordering data types */
111
/* Initialise the table with the required column ordering data types */
99
$(document).ready(function() {
112
$(document).ready(function() {
100
    returnsTable = $('#returnables').DataTable({"pageLength": 50});
113
    /*storesTable = $('#store-container').find('table').DataTable({"pageLength": 20});*/
101
	/*returnsTable.rows().data().each(function(arr){
114
    inventoryTable = $('#inventory-container').find('table').DataTable(
102
		var $input = $(arr[6]);
115
     {
103
		quantity = parseInt($input.val(), 10);
116
   		"paging": true,
104
		if(quantity > 0){
117
    	"searching": true
105
			indentMap[parseInt(arr[0])] = {"quantity": quantity, "sellingPrice":parseInt(arr[2]), "description": arr[1]}
-
 
106
	    }
118
	 }
-
 
119
	);
-
 
120
    returnsTable = $('#returnable-container').find('table').DataTable({
-
 
121
   		"paging": true,
-
 
122
   		"searching" : true
107
	});
123
	});
108
	populateIndentSummary();*/
-
 
109
	
-
 
110
});
124
});
111
 
125
 
112
</script>
126
</script>
113
127