Jobs now linked to POs
This commit is contained in:
parent
8ff0e2b315
commit
1f9a11d371
|
|
@ -14,6 +14,7 @@
|
|||
<th><?php echo $paginator->sort('created');?></th>
|
||||
<th><?php echo $paginator->sort('Job Number');?></th>
|
||||
<th><?php echo $paginator->sort('enquiry_id');?></th>
|
||||
<th>POs</th>
|
||||
<th><?php echo $paginator->sort('Customer');?></th>
|
||||
<th><?php echo $paginator->sort('customer_order_number');?></th>
|
||||
|
||||
|
|
@ -35,7 +36,13 @@
|
|||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
|
||||
$poLink = "";
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
$poLink .= $html->link($po['title']." ", array('controller'=>'purchase_orders', 'action'=>'view', $po['id']));
|
||||
}
|
||||
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
|
||||
|
||||
|
|
@ -52,6 +59,7 @@
|
|||
<td class="tinytext">
|
||||
<?php echo $html->link($job['Enquiry']['title'], array('controller' => 'enquiries', 'action' => 'view', $job['Enquiry']['id'])); ?>
|
||||
</td>
|
||||
<td><?=$poLink?></td>
|
||||
<td>
|
||||
<?php echo $html->link($customers[$job['Enquiry']['customer_id']], array('controller'=>'customers',
|
||||
'action'=>'view', $job['Enquiry']['customer_id'])); ?>
|
||||
|
|
@ -80,7 +88,7 @@
|
|||
<td>
|
||||
<?php echo $job['Job']['shipment_category']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<td class="tinytext">
|
||||
<?php echo $job['Job']['comments']; ?>
|
||||
</td>
|
||||
<td class="actions">
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ echo $paginator->counter(array(
|
|||
<th><?php echo $paginator->sort('issue_date');?></th>
|
||||
<th><?php echo $paginator->sort('dispatch_date');?></th>
|
||||
<th><?php echo $paginator->sort('date_arrived');?></th>
|
||||
<th><?php echo $paginator->sort('title');?></th>
|
||||
<th><?php echo $paginator->sort('PO Number');?></th>
|
||||
<th>Jobs</th>
|
||||
<th><?php echo $paginator->sort('principle_id');?></th>
|
||||
<th><?php echo $paginator->sort('principle_reference');?></th>
|
||||
|
|
@ -44,7 +44,7 @@ foreach ($purchaseOrders as $purchaseOrder):
|
|||
<?php echo isEmptyDate($purchaseOrder['PurchaseOrder']['date_arrived']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $purchaseOrder['PurchaseOrder']['title']; ?>
|
||||
<?php echo $html->link($purchaseOrder['PurchaseOrder']['title'], array('controller'=>'purchase_orders', 'action'=>'view', $purchaseOrder['PurchaseOrder']['id'])); ?>
|
||||
</td>
|
||||
<td class="tinytext">
|
||||
<?php echo $jobLink; ?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue