fix issue with sale edit

This commit is contained in:
FrancescoUK committed 2016-03-08 21:53:29 +00:00
1 parent 5588c1e22e
commit bf2c6bfa1f
1 file changed
+1 -1
+1 -1
View File
@@ -672,7 +672,7 @@ class Sales extends Secure_area
'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')
'invoice_number' => $this->input->post('invoice_number') != '' ? $this->input->post('invoice_number') : null
);
if ($this->Sale->update($sale_data, $sale_id))