Ensure PDFs are created when sending recurring invoices

This commit is contained in:
David Bomba 2022-01-09 13:53:27 +11:00
parent 762f6d4b2e
commit 8ee1e8ca9d

View File

@ -94,6 +94,9 @@ class SendRecurring implements ShouldQueue
$invoice = $this->createRecurringInvitations($invoice);
/* 09-01-2022 ensure we create the PDFs at this point in time! */
$invoice->service()->touchPdf();
nlog("updating recurring invoice dates");
/* Set next date here to prevent a recurring loop forming */
$this->recurring_invoice->next_send_date = $this->recurring_invoice->nextSendDate();