From ec5f8ceb461503aaef0a1e06af64e13e1f4e0fa5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 14 Sep 2017 11:39:44 +0300 Subject: [PATCH] Check if referral payments have been refunded --- app/Models/Payment.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Models/Payment.php b/app/Models/Payment.php index 0fc6da08eda29..e1556b7d60469 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -295,10 +295,6 @@ class Payment extends EntityModel */ public function getCompletedAmount() { - if ($this->isFailed() || $this->isVoided()) { - return 0; - } - return $this->amount - $this->refunded; }