| 32145 |
tejbeer |
1 |
<div class="modal-header">
|
|
|
2 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
3 |
<h4 class="modal-title">LineItems PurchaseOrderId : $lineitems.get(0).getPurchaseOrderId()</h4>
|
|
|
4 |
</div>
|
|
|
5 |
<div class="modal-body" style="height: 300px; overflow:auto">
|
|
|
6 |
|
|
|
7 |
<div class="row">
|
|
|
8 |
|
|
|
9 |
<div class="col-lg-12">
|
|
|
10 |
<table id="purchase-edit-lineitem" class="table table-striped table-advance table-hover" >
|
|
|
11 |
<thead>
|
|
|
12 |
<tr>
|
|
|
13 |
<th> Item Id </th>
|
|
|
14 |
<th> Item Description </th>
|
| 32256 |
tejbeer |
15 |
<th> Qty</th>
|
| 33727 |
ranu |
16 |
<th> Amended Qty</th>
|
|
|
17 |
<th> Transfer Price</th>
|
|
|
18 |
<th>Total Price</th>
|
| 32145 |
tejbeer |
19 |
|
|
|
20 |
</tr>
|
| 33727 |
ranu |
21 |
</thead>
|
|
|
22 |
|
|
|
23 |
<tbody>
|
|
|
24 |
|
|
|
25 |
#set($totalUnitPrice = 0)
|
| 32145 |
tejbeer |
26 |
#foreach($lineitem in $lineitems)
|
| 33727 |
ranu |
27 |
#set($lineTotalPrice = $lineitem.getQuantity() * $lineitem.getUnitPrice())
|
| 32145 |
tejbeer |
28 |
<tr>
|
|
|
29 |
<td>$lineitem.getItemId()</td>
|
| 32256 |
tejbeer |
30 |
<td>$lineitem.getBrand() $lineitem.getModelNumber() $lineitem.getModelName() $lineitem.getColor() </td>
|
|
|
31 |
<td>$lineitem.getQuantity()</td>
|
| 32349 |
amit.gupta |
32 |
<td><input type="number" class="form-control editqty" name="qty" placeholder="Quantity"
|
|
|
33 |
value="$lineitem.getAmendedQty()"/></td>
|
| 33727 |
ranu |
34 |
<td class="transferPrice">$lineitem.getUnitPrice()</td>
|
|
|
35 |
<td>$lineTotalPrice</td>
|
| 32145 |
tejbeer |
36 |
</tr>
|
| 33727 |
ranu |
37 |
#set($totalUnitPrice = $totalUnitPrice + $lineTotalPrice)
|
| 32145 |
tejbeer |
38 |
#end
|
| 33724 |
ranu |
39 |
<tr>
|
| 33727 |
ranu |
40 |
<td colspan="5" style="text-align: right;"><b>Total Unit Price</b></td>
|
|
|
41 |
<td><b>$totalUnitPrice</b></td>
|
| 33724 |
ranu |
42 |
</tr>
|
| 32145 |
tejbeer |
43 |
|
|
|
44 |
</tbody>
|
|
|
45 |
</table>
|
|
|
46 |
</div>
|
|
|
47 |
</div>
|
|
|
48 |
<div class="row">
|
|
|
49 |
|
|
|
50 |
<div class="col-lg-6 form-group">
|
|
|
51 |
<input class="form-control btn btn-primary editPurchaseOrder" type="button" data-poid="$lineitems.get(0).getPurchaseOrderId()" value="Edit and Save Purchase Order">
|
|
|
52 |
</div>
|
|
|
53 |
|
|
|
54 |
<div class="col-lg-6 form-group">
|
|
|
55 |
<input class="form-control btn btn-primary editSendPurchaseOrder" type="button" data-poid="$lineitems.get(0).getPurchaseOrderId()" value="Edit and Send Purchase Order">
|
|
|
56 |
</div>
|
|
|
57 |
|
|
|
58 |
</div>
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
</div>
|