| 32145 |
tejbeer |
1 |
|
|
|
2 |
|
|
|
3 |
<script>
|
|
|
4 |
$(document).ready(function () {
|
|
|
5 |
|
|
|
6 |
var dtable = $('#warehouse-open-purchase').DataTable({
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
});
|
|
|
10 |
|
|
|
11 |
});
|
|
|
12 |
|
|
|
13 |
</script>
|
|
|
14 |
<section class="wrapper">
|
|
|
15 |
<div class="row">
|
|
|
16 |
<div class="col-lg-12">
|
|
|
17 |
<h3 class="page-header"><i class="icon_document_alt"></i>OPEN PURCHASE ORDER</h3>
|
|
|
18 |
<ol class="breadcrumb">
|
|
|
19 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
20 |
<li><i class="icon_document_alt">Open Purchase Order</i></li>
|
|
|
21 |
|
|
|
22 |
</ol>
|
|
|
23 |
</div>
|
|
|
24 |
</div>
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
<div class="col-lg-12">
|
|
|
28 |
<table id="warehouse-open-purchase" class="table table-striped table-advance table-hover" >
|
|
|
29 |
<thead>
|
|
|
30 |
<tr>
|
|
|
31 |
<th> Id</th>
|
|
|
32 |
<th> Po Number </th>
|
|
|
33 |
<th> Supplier</th>
|
|
|
34 |
<th> Buyer</th>
|
|
|
35 |
<th> Total Cost </th>
|
|
|
36 |
<th> Created On</th>
|
|
|
37 |
<th> Edit </th>
|
| 32256 |
tejbeer |
38 |
<th> Close</th>
|
| 32145 |
tejbeer |
39 |
|
|
|
40 |
</tr>
|
|
|
41 |
</thead>
|
|
|
42 |
|
|
|
43 |
<tbody>
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
#foreach($purchaseOrder in $purchaseOrders)
|
|
|
47 |
<tr>
|
|
|
48 |
<td>$purchaseOrder.getId()</td>
|
|
|
49 |
<td>$purchaseOrder.getPoNumber()</td>
|
|
|
50 |
<td>$supplierMap.get($purchaseOrder.getSupplierId()).getName()</td>
|
|
|
51 |
|
|
|
52 |
<td>$sellerMap.get($purchaseOrder.getBuyerId()).getLabel()</td>
|
|
|
53 |
<td>$purchaseOrder.getTotalCost()</td>
|
|
|
54 |
<td>$purchaseOrder.getCreatedAt().format($dateFormatter)</td>
|
|
|
55 |
<td> <input class="form-control btn btn-primary editViewPurchaseOrder" data-poid="$purchaseOrder.getId()" type="button" value="Edit" data-toggle="modal"
|
|
|
56 |
data-target="#warehouseEditPurchaseContainer"></td>
|
|
|
57 |
<td> <input class="form-control btn btn-primary closePurchaseOrder" data-poid="$purchaseOrder.getId()" type="button" value="Close"></td>
|
|
|
58 |
|
|
|
59 |
</tr>
|
|
|
60 |
#end
|
|
|
61 |
|
|
|
62 |
</tbody>
|
|
|
63 |
</table>
|
|
|
64 |
</div>
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
<div id="warehouseEditPurchaseContainer" class="modal" role="dialog">
|
|
|
69 |
<div class="modal-dialog">
|
|
|
70 |
<div class="modal-content">
|
|
|
71 |
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
|
|
74 |
</div>
|
|
|
75 |
|
|
|
76 |
</section>
|