| 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>
|
| 4754 |
mandeep.dh |
4 |
<link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
|
| 7410 |
amar.kumar |
5 |
<script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
|
|
|
6 |
<script type = "text/javascript" src = "/inventory/js/purchase-order-common.js"></script>
|
|
|
7 |
<script type = "text/javascript" src = "/inventory/js/purchase-order-events.js"></script>
|
| 4687 |
mandeep.dh |
8 |
<title>
|
|
|
9 |
Warehouse Management::Purchase Orders
|
|
|
10 |
</title>
|
|
|
11 |
</head>
|
|
|
12 |
<body>
|
|
|
13 |
<a href="/inventory">Go to Home page</a>
|
| 4754 |
mandeep.dh |
14 |
<br />
|
| 4687 |
mandeep.dh |
15 |
<h2>Start or Continue a Purchase</h2>
|
|
|
16 |
<p>Open Purchase Orders</p>
|
|
|
17 |
#set($purchaseOrders = $action.getPurchaseOrders())
|
| 4754 |
mandeep.dh |
18 |
<table class="bordered">
|
|
|
19 |
<thead >
|
|
|
20 |
<tr >
|
|
|
21 |
<th >PO Number</th>
|
| 5110 |
mandeep.dh |
22 |
<th >Warehouse</th>
|
| 4754 |
mandeep.dh |
23 |
<th >Creation Date</th>
|
|
|
24 |
#if($action.isPermitted("po:amend"))
|
|
|
25 |
<th ></th>
|
| 7410 |
amar.kumar |
26 |
<th ></th>
|
| 9829 |
amar.kumar |
27 |
##if($action.isPermitted("po:changeWarehouse"))
|
|
|
28 |
<th></th>
|
|
|
29 |
##end
|
| 4754 |
mandeep.dh |
30 |
#end
|
|
|
31 |
</tr>
|
|
|
32 |
</thead>
|
|
|
33 |
<tbody >
|
|
|
34 |
#foreach($purchaseOrder in $purchaseOrders)
|
|
|
35 |
<tr >
|
|
|
36 |
<td >
|
|
|
37 |
#if($action.isPermitted("po:receive"))
|
|
|
38 |
<a href="/inventory/purchase-order/$purchaseOrder.getId()">$purchaseOrder.getPoNumber()</a>
|
|
|
39 |
#else
|
|
|
40 |
$purchaseOrder.getPoNumber()
|
|
|
41 |
#end
|
|
|
42 |
</td>
|
| 5110 |
mandeep.dh |
43 |
<td >$action.getOurGOODWarehouses().get($purchaseOrder.getSupplierId()).getDisplayName()</td>
|
| 4754 |
mandeep.dh |
44 |
<td >$action.convertDate($purchaseOrder.getCreatedAt())</td>
|
|
|
45 |
#if($action.isPermitted("po:amend"))
|
|
|
46 |
<td ><a href="/inventory/purchase-order/$purchaseOrder.getId()/edit">Edit</a></td>
|
| 7410 |
amar.kumar |
47 |
<td ><input type = "button" id="close-po" poId = "$purchaseOrder.getId()" value = "Close PO"/></td>
|
| 9829 |
amar.kumar |
48 |
##if($action.isPermitted("po:changeWarehouse"))
|
|
|
49 |
<td >
|
|
|
50 |
<input type = "button" class ="change-po-warehouse" poId = "$purchaseOrder.getId()" value = "Change Warehouse"/>
|
|
|
51 |
<form class = "change-po-warehouse-form hidden" method="post" action="/inventory/purchase-order!changeWarehouseForPO">
|
|
|
52 |
<span>WarehouseId : </span>
|
|
|
53 |
<input type = "text" name = "warehouseId" pattern = "\d*" required /></br>
|
|
|
54 |
<input type = "hidden" name = "id" value = "$purchaseOrder.getId()" />
|
|
|
55 |
<input type = "submit" value = "Change Warehouse" /></br>
|
|
|
56 |
<input type = "button" class = "cancel-change-po-warehouse" value = "Cancel"/>
|
|
|
57 |
</form>
|
|
|
58 |
</td>
|
|
|
59 |
##end
|
| 7410 |
amar.kumar |
60 |
#end
|
| 4754 |
mandeep.dh |
61 |
</tr>
|
|
|
62 |
#end
|
|
|
63 |
</tbody>
|
|
|
64 |
</table>
|
| 4687 |
mandeep.dh |
65 |
</body>
|
| 4754 |
mandeep.dh |
66 |
</html>
|