mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for htmlengine
This commit is contained in:
parent
7681e58fbc
commit
b925b536c1
@ -90,6 +90,12 @@ class HtmlEngine
|
||||
$this->helpers = new Helpers();
|
||||
}
|
||||
|
||||
public function setSettings($settings): self
|
||||
{
|
||||
$this->settings = $settings;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -138,7 +144,8 @@ class HtmlEngine
|
||||
$data['$app_url'] = ['value' => $this->generateAppUrl(), 'label' => ''];
|
||||
$data['$from'] = ['value' => '', 'label' => ctrans('texts.from')];
|
||||
$data['$to'] = ['value' => '', 'label' => ctrans('texts.to')];
|
||||
$data['$ship_to'] = ['value' => '', 'label' => ctrans('texts.ship_to')];
|
||||
$data['$shipping'] = ['value' => '', 'label' => ctrans('texts.ship_to')];
|
||||
|
||||
$data['$total_tax_labels'] = ['value' => $this->totalTaxLabels(), 'label' => ctrans('texts.taxes')];
|
||||
$data['$total_tax_values'] = ['value' => $this->totalTaxValues(), 'label' => ctrans('texts.taxes')];
|
||||
$data['$line_tax_labels'] = ['value' => $this->lineTaxLabels(), 'label' => ctrans('texts.taxes')];
|
||||
@ -147,6 +154,7 @@ class HtmlEngine
|
||||
$data['$status_logo'] = ['value' => ' ', 'label' => ' '];
|
||||
$data['$delivery_note'] = ['value' => ' ', 'label' => ctrans('texts.delivery_note')];
|
||||
$data['$receipt'] = ['value' => ' ', 'label' => ctrans('texts.receipt')];
|
||||
$data['$shipping'] = ['value' => ' ', 'label' => ctrans('texts.ship_to')];
|
||||
|
||||
$data['$invoice.date'] = &$data['$date'];
|
||||
$data['$invoiceDate'] = &$data['$date'];
|
||||
|
@ -45,6 +45,13 @@ class PaymentHtmlEngine
|
||||
$this->helpers = new Helpers();
|
||||
}
|
||||
|
||||
public function setSettings($settings):self
|
||||
{
|
||||
$this->settings = $settings;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function makePaymentVariables()
|
||||
{
|
||||
App::forgetInstance('translator');
|
||||
|
@ -83,6 +83,13 @@ class VendorHtmlEngine
|
||||
$this->helpers = new Helpers();
|
||||
}
|
||||
|
||||
public function setSettings($settings):self
|
||||
{
|
||||
$this->settings = $settings;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user