mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Refactor PDF Service
This commit is contained in:
parent
20097b4fa8
commit
0d0c80b7d1
@ -61,8 +61,6 @@ class PdfService
|
||||
|
||||
$this->account = $this->company->account;
|
||||
|
||||
$this->config = (new PdfConfiguration($this))->init();
|
||||
|
||||
$this->document_type = $document_type;
|
||||
|
||||
$this->options = $options;
|
||||
@ -122,6 +120,9 @@ class PdfService
|
||||
public function init(): self
|
||||
{
|
||||
|
||||
$this->config = (new PdfConfiguration($this))->init();
|
||||
|
||||
|
||||
$this->html_variables = $this->config->client ?
|
||||
(new HtmlEngine($this->invitation))->generateLabelsAndValues() :
|
||||
(new VendorHtmlEngine($this->invitation))->generateLabelsAndValues();
|
||||
|
Loading…
Reference in New Issue
Block a user