cmc-sales/views/jobs/view_report.ctp

90 lines
2.2 KiB
Plaintext
Raw Normal View History

2011-04-06 23:04:40 -07:00
<h3><?=$year?></h3>
<? if(isset($month)):?>
<h4><?=$month?></h4>
<?endif;?>
<table class="jobsTable">
<thead>
<tr>
<th>Order Received</th>
<th>Job Number</th>
<th>Enquiry Number</th>
<th>Principle</th>
<th>Customer</th>
<th>Sale Currency</th>
<th>Gross Sales AUD</th>
<th>Net Sales AUD</th>
<th>Gross Profit AUD</th>
<th>Net Sales Converted to or Charge in AUD</th>
<th>GP% Excl Commissions</th>
<th>ATO Exchange Rate</th>
</tr>
</thead>
<tbody>
<?foreach($jobs as $job):?>
<tr>
<td><?=$job['Job']['date_order_received'];?></td>
<td class="nowrap"><?=$html->link($job['Job']['title'], array('controller'=>'jobs', 'action'=>'view', $job['Job']['id']));?>
</td>
<td class="nowrap"><?=$html->link($job['Enquiry']['title'], array('controller'=>'enquiries','action'=>'view', $job['Enquiry']['id']));?>
</td>
<td><?=$principleList[$job['Enquiry']['principle_id']];?></td>
<td><?=$html->link($job['Customer']['name'], array('controller'=>'customers','action'=>'view', $job['Customer']['id']));?></td>
<td>
<?=$job['Currency']['name'];?>
</td>
<td>
<?=$job['Job']['company_gross_sales_aud'];?>
</td>
<td>
<?=$job['Job']['net_sales_aud'];?>
</td>
<td>
<?=$job['Job']['gross_profit_aud'];?>
</td>
<td>
<?=$job['Job']['gross_profit_exports_aud'];?>
</td>
<td>
<?=$job['Job']['gp_percent'];?>
</td>
<td>
<?=$job['Job']['ato_exchange_rate'];?>
</td>
<td> <?=$job['Job']['gross_australian_sales_foreign_currency'];?>
</td>
<td>
<?=$job['Job']['net_australian_sales_foreign_currency'];?>
</td>
<td> <?=$job['Job']['gross_profit_value_australian_sales_foreign_currency'];?>
</td>
<td>
<?=$job['Job']['gross_export_sales_foreign_currency'];?>
</td>
<td> <?=$job['Job']['net_export_sales_foreign_currency'];?>
</td>
<td> <?=$job['Job']['gross_profit_value_after_discount_exports_foreign_currency'];?>
</td>
<td>
<?=$job['Job']['gross_commissions'];?>
</td>
<td> <?=$job['Job']['net_commissions'];?>
</td>
</tr>
<?endforeach;?>
</tbody>
</table>
<?
print_r($jobs);
?>