From bf2c6bfa1f561a3be1c98b62f41bca9e8116c67d Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Tue, 8 Mar 2016 21:53:29 +0000 Subject: [PATCH] fix issue with sale edit --- application/controllers/Sales.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index 3a91f6209..fcc54ebcc 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -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))