diff --git a/application/libraries/tokens/Token_customer.php b/application/libraries/tokens/Token_customer.php index c36fe1b0f..615e72d26 100644 --- a/application/libraries/tokens/Token_customer.php +++ b/application/libraries/tokens/Token_customer.php @@ -33,10 +33,6 @@ class Token_customer extends Token return trim($customer_info->first_name . ' ' . $customer_info->last_name); } } - elseif (!empty($this->customer_info)) - { - - } return $value; } diff --git a/application/models/Sale.php b/application/models/Sale.php index 518210d90..0b6ae5b0b 100644 --- a/application/models/Sale.php +++ b/application/models/Sale.php @@ -1294,10 +1294,12 @@ class Sale extends CI_Model */ private function save_customer_rewards($customer_id, $sale_id, $total_amount, $total_amount_used) { - if (!empty($customer_id) && $this->config->item('customer_reward_enable') == TRUE) { + if (!empty($customer_id) && $this->config->item('customer_reward_enable') == TRUE) + { $package_id = $this->Customer->get_info($customer_id)->package_id; - if (!empty($package_id)) { + if (!empty($package_id)) + { $points_percent = $this->Customer_rewards->get_points_percent($package_id); $points = $this->Customer->get_info($customer_id)->points; $points = ($points == NULL ? 0 : $points);