| 4687 |
mandeep.dh |
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>
|
| 5110 |
mandeep.dh |
4 |
<link rel="stylesheet" href="/inventory/css/demo_table.css" type="text/css" />
|
|
|
5 |
<link rel="stylesheet" href="/inventory/css/demo_table_jui.css" type="text/css" />
|
|
|
6 |
<link rel="stylesheet" href="/inventory/css/demo_page.css" type="text/css" />
|
| 4687 |
mandeep.dh |
7 |
<title>
|
|
|
8 |
Inventory at $action.getWarehouse().getDisplayName()
|
|
|
9 |
</title>
|
|
|
10 |
<script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
|
| 5110 |
mandeep.dh |
11 |
<script type="text/javascript" src="/inventory/js/jquery.dataTables.min.js"></script>
|
| 4687 |
mandeep.dh |
12 |
<script type="text/javascript" src="/inventory/js/current-inventory.js"></script>
|
|
|
13 |
<link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
|
|
|
14 |
</head>
|
|
|
15 |
<body>
|
|
|
16 |
<div >
|
|
|
17 |
<a href="/inventory/current-inventory">Go to all warehouses</a>
|
|
|
18 |
<br />
|
| 5110 |
mandeep.dh |
19 |
<span style="color:red">
|
|
|
20 |
#set($messages = $action.getActionErrors())
|
|
|
21 |
#if($messages && $messages.size() != 0)
|
|
|
22 |
#foreach($message in $messages)
|
|
|
23 |
$message <br/>
|
|
|
24 |
#end
|
|
|
25 |
#end
|
|
|
26 |
</span>
|
|
|
27 |
<br />
|
| 7410 |
amar.kumar |
28 |
#if($action.getWarehouse().getWarehouseType()=="THIRD_PARTY" || $action.getWarehouse().getWarehouseType()=="OURS_THIRDPARTY")
|
| 6380 |
amar.kumar |
29 |
#if($action.isPermitted("inventory:edit"))
|
|
|
30 |
<label>Add new Item in warehouse</label>
|
|
|
31 |
<br />
|
|
|
32 |
<form action="/inventory/current-inventory!increaseAvailability">
|
|
|
33 |
<table >
|
|
|
34 |
<tr >
|
|
|
35 |
<td ><label >Item Id: </label></td>
|
|
|
36 |
<td ><input type="text" name="itemId"/></td>
|
|
|
37 |
</tr>
|
|
|
38 |
<tr >
|
|
|
39 |
<td ><label >Quantity: </label></td>
|
|
|
40 |
<td ><input type="text" name="quantity"/>
|
|
|
41 |
<input type="hidden" name="id" value="$action.getId()"/>
|
|
|
42 |
</td>
|
|
|
43 |
</tr>
|
|
|
44 |
<tr >
|
|
|
45 |
<td ></td>
|
|
|
46 |
<td ><input type="submit" value="Add inventory"/></td>
|
|
|
47 |
</tr>
|
|
|
48 |
</table>
|
|
|
49 |
</form>
|
|
|
50 |
#end
|
|
|
51 |
#end
|
| 5110 |
mandeep.dh |
52 |
<br />
|
|
|
53 |
<table id="current-inventory">
|
| 4687 |
mandeep.dh |
54 |
<thead >
|
|
|
55 |
<tr >
|
|
|
56 |
<th>Item ID</th>
|
|
|
57 |
<th>Product</th>
|
|
|
58 |
<th>Availability</th>
|
|
|
59 |
<th>Reserved</th>
|
| 8182 |
amar.kumar |
60 |
<th>Hold</th>
|
| 4754 |
mandeep.dh |
61 |
#if($action.isPermitted("inventory:edit"))
|
|
|
62 |
<th ></th>
|
| 8182 |
amar.kumar |
63 |
#end
|
|
|
64 |
#if($action.isPermitted("inventory:edit"))
|
|
|
65 |
<th ></th>
|
| 4754 |
mandeep.dh |
66 |
#end
|
| 4687 |
mandeep.dh |
67 |
</tr>
|
|
|
68 |
</thead>
|
|
|
69 |
<tbody >
|
|
|
70 |
#foreach($item in $action.getInventory())
|
|
|
71 |
<tr >
|
|
|
72 |
<td >$item.getId()</td>
|
|
|
73 |
<td >$action.getName($item)</td>
|
| 5423 |
rajveer |
74 |
<td >$action.getAvailability($item)</td>
|
| 4687 |
mandeep.dh |
75 |
<td >$action.getReserved($item)</td>
|
| 8182 |
amar.kumar |
76 |
<td >$action.getHeld($item)</td>
|
| 4754 |
mandeep.dh |
77 |
#if($action.isPermitted("inventory:edit"))
|
| 6380 |
amar.kumar |
78 |
<td >
|
| 7410 |
amar.kumar |
79 |
#if($action.getWarehouse().getWarehouseType() == "THIRD_PARTY" || $action.getWarehouse().getWarehouseType()=="OURS_THIRDPARTY")
|
| 6380 |
amar.kumar |
80 |
<input class="increaseAvailabilityButton" type="button" value="Increase availability"/>
|
|
|
81 |
<form class="increaseAvailabilityForm hidden" method="post" action="/inventory/current-inventory!increaseAvailability">
|
|
|
82 |
<div >
|
|
|
83 |
<label >Quantity: </label>
|
|
|
84 |
<input type="text" name="quantity"/> <br />
|
|
|
85 |
<input type="submit" value="Increase availability"/>
|
|
|
86 |
<input type="button" value="Cancel" class="cancelButton"/>
|
|
|
87 |
<input type="hidden" name="itemId" value="$item.getId()"/>
|
|
|
88 |
<input type="hidden" name="id" value="$action.getId()"/>
|
|
|
89 |
</div>
|
|
|
90 |
</form>
|
|
|
91 |
#end
|
|
|
92 |
</td>
|
| 8182 |
amar.kumar |
93 |
#end
|
|
|
94 |
#if($action.isPermitted("inventory:edit"))
|
|
|
95 |
<td >
|
|
|
96 |
<input class="increaseHoldButton" type="button" value="Add/Update Hold Inventory"/>
|
|
|
97 |
<form class="increaseHoldForm hidden" method="post" action="/inventory/current-inventory!increaseHoldQuantity">
|
|
|
98 |
<div >
|
|
|
99 |
<label >Quantity: </label>
|
| 9925 |
amar.kumar |
100 |
<input type="text" name="holdQuantity" min = "0"/> <br />
|
| 8182 |
amar.kumar |
101 |
<select name = "source">
|
| 9416 |
amar.kumar |
102 |
<option value = "0">DONT-SELL</option>
|
| 8182 |
amar.kumar |
103 |
<option value = "6">Ebay</option>
|
| 8496 |
amar.kumar |
104 |
<option value = "7">Snapdeal</option>
|
| 9282 |
amar.kumar |
105 |
<option value = "8">Flipkart</option>
|
| 13691 |
manish.sha |
106 |
<option value = "4">HomeShop18</option>
|
| 8182 |
amar.kumar |
107 |
</select>
|
|
|
108 |
<input type="submit" value="Add/Update Hold Inventory"/>
|
|
|
109 |
<input type="button" value="Cancel" class="cancelHoldButton"/>
|
|
|
110 |
<input type="hidden" name="itemId" value="$item.getId()"/>
|
|
|
111 |
<input type="hidden" name="id" value="$action.getId()"/>
|
|
|
112 |
</div>
|
|
|
113 |
</form>
|
|
|
114 |
</td>
|
| 4754 |
mandeep.dh |
115 |
#end
|
| 4687 |
mandeep.dh |
116 |
</tr>
|
|
|
117 |
#end
|
|
|
118 |
</tbody>
|
|
|
119 |
</table>
|
|
|
120 |
</div>
|
|
|
121 |
</body>
|
|
|
122 |
</html>
|