| 4754 |
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 |
Inventory Management::Edit Purchase Order
|
|
|
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>
|
|
|
13 |
<a href="/inventory">Go to Home page</a>
|
|
|
14 |
<br />
|
|
|
15 |
<label class="bold">Edit PO Number: $action.getPurchaseOrder().getPoNumber() </label>
|
|
|
16 |
#foreach($supplierId in $action.getSuppliers().keySet())
|
|
|
17 |
<div >
|
|
|
18 |
<label class="bold">Total amount: </label>
|
|
|
19 |
</div>
|
|
|
20 |
<div id="total-amount-$supplierId" supplierId="$supplierId">
|
|
|
21 |
$action.getAmount($supplierId)
|
|
|
22 |
</div>
|
|
|
23 |
<div id="lineitems-$supplierId" class="lineitems" supplierId="$supplierId">
|
|
|
24 |
<br />
|
|
|
25 |
<form class="edit-purchase-order">
|
|
|
26 |
<table class="lineitems">
|
|
|
27 |
<thead >
|
|
|
28 |
<tr >
|
|
|
29 |
<th >Item Id</th>
|
|
|
30 |
<th >Product Name</th>
|
|
|
31 |
<th >Quantity</th>
|
|
|
32 |
<th >COD/Prepaid</th>
|
|
|
33 |
<th >Transfer price</th>
|
| 7922 |
amar.kumar |
34 |
<th style="display:none;">Nlc</th>
|
| 4754 |
mandeep.dh |
35 |
<th >Total amount</th>
|
|
|
36 |
<th ></th>
|
|
|
37 |
</tr>
|
|
|
38 |
</thead>
|
|
|
39 |
<tbody>
|
|
|
40 |
<tr id="sample-lineitem" class="hidden">
|
|
|
41 |
<td><input type="text" class="required digits" name="itemId" supplierId="$supplierId" disabled /></td>
|
|
|
42 |
<td><div id="modelName"></div></td>
|
|
|
43 |
<td ><input type="text" class="required digits" name="quantity" disabled /> </td>
|
|
|
44 |
<td >0/0</td>
|
|
|
45 |
<td id="transferPrice"><input type="text" class="required number" name="unitPrice" disabled readonly /> </td>
|
| 7922 |
amar.kumar |
46 |
<td id="nlc"><input type="hidden" class="required number" name="nlc" disabled readonly /> </td>
|
| 4754 |
mandeep.dh |
47 |
<td ><div id="amount">0</div></td>
|
|
|
48 |
<td ><a id="remove-lineitem" href="#">remove</a></td>
|
|
|
49 |
</tr>
|
|
|
50 |
#foreach($lineItem in $action.getLineItemsBySupplier().get($supplierId))
|
|
|
51 |
<tr >
|
|
|
52 |
<td><input type="text" class="required digits" name="itemId" value="$lineItem.getItemId()" /></td>
|
|
|
53 |
<td><div id="modelName">$action.getName($lineItem)</div></td>
|
|
|
54 |
#set($prepaidCount = $lineItem.getQuantity() - $lineItem.getCodCount())
|
|
|
55 |
<td ><input type="text" class="required digits" name="quantity" value="$lineItem.getQuantity()" /> </td>
|
|
|
56 |
<td >$lineItem.getCodCount()/$prepaidCount</td>
|
|
|
57 |
<td id="transferPrice"><input type="text" class="required number" name="unitPrice" value="$lineItem.getUnitPrice()" readonly /> </td>
|
| 7922 |
amar.kumar |
58 |
<td id="nlc"><input type="hidden" class="required number" name="nlc" value="$lineItem.getNlc()" readonly /> </td>
|
| 4754 |
mandeep.dh |
59 |
#set($amount = $lineItem.getQuantity() * $lineItem.getUnitPrice())
|
|
|
60 |
<td ><div id="amount">$amount</div></td>
|
|
|
61 |
<td ><a id="remove-lineitem" href="#">remove</a></td>
|
|
|
62 |
</tr>
|
|
|
63 |
#end
|
|
|
64 |
</tbody>
|
|
|
65 |
</table>
|
|
|
66 |
<div >
|
|
|
67 |
<input id="add-lineitem" type="button" value="Add New Item"/> <br /> <br />
|
|
|
68 |
<input type="hidden" name="id" value="$action.getId()"/>
|
|
|
69 |
<input type="hidden" name="resendPO" value="0"/>
|
| 5110 |
mandeep.dh |
70 |
<input id="editPOButton" type="button" value="Save Purchase Order"/>
|
|
|
71 |
<input id="editAndResendPOButton" type="button" value="Save and Resend Purchase Order"/>
|
| 4754 |
mandeep.dh |
72 |
<input type="button" value="Cancel" id="amendCancel" purchaseOrderId="$action.getId()"/>
|
|
|
73 |
</div>
|
|
|
74 |
</form>
|
|
|
75 |
</div>
|
|
|
76 |
#end
|
|
|
77 |
</body>
|
|
|
78 |
</html>
|