| Line 16... |
Line 16... |
| 16 |
#set($purchases = $action.getPurchases())
|
16 |
#set($purchases = $action.getPurchases())
|
| 17 |
#if($purchases)
|
17 |
#if($purchases)
|
| 18 |
<p>Previous Purchases for PO $action.getPurchaseOrder().getPoNumber()</p>
|
18 |
<p>Previous Purchases for PO $action.getPurchaseOrder().getPoNumber()</p>
|
| 19 |
#foreach($purchase in $purchases)
|
19 |
#foreach($purchase in $purchases)
|
| 20 |
<ul>
|
20 |
<ul>
|
| 21 |
<li><span>Purchase no. $purchase.getId()</span></li>
|
21 |
<li><span>Purchase no. $purchase.getId()</span> <span>Purchase Comments: #if($purchase.getPurchaseComments()) $purchase.getPurchaseComments() #else NA #end</span></li>
|
| 22 |
</ul>
|
22 |
</ul>
|
| 23 |
#end
|
23 |
#end
|
| 24 |
#end
|
24 |
#end
|
| 25 |
|
25 |
|
| 26 |
#if($action.getPurchaseOrder().getStatus().getValue()==1 || $action.getPurchaseOrder().getStatus().getValue()==2)
|
26 |
#if($action.getPurchaseOrder().getStatus().getValue()==1 || $action.getPurchaseOrder().getStatus().getValue()==2)
|
| Line 48... |
Line 48... |
| 48 |
<th >Product Name</th>
|
48 |
<th >Product Name</th>
|
| 49 |
<th >MRP</th>
|
49 |
<th >MRP</th>
|
| 50 |
<th >Quantity ordered</th>
|
50 |
<th >Quantity ordered</th>
|
| 51 |
<th >Unfulfilled Quantity</th>
|
51 |
<th >Unfulfilled Quantity</th>
|
| 52 |
<!--
|
52 |
<!--
|
| 53 |
<th >Scanned Quantity</th> -->
|
53 |
<th >Scanned Quantity</th>
|
| 54 |
<th >Item Weight</th>
|
54 |
<th >Item Weight</th>
|
| 55 |
<!-- <th >Inventory Adjust</th> -->
|
55 |
<th >Inventory Adjust</th>
|
| 56 |
<th >Set Weight</th>
|
56 |
<th >Set Weight</th> -->
|
| 57 |
</tr>
|
57 |
</tr>
|
| 58 |
</thead>
|
58 |
</thead>
|
| 59 |
<tbody >
|
59 |
<tbody >
|
| 60 |
#foreach($lineitem in $action.getPurchaseOrder().getLineitems())
|
60 |
#foreach($lineitem in $action.getPurchaseOrder().getLineitems())
|
| 61 |
<tr class="bordered">
|
61 |
<tr class="bordered">
|
| 62 |
<td id="itemId">$lineitem.getItemId()</td>
|
62 |
<td id="itemId">$lineitem.getItemId()</td>
|
| 63 |
<td >$action.getName($lineitem)</td>
|
63 |
<td >$action.getName($lineitem)</td>
|
| 64 |
<td >$lineitem.getMrp()</td>
|
64 |
<td >$lineitem.getMrp()</td>
|
| 65 |
<td >$lineitem.getQuantity()</td>
|
65 |
<td >$lineitem.getQuantity()</td>
|
| 66 |
<td >$lineitem.getUnfulfilledQuantity()</td>
|
66 |
<td >$lineitem.getUnfulfilledQuantity()</td>
|
| 67 |
<!-- <td >$action.getTotalScannedQuantity($lineitem.getItemId())</td> -->
|
67 |
<!-- <td >$action.getTotalScannedQuantity($lineitem.getItemId())</td>
|
| 68 |
<td >$action.getItemWeight($lineitem.getItemId())</td>
|
68 |
<td >$action.getItemWeight($lineitem.getItemId())</td>
|
| 69 |
<!-- <td >
|
69 |
<td >
|
| 70 |
<input class="adjustInventoryButton" type="button" value="Adjust Inventory"/>
|
70 |
<input class="adjustInventoryButton" type="button" value="Adjust Inventory"/>
|
| 71 |
<form class="adjustInventoryForm hidden" method="post" action="/inventory/purchase-order!adjustInventory">
|
71 |
<form class="adjustInventoryForm hidden" method="post" action="/inventory/purchase-order!adjustInventory">
|
| 72 |
<div>
|
72 |
<div>
|
| 73 |
<label >Quantity: </label>
|
73 |
<label >Quantity: </label>
|
| 74 |
<input type="text" class="quantityAdjust" name="quantityAdjust"/> <br />
|
74 |
<input type="text" class="quantityAdjust" name="quantityAdjust"/> <br />
|
| Line 76... |
Line 76... |
| 76 |
<input type="button" value="Cancel" class="cancelButton"/>
|
76 |
<input type="button" value="Cancel" class="cancelButton"/>
|
| 77 |
<input type="hidden" name="itemId" value="$lineitem.getItemId()"/>
|
77 |
<input type="hidden" name="itemId" value="$lineitem.getItemId()"/>
|
| 78 |
<input type="hidden" name="poId" id="poId" value="$lineitem.getOrderId()"/>
|
78 |
<input type="hidden" name="poId" id="poId" value="$lineitem.getOrderId()"/>
|
| 79 |
</div>
|
79 |
</div>
|
| 80 |
</form>
|
80 |
</form>
|
| 81 |
</td> -->
|
81 |
</td>
|
| 82 |
<td >
|
82 |
<td >
|
| 83 |
<input class="setWeightButton" type="button" value="Set Weight" />
|
83 |
<input class="setWeightButton" type="button" value="Set Weight" />
|
| 84 |
<form class="setWeightForm hidden">
|
84 |
<form class="setWeightForm hidden">
|
| 85 |
<div>
|
85 |
<div>
|
| 86 |
<label >Weight: </label>
|
86 |
<label >Weight: </label>
|
| Line 89... |
Line 89... |
| 89 |
<input type="button" value="Cancel" class="cancelWeightButton"/>
|
89 |
<input type="button" value="Cancel" class="cancelWeightButton"/>
|
| 90 |
<input type="hidden" name="poId" class="poId" value="$lineitem.getOrderId()"/>
|
90 |
<input type="hidden" name="poId" class="poId" value="$lineitem.getOrderId()"/>
|
| 91 |
<input type="hidden" name="itemId" id="itemId" value="$lineitem.getItemId()"/>
|
91 |
<input type="hidden" name="itemId" id="itemId" value="$lineitem.getItemId()"/>
|
| 92 |
</div>
|
92 |
</div>
|
| 93 |
</form>
|
93 |
</form>
|
| 94 |
</td>
|
94 |
</td> -->
|
| 95 |
|
95 |
|
| 96 |
|
96 |
|
| 97 |
</tr>
|
97 |
</tr>
|
| 98 |
#end
|
98 |
#end
|
| 99 |
</tbody>
|
99 |
</tbody>
|