diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index 2a24ea168..3f7bd3614 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -674,7 +674,7 @@ class Sales extends Secure_area $sale_data = array( 'sale_time' => $start_date_formatter->format('Y-m-d H:i:s'), - 'customer_id' => $this->input->post('customer_id'), + 'customer_id' => $this->input->post('customer_id') != '' ? $this->input->post('customer_id') : null, 'employee_id' => $this->input->post('employee_id'), 'comment' => $this->input->post('comment'), 'invoice_number' => $this->input->post('invoice_number') diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php index 23111f77f..fa5cd198f 100644 --- a/application/helpers/table_helper.php +++ b/application/helpers/table_helper.php @@ -50,7 +50,7 @@ function get_sales_manage_table_data_rows($sales, $controller) if($table_data_rows == '') { - $table_data_rows .= "