Fixes for quote reminders

This commit is contained in:
David Bomba 2024-11-25 10:04:35 +11:00
parent 056ccdcea7
commit 398efd87a9
2 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class BaseRepository
/* Model now persisted, now lets do some child tasks */
if ($model instanceof Invoice) {
if ($model instanceof Invoice || $model instanceof Quote) {
$model->service()->setReminder()->save();
}

View File

@ -42,6 +42,7 @@ class MarkSent
->service()
->setStatus(Quote::STATUS_SENT)
->applyNumber()
->setReminder()
->save();
event(new QuoteWasMarkedSent($this->quote, $this->quote->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));