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