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

This commit is contained in:
FrancescoUK committed 2016-02-22 08:51:18 +00:00
1 parent 5f0028a983
commit 45c0163a9d
1 file changed
+1 -1
+1 -1
View File
@@ -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')