From eb4f3b425b75f4924506f97391b216872790d8cf Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Wed, 26 Apr 2017 20:06:08 +0100 Subject: [PATCH] fixes for giftcard --- application/controllers/Sales.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index 380123ad8..74d8863bd 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -229,7 +229,8 @@ class Sales extends Secure_Controller $cur_giftcard_value = $this->Giftcard->get_giftcard_value($giftcard_num); $cur_giftcard_customer = $this->Giftcard->get_giftcard_customer($giftcard_num); $customer_id = $this->sale_lib->get_customer(); - if(isset($cur_giftcard_customer) && $cur_giftcard_customer != $customer_id){ + if(isset($cur_giftcard_customer) && $cur_giftcard_customer != $customer_id) + { $data['error'] = $this->lang->line('giftcards_cannot_use', $giftcard_num); } elseif(($cur_giftcard_value - $current_payments_with_giftcard) <= 0)