diff --git a/upload/catalog/model/account/reward.php b/upload/catalog/model/account/reward.php index 0aabb30d1..4833bd09a 100644 --- a/upload/catalog/model/account/reward.php +++ b/upload/catalog/model/account/reward.php @@ -68,7 +68,7 @@ public function getTotalRewards(): int { /** * Get Total Points * - * @return int total number of point records + * @return int total number of reward point records */ public function getTotalPoints(): int { $query = $this->db->query("SELECT SUM(`points`) AS `total` FROM `" . DB_PREFIX . "customer_reward` WHERE `customer_id` = '" . (int)$this->customer->getId() . "' GROUP BY `customer_id`"); diff --git a/upload/system/library/cart/customer.php b/upload/system/library/cart/customer.php index 9b797e0f2..8c7cb086c 100644 --- a/upload/system/library/cart/customer.php +++ b/upload/system/library/cart/customer.php @@ -215,7 +215,7 @@ public function getNewsletter(): bool { /** * Get Address ID * - * @return int + * @return int address record */ public function getAddressId(): int { $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "address` WHERE `customer_id` = '" . (int)$this->customer_id . "' AND `default` = '1'"); @@ -230,7 +230,7 @@ public function getAddressId(): int { /** * Get Balance * - * @return float + * @return float total number of balance records */ public function getBalance(): float { $query = $this->db->query("SELECT SUM(`amount`) AS `total` FROM `" . DB_PREFIX . "customer_transaction` WHERE `customer_id` = '" . (int)$this->customer_id . "'"); @@ -241,7 +241,7 @@ public function getBalance(): float { /** * Get Reward Points * - * @return float + * @return float total number of reward point records */ public function getRewardPoints(): float { $query = $this->db->query("SELECT SUM(`points`) AS `total` FROM `" . DB_PREFIX . "customer_reward` WHERE `customer_id` = '" . (int)$this->customer_id . "'");