mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-11-28 03:16:26 -05:00
review change empty check
This commit is contained in:
1 parent
74681e78e3
commit
cdc401dd7e
1 file changed
+1
-1
@@ -536,7 +536,7 @@ class Sale extends CI_Model
|
||||
$total_amount = floatval($total_amount) + floatval($payment['payment_amount']);
|
||||
}
|
||||
|
||||
if(isset($customer_id) && $customer_id!= NULL && $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(isset($package_id) && $package_id!=NULL){
|
||||
$points_percent = $this->Customer_rewards->get_points_percent($package_id);
|
||||
|
||||
Reference in new issue
Block a user