mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-17 12: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;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->invoice->company->enable_e_invoice) {
|
|
||||||
$this->invoice->invitations->each(function ($invitation) {
|
$this->invoice->invitations->each(function ($invitation) {
|
||||||
CreateEntityPdf::dispatch($invitation);
|
CreateEntityPdf::dispatch($invitation);
|
||||||
if ($invitation instanceof InvoiceInvitation) {
|
|
||||||
|
if ($invitation->company->enable_e_invoice && $invitation instanceof InvoiceInvitation) {
|
||||||
CreateEInvoice::dispatch($invitation->invoice, true);
|
CreateEInvoice::dispatch($invitation->invoice, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
nlog('failed creating invoices in Touch PDF');
|
nlog('failed creating invoices in Touch PDF');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user