diff --git a/controllers/jobs_controller.php b/controllers/jobs_controller.php index 8955be75..2a5b65bd 100644 --- a/controllers/jobs_controller.php +++ b/controllers/jobs_controller.php @@ -17,6 +17,7 @@ class JobsController extends AppController { //$this->Job->recursive = 1; $this->set('jobs', $this->paginate()); $this->set('customers', $this->Job->Enquiry->Customer->find('list')); + $this->set('currencies', $this->Job->Currency->find('list')); } function view($id = null) { @@ -123,7 +124,7 @@ class JobsController extends AppController { if (empty($this->data)) { $job = $this->Job->read(null, $id); $this->data = $job; - + $this->set('currencies', $this->Job->Currency->find('list')); } diff --git a/models/job.php b/models/job.php index 9c5056b2..b09892f4 100644 --- a/models/job.php +++ b/models/job.php @@ -27,7 +27,9 @@ class Job extends AppModel { 'fields' => '', 'order' => '', 'counterCache' => true - ) + ), + + 'Currency' ); diff --git a/views/enquiries/do_search.ctp b/views/enquiries/do_search.ctp index 08632a19..f9c51633 100644 --- a/views/enquiries/do_search.ctp +++ b/views/enquiries/do_search.ctp @@ -184,6 +184,7 @@ + No matching records found :( Try modifying your search terms"; } diff --git a/views/jobs/add.ctp b/views/jobs/add.ctp index f189b801..5b1969bd 100644 --- a/views/jobs/add.ctp +++ b/views/jobs/add.ctp @@ -43,6 +43,7 @@ echo $form->input('date_scheduled_ex_works', array('type'=>'hidden')); echo $form->input('date_order_sent_to_customer', array('type'=>'hidden')); echo $form->input('customer_order_number'); + echo $form->input('supplier_reference'); echo $form->input('domestic_freight_paid_by', array('type'=>'select', 'options'=>$freight_paid_options)); echo $form->input('sale_category', array('type'=>'select', 'options'=>$sale_category_options)); echo $form->input('shipment_category', array('type'=>'select', 'options'=>$shipment_category_options)); diff --git a/views/jobs/edit.ctp b/views/jobs/edit.ctp index 0cf28920..05d1f9f9 100644 --- a/views/jobs/edit.ctp +++ b/views/jobs/edit.ctp @@ -85,12 +85,37 @@ echo $form->input('date_scheduled_ex_works', array('type'=>'hidden')); echo $form->input('date_order_sent_to_customer', array('type'=>'hidden')); echo $form->input('customer_order_number'); + echo $form->input('supplier_reference'); echo $form->input('domestic_freight_paid_by', array('type'=>'select', 'options'=>$freight_paid_options, 'showEmpty'=>true)); echo $form->input('sale_category', array('type'=>'select', 'options'=>$sale_category_options)); echo $form->input('shipment_category', array('type'=>'select', 'options'=>$shipment_category_options)); echo $form->input('id'); echo $form->input('comments'); ?> +
+ input('company_gross_sales_aud'); + echo $form->input('net_sales_aud'); + echo $form->input('gross_profit_aud'); + echo $form->input('ato_exchange_rate'); + echo $form->input('gst'); + echo $form->input('currency_id'); + echo $form->input('gst_amount'); + echo $form->input('gross_commisions'); + echo $form->input('invoiced_amount_inc_gst'); + echo $form->input('net_export_sales_aud'); + echo $form->input('gross_profit_exports_aud'); + echo $form->input('gp_percent'); + echo $form->input('gross_australian_sales_foriegn_currency'); + echo $form->input('net_australian_sales_foreign_currency'); + echo $form->input('gross_profit_value_australian_sales_foreign_currency'); + echo $form->input('gross_export_sales_foreign_currency'); + echo $form->input('net_export_sales_foreign_currency'); + echo $form->input('gross_profit_value_after_discount_exports_foreign_currency'); + echo $form->input('gross_commissions'); + echo $form->input('net_commissions'); + ?> +
end('Submit');?> diff --git a/views/jobs/index.ctp b/views/jobs/index.ctp index 7979e6d5..96e824be 100644 --- a/views/jobs/index.ctp +++ b/views/jobs/index.ctp @@ -1,4 +1,6 @@ -
+link('jobindex'); ?> + +

sort('Job Number');?> sort('enquiry_id');?> sort('Customer');?> + sort('customer_order_number');?> + sort('supplier_reference');?> + sort('date_order_received');?> sort('date_order_placed_on_principle');?> sort('date_scheduled_ex_works');?> sort('date_order_sent_to_customer');?> - sort('customer_order_number');?> + + sort('domestic_freight_paid_by');?> sort('sale_category');?> sort('shipment_category');?> @@ -43,20 +49,28 @@ echo date('j M Y',$time->toUnix($job['Job']['created'])); ?> - - + link(__($job['Job']['title'], true), array('action' => 'view', $job['Job']['id'])); ?> link($job['Enquiry']['title'], array('controller' => 'enquiries', 'action' => 'view', $job['Enquiry']['id'])); ?> - + link($customers[$job['Enquiry']['customer_id']], array('controller'=>'customers', + 'action'=>'view', $job['Enquiry']['customer_id'])); ?> - - + + + + + + + + + + @@ -66,9 +80,7 @@ - - - + @@ -78,29 +90,22 @@ - + - link(__('View', true), array('action' => 'view', $job['Job']['id'])); ?> - link(__('Edit', true), array('action' => 'edit', $job['Job']['id'])); ?> + link(__('View', true), array('action' => 'view', $job['Job']['id'])); ?> + link(__('Edit', true), array('action' => 'edit', $job['Job']['id']), array('class'=>'editWindow')); ?> -

prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?> | numbers();?> next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
-
- -
+ - \ No newline at end of file + \ No newline at end of file diff --git a/webroot/css/quotenik.css b/webroot/css/quotenik.css index b05abdeb..963ec769 100755 --- a/webroot/css/quotenik.css +++ b/webroot/css/quotenik.css @@ -279,7 +279,7 @@ li .last { clear: both; color: #333; padding: 10px; - overflow: auto; + overflow: scroll; } #footer { clear: both; @@ -305,8 +305,6 @@ a#mailheaders { } - - #printemailbody { text-align: left; font-size: 90%; @@ -457,6 +455,8 @@ td.PriceSummary { /* Master Enquiry Register Styling */ + + table.mer { background: #fff; border:1px solid #ccc; @@ -467,7 +467,6 @@ table.mer { font-size: 85%; padding-left: 0; padding-right: 0; - overflow: auto; } th.mer {