Fixes for tests
This commit is contained in:
parent
1cfb2a0ad1
commit
6138f11ece
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue