1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Fix $company.customX on Invoice Settings preview

When fetched without going through the settings object, all these values
were null, thus displaying nothing when used in custom invoice designs.
This commit is contained in:
Dave Shoreman 2024-05-28 20:21:46 +01:00
parent 0782fa3c6d
commit 2a11fa994b
No known key found for this signature in database
GPG Key ID: C920D1D63709F443

View File

@ -309,10 +309,10 @@ class PdfMock
'$invoice.custom2' => 'custom value',
'$invoice.custom3' => 'custom value',
'$invoice.custom4' => 'custom value',
'$company.custom1' => $this->company->custom_value1,
'$company.custom2' => $this->company->custom_value2,
'$company.custom3' => $this->company->custom_value3,
'$company.custom4' => $this->company->custom_value4,
'$company.custom1' => $this->company->settings->custom_value1,
'$company.custom2' => $this->company->settings->custom_value2,
'$company.custom3' => $this->company->settings->custom_value3,
'$company.custom4' => $this->company->settings->custom_value4,
'$quote.po_number' => 'PO12345',
'$company.website' => $this->settings->website,
'$balance_due_raw' => '0.00',