fix issue with sale edit

This commit is contained in:
FrancescoUK
2016-03-08 21:53:29 +00:00
parent 5588c1e22e
commit bf2c6bfa1f

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))