1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Refactor PDF Service

This commit is contained in:
David Bomba 2023-02-23 22:03:21 +11:00
parent 20097b4fa8
commit 0d0c80b7d1

View File

@ -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();