1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Fixes for tests

This commit is contained in:
David Bomba 2024-06-22 15:05:11 +10:00
parent 1cfb2a0ad1
commit 6138f11ece

View File

@ -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));
}
}