| Line 22... |
Line 22... |
| 22 |
<th> Supplier</th>
|
22 |
<th> Supplier</th>
|
| 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> Created By</th>
|
| 27 |
<th> Status </th>
|
28 |
<th> Status </th>
|
| 28 |
<th> Transaction </th>
|
29 |
<th> Transaction </th>
|
| 29 |
<th> View</th>
|
30 |
<th> View</th>
|
| 30 |
<th> Reopen</th>
|
- |
|
| 31 |
|
31 |
|
| 32 |
</tr>
|
32 |
</tr>
|
| 33 |
</thead>
|
33 |
</thead>
|
| 34 |
|
34 |
|
| 35 |
<tbody>
|
35 |
<tbody>
|
| Line 43... |
Line 43... |
| 43 |
|
43 |
|
| 44 |
<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>
|
| 45 |
<td>$sellerMap.get($purchaseOrder.getBuyerId()).getLabel()</td>
|
45 |
<td>$sellerMap.get($purchaseOrder.getBuyerId()).getLabel()</td>
|
| 46 |
<td>$purchaseOrder.getTotalCost()</td>
|
46 |
<td>$purchaseOrder.getTotalCost()</td>
|
| 47 |
<td>$purchaseOrder.getCreatedAt().format($dateFormatter)</td>
|
47 |
<td>$purchaseOrder.getCreatedAt().format($dateFormatter)</td>
|
| - |
|
48 |
<td>#if($purchaseOrder.getCreatedBy())$purchaseOrder.getCreatedBy()#end</td>
|
| 48 |
<td>$purchaseOrder.getStatus() </td>
|
49 |
<td>$purchaseOrder.getStatus() </td>
|
| 49 |
## An internal movement is raised as a transaction, so the invoice being GRN'd leads straight back
|
50 |
## 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 |
## 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>
|
52 |
<td>#if($purchaseOrder.getTransactionId())$purchaseOrder.getTransactionId()#end</td>
|
| 52 |
<td> <input class="form-control btn btn-primary viewPurchaseOrderlineItem" type="button" value="View" data-poid="$purchaseOrder.getId()"
|
53 |
<td> <input class="form-control btn btn-primary viewPurchaseOrderlineItem" type="button" value="View" data-poid="$purchaseOrder.getId()"
|
| 53 |
data-toggle="modal"
|
54 |
data-toggle="modal"
|
| 54 |
data-target="#warehouseLineItem"> </td>
|
55 |
data-target="#warehouseLineItem"> </td>
|
| 55 |
## Only a movement between our own warehouses, and only once it has closed: an outside vendor's PO
|
- |
|
| 56 |
## that has closed is settled with that vendor, not reopened here.
|
- |
|
| 57 |
<td>#if(!$purchaseOrder.isOpen() && $supplierMap.get($purchaseOrder.getSupplierId()) && $supplierMap.get($purchaseOrder.getSupplierId()).isInternal())<input class="form-control btn btn-warning reopenPurchaseOrder" type="button" value="Reopen" data-poid="$purchaseOrder.getId()">#end</td>
|
56 |
|
| 58 |
|
- |
|
| 59 |
</tr>
|
57 |
</tr>
|
| 60 |
#end
|
58 |
#end
|
| 61 |
|
59 |
|
| 62 |
</tbody>
|
60 |
</tbody>
|
| 63 |
</table>
|
61 |
</table>
|