From dc6ae06f9f2ac107a76cb2096c0aa22393696edc Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 6 Jul 2020 16:13:53 +1000 Subject: [PATCH] Fix for missing addHalf() --- app/Models/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Service.php b/app/Models/Service.php index 6591eb6..c7b1708 100644 --- a/app/Models/Service.php +++ b/app/Models/Service.php @@ -562,7 +562,7 @@ class Service extends Model // Half Yearly case 3: - $d = $this->invoice_next->addHalf()->startOfHalf()->diff($this->invoice_next_end->startOfHalf())->days; + $d = $this->invoice_next->addQuarter(2)->startOfHalf()->diff($this->invoice_next_end->startOfHalf())->days; break; // Yearly