diff --git a/app/Models/RecurringQuote.php b/app/Models/RecurringQuote.php index ef4c973d26..b2d86d92dc 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)); } }