mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
cleanup
This commit is contained in:
parent
207c9388b5
commit
1b36dc5868
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user