1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Fixes for send_email triggered action not generating PDFs in time.

This commit is contained in:
David Bomba 2022-01-07 11:54:12 +11:00
parent 89ce2b443e
commit 3417b1ff0f
3 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@ class TriggeredActions extends AbstractService
{
if ($this->request->has('send_email') && $this->request->input('send_email') == 'true') {
$this->credit = $this->credit->service()->markSent()->save();
$this->sendEmail();
}

View File

@ -49,7 +49,7 @@ class TriggeredActions extends AbstractService
}
if ($this->request->has('send_email') && $this->request->input('send_email') == 'true') {
$this->invoice->service()->touchPdf()->save();
$this->invoice->service()->markSent()->touchPdf()->save();
$this->sendEmail();
}

View File

@ -38,6 +38,7 @@ class TriggeredActions extends AbstractService
{
if ($this->request->has('send_email') && $this->request->input('send_email') == 'true') {
$this->quote = $this->quote->service()->markSent()->save();
$this->sendEmail();
}