| Line 23... |
Line 23... |
| 23 |
<th> Warehouse</th>
|
23 |
<th> Warehouse</th>
|
| 24 |
<th> Buyer</th>
|
24 |
<th> Buyer</th>
|
| 25 |
<th> Total Cost </th>
|
25 |
<th> Total Cost </th>
|
| 26 |
<th> Created On</th>
|
26 |
<th> Created On</th>
|
| 27 |
<th> Status </th>
|
27 |
<th> Status </th>
|
| - |
|
28 |
<th> Transaction </th>
|
| 28 |
<th> View</th>
|
29 |
<th> View</th>
|
| 29 |
<th> Reopen</th>
|
30 |
<th> Reopen</th>
|
| 30 |
|
31 |
|
| 31 |
</tr>
|
32 |
</tr>
|
| 32 |
</thead>
|
33 |
</thead>
|
| Line 43... |
Line 44... |
| 43 |
<td>#if($warehouseMap.get($purchaseOrder.getWarehouseId()))$warehouseMap.get($purchaseOrder.getWarehouseId())#{else}$purchaseOrder.getWarehouseId()#end</td>
|
44 |
<td>#if($warehouseMap.get($purchaseOrder.getWarehouseId()))$warehouseMap.get($purchaseOrder.getWarehouseId())#{else}$purchaseOrder.getWarehouseId()#end</td>
|
| 44 |
<td>$sellerMap.get($purchaseOrder.getBuyerId()).getLabel()</td>
|
45 |
<td>$sellerMap.get($purchaseOrder.getBuyerId()).getLabel()</td>
|
| 45 |
<td>$purchaseOrder.getTotalCost()</td>
|
46 |
<td>$purchaseOrder.getTotalCost()</td>
|
| 46 |
<td>$purchaseOrder.getCreatedAt().format($dateFormatter)</td>
|
47 |
<td>$purchaseOrder.getCreatedAt().format($dateFormatter)</td>
|
| 47 |
<td>$purchaseOrder.getStatus() </td>
|
48 |
<td>$purchaseOrder.getStatus() </td>
|
| - |
|
49 |
## An internal movement is raised as a transaction, so the invoice being GRN'd leads straight back
|
| - |
|
50 |
## to its PO through this id - search the table by it rather than hunting through dates.
|
| - |
|
51 |
<td>#if($purchaseOrder.getTransactionId())$purchaseOrder.getTransactionId()#end</td>
|
| 48 |
<td> <input class="form-control btn btn-primary viewPurchaseOrderlineItem" type="button" value="View" data-poid="$purchaseOrder.getId()"
|
52 |
<td> <input class="form-control btn btn-primary viewPurchaseOrderlineItem" type="button" value="View" data-poid="$purchaseOrder.getId()"
|
| 49 |
data-toggle="modal"
|
53 |
data-toggle="modal"
|
| 50 |
data-target="#warehouseLineItem"> </td>
|
54 |
data-target="#warehouseLineItem"> </td>
|
| 51 |
## Only a movement between our own warehouses, and only once it has closed: an outside vendor's PO
|
55 |
## Only a movement between our own warehouses, and only once it has closed: an outside vendor's PO
|
| 52 |
## that has closed is settled with that vendor, not reopened here.
|
56 |
## that has closed is settled with that vendor, not reopened here.
|