diff --git a/views/jobs/get_editable_row.ctp b/views/jobs/get_editable_row.ctp index fc5a28b4..8ea1ca71 100644 --- a/views/jobs/get_editable_row.ctp +++ b/views/jobs/get_editable_row.ctp @@ -15,14 +15,6 @@ }); - $('#_date_order_placed_on_principle_display').datepicker({ - showButtonPanel: true, - dateFormat: 'd M yy', - altFormat: 'yy-mm-dd', - altField: '#_date_order_placed_on_principle' - - }); - $('#_date_scheduled_ex_works_display').datepicker({ showButtonPanel: true, dateFormat: 'd M yy', @@ -86,17 +78,24 @@ else { echo $poString; ?> -input('date_order_placed_on_principle_display', array('value'=>$this->element('isEmptyDate', array('date'=>$job['Job']['date_order_placed_on_principle'])), 'label'=>false, 'id'=>$job['Job']['id'].'_date_order_placed_on_principle_display'));?> - input('date_order_placed_on_principle', array('type'=>'hidden', 'id'=>$job['Job']['id'].'_date_order_placed_on_principle', 'value'=>$job['Job']['date_order_placed_on_principle']));?> +element('isEmptyDate', array('date'=>$po['issue_date'])); + echo "
"; + } + ?> link($job['Customer']['name'], array('controller'=>'customers','action'=>'view', $job['Customer']['id']));?> input('customer_order_number', array('value'=>$job['Job']['customer_order_number'], 'label'=>false));?> - - - input('supplier_reference', array('value'=>$job['Job']['supplier_reference'], 'label'=>false));?> + "; + } + ?> diff --git a/views/jobs/get_viewable_row.ctp b/views/jobs/get_viewable_row.ctp index 4a718bc1..d735970e 100644 --- a/views/jobs/get_viewable_row.ctp +++ b/views/jobs/get_viewable_row.ctp @@ -18,14 +18,24 @@ echo $poString; ?> - element('isEmptyDate', array('date'=>$job['Job']['date_order_placed_on_principle']));?> + element('isEmptyDate', array('date'=>$po['issue_date'])); + echo "
"; + } + ?> + link($job['Customer']['name'], array('controller'=>'customers','action'=>'view', $job['Customer']['id']));?> - - + "; + } + ?> diff --git a/views/jobs/index.ctp b/views/jobs/index.ctp index f22fcb44..a29ade9f 100644 --- a/views/jobs/index.ctp +++ b/views/jobs/index.ctp @@ -31,141 +31,150 @@ echo $paginator->counter(array( - - - +
+ + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - create('Job', array('action'=>'ajax_edit', 'class'=>'job_table_form', 'default'=>false)); - ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + create('Job', array('action'=>'ajax_edit', 'class'=>'job_table_form', 'default'=>false)); + ?> - + - - - - - - - - - - - - + + + + + + + + + + + + - + - - - - - + + + + - - - + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - -
Actionssort('Order Received', 'date_order_received');?>sort('Status', 'job_status');?>sort('Sale Category');?>sort('Job Type', 'job_type');?>sort('Shipment Category','shipment_category');?>sort('Job Number','title');?>Enquiry NumberCMC POsDate Order Placed on Principlesort('Customer','Customer.name');?>Customer Order Nosort('Supplier Ref');?>sort('Scheduled Ex-Works', 'date_scheduled_ex_works');?>sort('Date Sent to Customer', 'date_sent_to_customer');?>sort('Freight Paid By CMC');?>sort('Sale Currency');?>sort('Gross Sales AUD');?>sort('Net Sales AUD');?>sort('Gross Profit AUD');?>sort('Net Export Sales Converted to Or Invoiced in AUD');?>sort('Gross Profit Value Export in AUD');?>sort('GP% Excl Commissions');?>sort('ATO Exchange Rate');?>sort('Gross Australian Sales Foreign Currency');?>sort('Net Australian Sales Foreign Currency');?>sort('Gross Profit value Australian Sales Foreign Currency');?>sort('Gross Export Sales Foreign Currency');?>sort('Net Export Sales Foreign Currency');?>sort('Gross Profit Value After Discount Exports Foreign Currency');?>sort('Gross Commissions');?>sort('Net Commisions');?>
Actionssort('Order Received', 'date_order_received');?>sort('Status', 'job_status');?>sort('Sale Category');?>sort('Job Type', 'job_type');?>sort('Shipment Category','shipment_category');?>sort('Job Number','title');?>Enquiry NumberCMC POsDate Order Placed on Principlesort('Customer','Customer.name');?>Customer Order Nosort('Supplier Ref');?>sort('Scheduled Ex-Works', 'date_scheduled_ex_works');?>sort('Date Sent to Customer', 'date_sent_to_customer');?>sort('Freight Paid By CMC');?>sort('Sale Currency');?>sort('Gross Sales AUD');?>sort('Net Sales AUD');?>sort('Gross Profit AUD');?>sort('Net Export Sales Converted to Or Invoiced in AUD');?>sort('Gross Profit Value Export in AUD');?>sort('GP% Excl Commissions');?>sort('ATO Exchange Rate');?>sort('Gross Australian Sales Foreign Currency');?>sort('Net Australian Sales Foreign Currency');?>sort('Gross Profit value Australian Sales Foreign Currency');?>sort('Gross Export Sales Foreign Currency');?>sort('Net Export Sales Foreign Currency');?>sort('Gross Profit Value After Discount Exports Foreign Currency');?>sort('Gross Commissions');?>sort('Net Commisions');?>
- element('isEmptyDate', array('date'=>$job['Job']['date_order_received']));?> - - - link($job['Job']['title'], array('controller'=>'jobs', 'action'=>'view', $job['Job']['id']));?>link($job['Enquiry']['title'], array('controller'=>'enquiries','action'=>'view', $job['Enquiry']['id']));?> - link($po['title'], array('controller'=>'purchase_orders', 'action'=>'view', $po['id'])); - } - echo $poString; - ?> - element('isEmptyDate', array('date'=>$job['Job']['date_order_placed_on_principle']));?>link($job['Customer']['name'], array('controller'=>'customers','action'=>'view', $job['Customer']['id']));?> - -
+ element('isEmptyDate', array('date'=>$job['Job']['date_order_received']));?> + + + link($job['Job']['title'], array('controller'=>'jobs', 'action'=>'view', $job['Job']['id']));?>link($job['Enquiry']['title'], array('controller'=>'enquiries','action'=>'view', $job['Enquiry']['id']));?> + link($po['title'], array('controller'=>'purchase_orders', 'action'=>'view', $po['id']))."
"; + } + ?> +
element('isEmptyDate', array('date'=>$po['issue_date'])); + echo "
"; + } + ?> +
link($job['Customer']['name'], array('controller'=>'customers','action'=>'view', $job['Customer']['id']));?> + + - - "; + } + ?> + - element('isEmptyDate', array('date'=>$job['Job']['date_scheduled_ex_works']));?> - - element('isEmptyDate', array('date'=>$job['Job']['date_order_sent_to_customer']));?> - - - - - + + element('isEmptyDate', array('date'=>$job['Job']['date_scheduled_ex_works']));?> + + element('isEmptyDate', array('date'=>$job['Job']['date_order_sent_to_customer']));?> + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - -
+ + + + + + + + + + + + + + + + +
+ +
@@ -175,5 +184,5 @@ echo $paginator->counter(array(
end(); ?> - \ No newline at end of file