2011-03-23 00:18:21 -07:00
|
|
|
<?php
|
|
|
|
|
|
2011-03-23 20:41:54 -07:00
|
|
|
//echo $javascript->link('jquery.jeditable.mini');
|
|
|
|
|
//echo $javascript->link('jobindex_editinplace');
|
|
|
|
|
//echo $javascript->link('addjob');
|
2011-04-04 01:48:58 -07:00
|
|
|
//echo $javascript->link('job_index');
|
2011-03-22 00:05:56 -07:00
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2><?php __('Jobs');?></h2>
|
2011-03-23 20:41:54 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-28 18:47:50 -07:00
|
|
|
<? //<iframe src="/jobs/index_grid" id="jobs_grid_iframe"></iframe>
|
|
|
|
|
?>
|
2011-03-24 01:21:26 -07:00
|
|
|
|
2011-04-04 01:48:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="paging">
|
|
|
|
|
|
|
|
|
|
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
|
|
|
|
|
| <?php echo $paginator->numbers();?>
|
|
|
|
|
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="jobTable">
|
|
|
|
|
<table cellpadding="0" cellspacing="0" class="jobsTable">
|
|
|
|
|
<tr>
|
|
|
|
|
<th><? //Select Checkbox ?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Status');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Sale Category 1');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Sale Category 2');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Shipment Category');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Job Number');?></th>
|
|
|
|
|
<th>CMC POs</th>
|
|
|
|
|
<th><?php echo $paginator->sort('Customer');?></th>
|
|
|
|
|
<th>Description</th>
|
|
|
|
|
<th>Customer Order No</th>
|
|
|
|
|
<th><?php echo $paginator->sort('Order Received');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Supplier Ref');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Scheduled Ex-Works');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Date Sent to Customer');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Freight Paid By CMC');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Sale Currency');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Gross Sales AUD');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Net Sales AUD');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Gross Profit AUD');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Net Export Sales Converted to Or Charged in AUD');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Gross Profit Value Export in AUD');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('GP% Excl Commissions');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Company Gross Sales AUD');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('ATO Exchange Rate');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Gross Australian Sales Foreign Currency');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Net Australian Sales Foreign Currency');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Gross Profit value Australian Sales Foreign Currency');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Gross Export Sales Foreign Currency');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Net Export Sales Foreign Currency');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Gross Profit Value After Discount Exports Foreign Currency');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Gross Commissions');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('Net Commisions');?></th>
|
|
|
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
|
|
|
</tr>
|
|
|
|
|
<? foreach($jobs as $job):?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><input type="checkbox" id="<?=$job['Job']['id']?>" class="selectJob"></td>
|
|
|
|
|
<td><?=$job['Job']['job_status'];?></td>
|
|
|
|
|
<td>SALE CATEGORY 1 DROPDOWN</td>
|
|
|
|
|
<td>Sale Cat 2 Dropdown</td>
|
|
|
|
|
<td>Shipment Cat.</td>
|
|
|
|
|
<td><?=$job['Job']['title'];?></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><?=$job['Customer']['name'];?></td>
|
|
|
|
|
<td><?=$job['Job']['comments'];?></td>
|
|
|
|
|
<td><?=$job['Job']['customer_order_number'];?></td>
|
|
|
|
|
<td><?=$job['Job']['date_order_received'];?></td>
|
|
|
|
|
<td><?=$job['Job']['supplier_reference'];?></td>
|
|
|
|
|
<td><?=$job['Job']['date_scheduled_ex_works'];?></td>
|
|
|
|
|
<td><?=$job['Job']['date_order_sent_to_customer'];?></td>
|
|
|
|
|
<td><?=$job['Job']['domestic_freight_paid_by'];?></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>Net Export Sales Conv to AUD?</td>
|
|
|
|
|
<td><?=$job['Job']['gross_profit_exports_aud'];?></td>
|
|
|
|
|
<td><?=$job['Job']['gp_percent'];?>%</td>
|
|
|
|
|
<td>? Double column?</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>
|
|
|
|
|
<td>Actions</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<? endforeach;?>
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
2011-03-24 01:21:26 -07:00
|
|
|
<div id="jobsIndex">
|
2011-04-04 01:48:58 -07:00
|
|
|
|
2010-05-03 23:49:57 -07:00
|
|
|
</div>
|
2010-07-09 00:05:54 -07:00
|
|
|
|
2011-03-22 00:05:56 -07:00
|
|
|
<div id="editDiv">
|
|
|
|
|
</div>
|
2010-05-17 23:45:38 -07:00
|
|
|
|
2011-04-04 01:48:58 -07:00
|
|
|
<? debug($jobs);
|
2011-03-28 18:51:00 -07:00
|
|
|
?>
|