1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
This commit is contained in:
Benjamin Beganović 2020-09-10 13:01:34 +02:00
parent 207c9388b5
commit 1b36dc5868

View File

@ -84,11 +84,6 @@ class CreateInvoicePdf implements ShouldQueue
$invoice_design_id = $this->invoice->design_id ? $this->invoice->design_id : $this->decodePrimaryKey($this->invoice->client->getSetting('invoice_design_id'));
$design = Design::find($invoice_design_id);
if (!$design) {
$design = Design::first();
}
$html = new HtmlEngine(null, $this->invitation, 'invoice');
$template = new PdfMakerDesign(strtolower($design->name));