added currency to job table
This commit is contained in:
parent
d107e13bc5
commit
24eaa4c0cd
|
|
@ -2,12 +2,12 @@
|
|||
<?
|
||||
|
||||
if($job['Job']['deleted'] == 1) {
|
||||
$rowClass = 'deleted';
|
||||
$button = '<button class="undeleteButton">Undelete</button>';
|
||||
$rowClass = 'deleted';
|
||||
$button = '<button class="undeleteButton">Undelete</button>';
|
||||
}
|
||||
else {
|
||||
$rowClass = '';
|
||||
$button = '<button class="deleteButton">X</button>';
|
||||
$rowClass = '';
|
||||
$button = '<button class="deleteButton">X</button>';
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -38,19 +38,19 @@ $button = '<button class="deleteButton">X</button>';
|
|||
<td class="nowrap"><?=$html->link($job['Enquiry']['title'], array('controller'=>'enquiries','action'=>'view', $job['Enquiry']['id']));?></td>
|
||||
<td><?=$html->link($principleList[$job['Enquiry']['principle_id']], '/principles/view/'.$job['Enquiry']['principle_id']);?></td>
|
||||
<td><?
|
||||
$poString = '';
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
$poString = '';
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
$poString .= ' '.$html->link($po['title'], array('controller'=>'purchase_orders', 'action'=>'view', $po['id']));
|
||||
}
|
||||
echo $poString;
|
||||
?>
|
||||
}
|
||||
echo $poString;
|
||||
?>
|
||||
</td>
|
||||
<td class="nowrap"><?
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
echo $this->element('isEmptyDate', array('date'=>$po['issue_date']));
|
||||
echo "<br>";
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td><?=$html->link($job['Customer']['name'], array('controller'=>'customers','action'=>'view', $job['Customer']['id']));?></td>
|
||||
<td>
|
||||
|
|
@ -58,11 +58,11 @@ $button = '<button class="deleteButton">X</button>';
|
|||
</td>
|
||||
|
||||
<td> <?
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
echo $po['principle_reference'];
|
||||
echo "<br>";
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
|
@ -77,21 +77,16 @@ $button = '<button class="deleteButton">X</button>';
|
|||
<?=$job['Currency']['name'];?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$job['Job']['company_gross_sales_aud'];?>
|
||||
|
||||
<?=$number->currency($job['Job']['net_sales_aud']);?>
|
||||
</td>
|
||||
<td> <?=$number->currency($job['Job']['gross_profit_aud']);?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$job['Job']['net_sales_aud'];?>
|
||||
</td>
|
||||
<td> <?=$job['Job']['gross_profit_aud'];?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$job['Job']['net_export_sales_aud'];?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$job['Job']['gross_profit_exports_aud'];?>
|
||||
<?=$number->currency($job['Job']['net_export_sales_aud']);?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$number->currency($job['Job']['gross_profit_exports_aud']);?>
|
||||
</td> <td>
|
||||
<?=$job['Job']['gp_percent'];?>
|
||||
</td>
|
||||
|
||||
|
|
|
|||
|
|
@ -158,13 +158,13 @@ echo $paginator->counter(array(
|
|||
<td>
|
||||
<?=$number->currency($job['Job']['net_sales_aud']);?>
|
||||
</td>
|
||||
<td> <?=$job['Job']['gross_profit_aud'];?>
|
||||
<td> <?=$number->currency($job['Job']['gross_profit_aud']);?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$job['Job']['net_export_sales_aud'];?>
|
||||
<?=$number->currency($job['Job']['net_export_sales_aud']);?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$job['Job']['gross_profit_exports_aud'];?>
|
||||
<?=$number->currency($job['Job']['gross_profit_exports_aud']);?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$job['Job']['gp_percent'];?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue