mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-13 19:40:06 -04:00
Some indentation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user