Skip to content

Commit

Permalink
Update customer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 authored Mar 4, 2024
1 parent c7a7c03 commit 5728b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/system/library/cart/customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getAddressId(): int {
return $this->address_id;
}

public function getBalance(): int {
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 . "'");

return (float)$query->row['total'];
Expand Down

0 comments on commit 5728b5b

Please sign in to comment.