mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Adjustments for signatures
This commit is contained in:
parent
0ac860fdca
commit
6e5e9bdb12
@ -663,15 +663,19 @@ class HtmlEngine
|
||||
|
||||
if ($this->settings->signature_on_pdf) {
|
||||
$data['$contact.signature'] = ['value' => $this->invitation->signature_base64, 'label' => ctrans('texts.signature')];
|
||||
$data['$contact.signature_date'] = ['value' => $this->translateDate($this->invitation->signature_date, $this->client->date_format(), $this->client->locale()), 'label' => ctrans('texts.date')];
|
||||
$data['$contact.signature_ip'] = ['value' => $this->invitation->signature_ip ?? '', 'label' => ctrans('texts.address')];
|
||||
// $data['$contact.signature_date'] = ['value' => $this->translateDate($this->invitation->signature_date, $this->client->date_format(), $this->client->locale()), 'label' => ctrans('texts.date')];
|
||||
// $data['$contact.signature_ip'] = ['value' => $this->invitation->signature_ip ?? '', 'label' => ctrans('texts.address')];
|
||||
|
||||
} else {
|
||||
$data['$contact.signature'] = ['value' => '', 'label' => ''];
|
||||
$data['$contact.signature_date'] = ['value' => '', 'label' => ctrans('texts.date')];
|
||||
$data['$contact.signature_ip'] = ['value' => '', 'label' => ctrans('texts.address')];
|
||||
// $data['$contact.signature_date'] = ['value' => '', 'label' => ctrans('texts.date')];
|
||||
// $data['$contact.signature_ip'] = ['value' => '', 'label' => ctrans('texts.address')];
|
||||
}
|
||||
|
||||
$data['$contact.signature_raw'] = ['value' => $this->invitation->signature_base64, 'label' => ctrans('texts.signature')];
|
||||
$data['$contact.signature_date'] = ['value' => $this->translateDate($this->invitation->signature_date, $this->client->date_format(), $this->client->locale()), 'label' => ctrans('texts.date')];
|
||||
$data['$contact.signature_ip'] = ['value' => $this->invitation->signature_ip, 'label' => ctrans('texts.address')];
|
||||
|
||||
$data['$thanks'] = ['value' => '', 'label' => ctrans('texts.thanks')];
|
||||
$data['$from'] = ['value' => '', 'label' => ctrans('texts.from')];
|
||||
$data['$to'] = ['value' => '', 'label' => ctrans('texts.to')];
|
||||
|
Loading…
Reference in New Issue
Block a user