| 9761 |
amar.kumar |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<title>Held Inventory</title>
|
|
|
5 |
<!--link type = "text/css" href = "css/held-inventory.css" rel = "stylesheet"/-->
|
|
|
6 |
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
|
|
|
7 |
<script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
|
|
|
8 |
<script type="text/javascript" src="js/TableTools.min.js"></script>
|
|
|
9 |
<script type="text/javascript" src="js/held-inventory.js"></script>
|
|
|
10 |
<link rel="stylesheet" href="/Support/css/demo_table.css" type="text/css" />
|
|
|
11 |
<link rel="stylesheet" href="/Support/css/TableTools.css" type="text/css" />
|
|
|
12 |
<link rel="stylesheet" href="/Support/css/hold-inventory.css" type="text/css" />
|
|
|
13 |
|
|
|
14 |
</head>
|
|
|
15 |
<body>
|
|
|
16 |
<span><a href = "/Support/reports"> Go to Homepage</a></span>
|
|
|
17 |
<h2 style = "text-align:center;text-decoration: underline" >Hold Inventories</h2>
|
|
|
18 |
|
|
|
19 |
<form id = "hold-inventory-form" name = "hold-inventory-form" action="/Support/hold-inventory" method="post">
|
|
|
20 |
<span> ItemId : </span>
|
| 9806 |
amar.kumar |
21 |
<input type = "text" name = "itemId" required />
|
| 9761 |
amar.kumar |
22 |
<span> Warehouse : </span>
|
|
|
23 |
<select name = "warehouseId" >
|
|
|
24 |
#foreach($warehouse in $action.getWarehouses())
|
|
|
25 |
<option value = $warehouse.getId()>$warehouse.getId() $warehouse.getDisplayName()</option>
|
|
|
26 |
#end
|
|
|
27 |
</select>
|
|
|
28 |
<span> Source : </span>
|
|
|
29 |
<select name = "source">
|
|
|
30 |
<option value = "0">DONT-SELL</option>
|
|
|
31 |
<option value = "6">Ebay</option>
|
|
|
32 |
<option value = "7">Snapdeal</option>
|
|
|
33 |
<option value = "8">Flipkart</option>
|
| 13744 |
manish.sha |
34 |
<option value = "4">HomeShop18</option>
|
| 9761 |
amar.kumar |
35 |
</select>
|
|
|
36 |
<br/><br/>
|
|
|
37 |
<span>Quantity : </span>
|
|
|
38 |
<input type = "text" name = "heldQuantity"></input>
|
|
|
39 |
<input name = "submit" type = "submit" value = "Update" />
|
|
|
40 |
</form>
|
|
|
41 |
|
|
|
42 |
<br/>
|
|
|
43 |
<table id = "held-inventory-table">
|
|
|
44 |
<thead>
|
|
|
45 |
<tr>
|
|
|
46 |
<th> Item </th>
|
|
|
47 |
<th> Warehouse </th>
|
|
|
48 |
<th> Source </th>
|
|
|
49 |
<th> Held </th>
|
|
|
50 |
<th >Total Held</th>
|
|
|
51 |
<th >Total Availability</th>
|
|
|
52 |
<th >Total Reserved</th>
|
|
|
53 |
<th >IsRisky</th>
|
|
|
54 |
<th >Net Availability</th>
|
|
|
55 |
</tr>
|
|
|
56 |
</thead>
|
|
|
57 |
<tbody>
|
|
|
58 |
#set($warehouseMap = $action.getWarehouseMap())
|
|
|
59 |
#set($itemMap = $action.getItemMap())
|
|
|
60 |
#set($itemAvailabilityMap = $action.getItemAvailabilityMap())
|
|
|
61 |
#foreach($holdInventoryDetail in $action.getHoldInventoryDetails())
|
|
|
62 |
<tr >
|
|
|
63 |
#set($item = $itemMap.get($holdInventoryDetail.getItem_id()))
|
|
|
64 |
#set($itemStockDetail = $itemAvailabilityMap.get($holdInventoryDetail.getItem_id()))
|
|
|
65 |
<td>$holdInventoryDetail.getItem_id()--$item.getBrand() $item.getModelName() $item.getModelNumber() $item.getColor()</td>
|
|
|
66 |
<td>$holdInventoryDetail.getWarehouse_id() $warehouseMap.get($holdInventoryDetail.getWarehouse_id()).getDisplayName()</td>
|
|
|
67 |
<td>$action.getSource($holdInventoryDetail.getSource())</td>
|
|
|
68 |
<td>$holdInventoryDetail.getHeld()</td>
|
|
|
69 |
<td>$itemStockDetail.getHeld()</td>
|
|
|
70 |
<td>$itemStockDetail.getAvailable()</td>
|
|
|
71 |
<td>$itemStockDetail.getReserved()</td>
|
|
|
72 |
#if($item.isRisky())
|
|
|
73 |
<td> Yes </td>
|
|
|
74 |
#else
|
|
|
75 |
<td> No </td>
|
|
|
76 |
#end
|
|
|
77 |
#set($netAvailability = ($itemStockDetail.getAvailable()-$itemStockDetail.getReserved()-$itemStockDetail.getHeld()))
|
|
|
78 |
<td>$netAvailability</td>
|
|
|
79 |
</tr>
|
|
|
80 |
#end
|
|
|
81 |
</tbody>
|
|
|
82 |
</table>
|
|
|
83 |
<script>
|
|
|
84 |
|
|
|
85 |
</script>
|
|
|
86 |
</body>
|
|
|
87 |
</html>
|
|
|
88 |
|