Fix to sales edit server error when customer is '' (#337)

This commit is contained in:
FrancescoUK committed 2016-03-08 18:16:31 +00:00
1 parent 028bdb074b
commit b36a03c4bc
1 file changed
+1 -1
+1 -1
View File
@@ -668,7 +668,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')