248 lines
8.9 KiB
PHP
Executable file
248 lines
8.9 KiB
PHP
Executable file
<h3><?=$jobRangeTitle?></h3>
|
|
|
|
<h4>Totals</h4>
|
|
<table cellpadding="0" cellspacing="0" class="totals">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th class="purple">Gross Sales AUD</th>
|
|
<th class="purple">Net Sales AUD</th>
|
|
<th class="purple">Gross Profit AUD</th>
|
|
<th class="purple">Net Export Sales Converted to Or Invoiced in AUD</th>
|
|
<th class="purple">Gross Profit Value Export in AUD</th>
|
|
<th class="purple">Av. GP% Excl Commissions</th>
|
|
|
|
<th class="lightblue">Gross Australian Sales Foreign Currency</th>
|
|
<th class="lightblue">Net Australian Sales Foreign Currency</th>
|
|
<th class="lightblue">Gross Profit value Australian Sales Foreign Currency</th>
|
|
<th class="lightgreen">Gross Export Sales Foreign Currency</th>
|
|
<th class="lightgreen">Net Export Sales Foreign Currency</th>
|
|
<th class="lightgreen">Gross Profit Value After Discount Exports Foreign Currency</th>
|
|
<th class="darkgreen">Gross Commissions</th>
|
|
<th class="darkgreen">Net Commisions</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td id="totals"><?=$number->currency($totals['company_gross_sales_aud']);?></td>
|
|
<td><?=$number->currency($totals['net_sales_aud']);?></td>
|
|
<td><?=$number->currency($totals['gross_profit_aud']);?></td>
|
|
|
|
<td><?=$number->currency($totals['net_export_sales_aud']);?></td>
|
|
<td><?=$number->currency($totals['gross_profit_exports_aud']);?></td>
|
|
<td><?=$number->toPercentage($totals['gp_percent']);?></td>
|
|
|
|
<td><?=$number->currency($totals['gross_australian_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['net_australian_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['gross_profit_value_australian_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['gross_export_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['net_export_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['gross_profit_value_after_discount_exports_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['gross_commissions']);?></td>
|
|
<td><?=$number->currency($totals['net_commissions']);?></td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<h4>List of Jobs</h4>
|
|
<table cellpadding="0" cellspacing="0" class="jobsTable">
|
|
<thead>
|
|
<tr>
|
|
<th>Order Received</th>
|
|
<th>All Paid</th>
|
|
<th>All Sent</th>
|
|
<th>Status</th>
|
|
<th class="sale_category">Sale Category</th>
|
|
<th>Job Type</th>
|
|
<th>Shipment Category</th>
|
|
<th>Job Number</th>
|
|
<th>Enquiry Number</th>
|
|
<th>Principle</th>
|
|
<th>CMC POs</th>
|
|
<th>Customer</th>
|
|
<th>Sale Currency</th>
|
|
<th class="purple">Gross Sales AUD</th>
|
|
<th class="purple">Net Sales AUD</th>
|
|
<th class="purple">Gross Profit AUD</th>
|
|
<th class="purple">Net Export Sales Converted to Or Invoiced in AUD</th>
|
|
<th class="purple">Gross Profit Value Export in AUD</th>
|
|
<th class="purple">GP% Excl Commissions</th>
|
|
<th class="pink">ATO Exchange Rate</th>
|
|
<th class="lightblue">Gross Australian Sales Foreign Currency</th>
|
|
<th class="lightblue">Net Australian Sales Foreign Currency</th>
|
|
<th class="lightblue">Gross Profit value Australian Sales Foreign Currency</th>
|
|
<th class="lightgreen">Gross Export Sales Foreign Currency</th>
|
|
<th class="lightgreen">Net Export Sales Foreign Currency</th>
|
|
<th class="lightgreen">Gross Profit Value After Discount Exports Foreign Currency</th>
|
|
<th class="darkgreen">Gross Commissions</th>
|
|
<th class="darkgreen">Net Commisions</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
|
|
<?foreach($jobs as $job):?>
|
|
|
|
<? if($job['Job']['job_status'] == 'JOB CANCELLED' || $job['Job']['job_status'] == 'JOB ON HOLD' ) {
|
|
$class='cancelled';
|
|
|
|
}
|
|
else {
|
|
$class ='';
|
|
}
|
|
|
|
?>
|
|
|
|
<tr class="<?=$class?>">
|
|
<td><?=$this->element('isEmptyDate', array('date'=>$job['Job']['date_order_received']));?></td>
|
|
|
|
<td>
|
|
<?=$this->element('booleanTick', array('bool'=>$job['Job']['all_paid'])); ?>
|
|
</td>
|
|
<td>
|
|
<?=$this->element('booleanTick', array('bool'=>$job['Job']['all_sent'])); ?>
|
|
</td>
|
|
|
|
|
|
<td><?=$job['Job']['job_status'];?></td>
|
|
<td>
|
|
<?=$sale_category_array[$job['Job']['sale_category']];?>
|
|
</td>
|
|
<td>
|
|
<?=$job['Job']['job_type'];?></td>
|
|
<td><?=$shipment_category_options[$job['Job']['shipment_category']];?></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><?=$html->link($principleList[$job['Enquiry']['principle_id']], '/principles/view/'.$job['Enquiry']['principle_id']);?></td>
|
|
<td><?
|
|
$poString = '';
|
|
foreach($job['PurchaseOrder'] as $po) {
|
|
$poString .= ' '.$html->link($po['title'], array('controller'=>'purchase_orders', 'action'=>'view', $po['id']));
|
|
}
|
|
echo $poString;
|
|
?>
|
|
</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']['net_export_sales_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>
|
|
<tfoot>
|
|
<tr>
|
|
<th>Order Received</th>
|
|
<th>All Paid</th>
|
|
<th>All Sent</th>
|
|
<th>Status</th>
|
|
<th class="sale_category">Sale Category</th>
|
|
<th>Job Type</th>
|
|
<th>Shipment Category</th>
|
|
<th>Job Number</th>
|
|
<th>Enquiry Number</th>
|
|
<th>Principle</th>
|
|
<th>CMC POs</th>
|
|
<th>Customer</th>
|
|
<th>Sale Currency</th>
|
|
<th class="purple">Gross Sales AUD</th>
|
|
<th class="purple">Net Sales AUD</th>
|
|
<th class="purple">Gross Profit AUD</th>
|
|
<th class="purple">Net Export Sales Converted to Or Invoiced in AUD</th>
|
|
<th class="purple">Gross Profit Value Export in AUD</th>
|
|
<th class="purple">GP% Excl Commissions</th>
|
|
<th class="pink">ATO Exchange Rate</th>
|
|
<th class="lightblue">Gross Australian Sales Foreign Currency</th>
|
|
<th class="lightblue">Net Australian Sales Foreign Currency</th>
|
|
<th class="lightblue">Gross Profit value Australian Sales Foreign Currency</th>
|
|
<th class="lightgreen">Gross Export Sales Foreign Currency</th>
|
|
<th class="lightgreen">Net Export Sales Foreign Currency</th>
|
|
<th class="lightgreen">Gross Profit Value After Discount Exports Foreign Currency</th>
|
|
<th class="darkgreen">Gross Commissions</th>
|
|
<th class="darkgreen">Net Commisions</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td id="totals"><?=$number->currency($totals['company_gross_sales_aud']);?></td>
|
|
<td><?=$number->currency($totals['net_sales_aud']);?></td>
|
|
<td><?=$number->currency($totals['gross_profit_aud']);?></td>
|
|
|
|
<td><?=$number->currency($totals['net_export_sales_aud']);?></td>
|
|
<td><?=$number->currency($totals['gross_profit_exports_aud']);?></td>
|
|
<td><?=$number->toPercentage($totals['gp_percent']);?></td>
|
|
<td><?//ATO Exch Rate?></td>
|
|
<td><?=$number->currency($totals['gross_australian_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['net_australian_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['gross_profit_value_australian_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['gross_export_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['net_export_sales_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['gross_profit_value_after_discount_exports_foreign_currency']);?></td>
|
|
<td><?=$number->currency($totals['gross_commissions']);?></td>
|
|
<td><?=$number->currency($totals['net_commissions']);?></td>
|
|
|
|
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|