From 6138f11ece17ce9481e15fecbbf03e0531590c95 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 22 Jun 2024 15:05:11 +1000 Subject: [PATCH] Fixes for tests --- app/Models/RecurringQuote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/RecurringQuote.php b/app/Models/RecurringQuote.php index ef4c973d2644..b2d86d92dc1f 100644 --- a/app/Models/RecurringQuote.php +++ b/app/Models/RecurringQuote.php @@ -549,7 +549,7 @@ class RecurringQuote extends BaseModel case 'terms': return $this->calculateDateFromTerms($date); default: - return $this->setDayOfMonth($date, $this->due_date_days); + return $this->setDayOfMonth($date, ($this->due_date_days ?? 1)); } }