mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01: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:
parent
0782fa3c6d
commit
2a11fa994b
@ -309,10 +309,10 @@ class PdfMock
|
|||||||
'$invoice.custom2' => 'custom value',
|
'$invoice.custom2' => 'custom value',
|
||||||
'$invoice.custom3' => 'custom value',
|
'$invoice.custom3' => 'custom value',
|
||||||
'$invoice.custom4' => 'custom value',
|
'$invoice.custom4' => 'custom value',
|
||||||
'$company.custom1' => $this->company->custom_value1,
|
'$company.custom1' => $this->company->settings->custom_value1,
|
||||||
'$company.custom2' => $this->company->custom_value2,
|
'$company.custom2' => $this->company->settings->custom_value2,
|
||||||
'$company.custom3' => $this->company->custom_value3,
|
'$company.custom3' => $this->company->settings->custom_value3,
|
||||||
'$company.custom4' => $this->company->custom_value4,
|
'$company.custom4' => $this->company->settings->custom_value4,
|
||||||
'$quote.po_number' => 'PO12345',
|
'$quote.po_number' => 'PO12345',
|
||||||
'$company.website' => $this->settings->website,
|
'$company.website' => $this->settings->website,
|
||||||
'$balance_due_raw' => '0.00',
|
'$balance_due_raw' => '0.00',
|
||||||
|
Loading…
Reference in New Issue
Block a user