mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 08:24:37 -04:00
Fixes for updating PDFs on updated invoice
This commit is contained in:
parent
716013f4a0
commit
f80a437b0b
@ -460,14 +460,15 @@ class InvoiceService
|
||||
return $this;
|
||||
}
|
||||
|
||||
if($this->invoice->company->enable_e_invoice) {
|
||||
$this->invoice->invitations->each(function ($invitation) {
|
||||
CreateEntityPdf::dispatch($invitation);
|
||||
if ($invitation instanceof InvoiceInvitation) {
|
||||
CreateEInvoice::dispatch($invitation->invoice, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$this->invoice->invitations->each(function ($invitation) {
|
||||
CreateEntityPdf::dispatch($invitation);
|
||||
|
||||
if ($invitation->company->enable_e_invoice && $invitation instanceof InvoiceInvitation) {
|
||||
CreateEInvoice::dispatch($invitation->invoice, true);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
} catch (\Exception $e) {
|
||||
nlog('failed creating invoices in Touch PDF');
|
||||
|
Loading…
x
Reference in New Issue
Block a user