| 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>
|
|
|
4 |
<title>
|
|
|
5 |
Warehouse Management::Purchase Order $action.getPurchaseOrder().getId()
|
|
|
6 |
</title>
|
|
|
7 |
<script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
|
|
|
8 |
<script type="text/javascript" src="/inventory/js/purchase-order-common.js"></script>
|
|
|
9 |
<script type="text/javascript" src="/inventory/js/purchase-order-events.js"></script>
|
|
|
10 |
<link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
|
|
|
11 |
</head>
|
|
|
12 |
<body>
|
| 4754 |
mandeep.dh |
13 |
<a href="/inventory">Go to Home page</a>
|
|
|
14 |
<br />
|
| 4687 |
mandeep.dh |
15 |
<h2>Start or Continue a Purchase</h2>
|
|
|
16 |
#set($purchases = $action.getPurchases())
|
|
|
17 |
#if($purchases)
|
|
|
18 |
<p>Open Purchases for PO $action.getPurchaseOrder().getPoNumber()</p>
|
|
|
19 |
#foreach($purchase in $purchases)
|
|
|
20 |
<ul>
|
|
|
21 |
<li><a href="/inventory/purchase/$purchase.getId()">Continue purchase no. $purchase.getId()</a></li>
|
|
|
22 |
</ul>
|
|
|
23 |
#end
|
|
|
24 |
#end
|
|
|
25 |
<a href="/inventory/purchase/new/?poId=$action.getPurchaseOrder().getId()">Start a new Purchase</a>
|
|
|
26 |
<div >
|
|
|
27 |
<br />
|
|
|
28 |
<div class="error">#set($messages = $action.getActionErrors())
|
|
|
29 |
#if($messages && $messages.size() != 0)
|
|
|
30 |
#foreach($message in $messages)
|
|
|
31 |
$message <br/>
|
|
|
32 |
#end
|
|
|
33 |
#end
|
|
|
34 |
</div>
|
|
|
35 |
<label >PO Items</label>
|
|
|
36 |
<br />
|
|
|
37 |
<table class="bordered" border="1">
|
|
|
38 |
<thead >
|
|
|
39 |
<tr class="bordered">
|
|
|
40 |
<th >Item Id</th>
|
|
|
41 |
<th >Product Name</th>
|
|
|
42 |
<th >Quantity ordered</th>
|
|
|
43 |
<th >Unfulfilled Quantity</th>
|
|
|
44 |
## <th ></th>
|
|
|
45 |
</tr>
|
|
|
46 |
</thead>
|
|
|
47 |
<tbody >
|
|
|
48 |
#foreach($lineitem in $action.getPurchaseOrder().getLineitems())
|
|
|
49 |
<tr class="bordered">
|
|
|
50 |
<td id="itemId">$lineitem.getItemId()</td>
|
|
|
51 |
<td >$action.getName($lineitem)</td>
|
|
|
52 |
<td >$lineitem.getQuantity()</td>
|
|
|
53 |
<td >$lineitem.getUnfulfilledQuantity()</td>
|
|
|
54 |
## <td id="form-$lineitem.getItemId()"><input id="changeColor" type="button" value="Change color"/></td>
|
|
|
55 |
</tr>
|
|
|
56 |
#end
|
|
|
57 |
</tbody>
|
|
|
58 |
</table>
|
|
|
59 |
<input type="hidden" id="poId" value="$action.getPurchaseOrder().getId()"/>
|
|
|
60 |
</div>
|
|
|
61 |
</body>
|
|
|
62 |
</html>
|