diff --git a/application/controllers/orders.php b/application/controllers/orders.php index f60a22a0..9471afe6 100644 --- a/application/controllers/orders.php +++ b/application/controllers/orders.php @@ -289,8 +289,12 @@ class Orders extends CI_Controller { $this->Orders_model->MEI_Nationality = $this->Orders_model->GetNationalityID($this->input->post('Nationality')); $this->Orders_model->COLI_ProductSN = $this->input->post('cli_sn'); - - $this->Orders_model->COLI_OrderStartDate = $this->input->post('Date_Start'); + if(empty($this->input->post('Date_Start')){ + $this->Orders_model->COLI_OrderStartDate = $this->input->post('Date_Start_Mobile'); + }else{ + $this->Orders_model->COLI_OrderStartDate = $this->input->post('Date_Start'); + } + $this->Orders_model->MEI_Gender = $this->input->post('gender'); $this->Orders_model->MEI_Phone = $this->input->post('PhoneNo');