From 6e564a20db84ea8f57401378b7b9849e40e8d166 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 2 Jun 2021 20:14:00 +1000 Subject: [PATCH] Minor fixes --- app/Services/Subscription/SubscriptionService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index 4fdd3bf23ab7..ec3be1051d2e 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -238,7 +238,7 @@ class SubscriptionService */ private function calculateProRataRefund($invoice) :float { - if(!$this->invoice->date) + if(!$invoice->date) return 0; $start_date = Carbon::parse($invoice->date);