From 9a482f80f6e2e31304c1b50ccf7572da65cfaa3a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 22 Oct 2017 00:38:40 +0300 Subject: [PATCH] Fix for getCompletedAmount --- app/Models/Payment.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Models/Payment.php b/app/Models/Payment.php index 0fc6da08eda2..e1556b7d6046 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; }