mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
commit
e8ffad5f0e
@ -1 +1 @@
|
||||
5.8.12
|
||||
5.8.13
|
@ -176,7 +176,10 @@ class HtmlEngine
|
||||
$data['$credit.datetime'] = &$data['$entity.datetime'];
|
||||
$data['$payment_button'] = ['value' => $this->buildViewButton($this->invitation->getPaymentLink(), ctrans('texts.pay_now')), 'label' => ctrans('texts.pay_now')];
|
||||
$data['$payment_link'] = ['value' => $this->invitation->getPaymentLink(), 'label' => ctrans('texts.pay_now')];
|
||||
|
||||
$data['$payment_qrcode'] = ['value' => $this->invitation->getPaymentQrCode(), 'label' => ctrans('texts.pay_now')];
|
||||
$data['$payment_qrcode_raw'] = ['value' => $this->invitation->getPaymentQrCodeRaw(), 'label' => ctrans('texts.pay_now')];
|
||||
|
||||
$data['$exchange_rate'] = ['value' => $this->entity->exchange_rate ?: ' ', 'label' => ctrans('texts.exchange_rate')];
|
||||
$data['$triangular_tax'] = ['value' => ctrans('texts.triangular_tax'), 'label' => ''];
|
||||
$data['$tax_info'] = ['value' => $this->taxLabel(), 'label' => ''];
|
||||
|
@ -60,6 +60,14 @@ trait Inviteable
|
||||
|
||||
public function getPaymentQrCode()
|
||||
{
|
||||
return htmlentities(
|
||||
sprintf('<div>%s</div>', $this->getPaymentQrCodeRaw())
|
||||
);
|
||||
}
|
||||
|
||||
public function getPaymentQrCodeRaw()
|
||||
{
|
||||
|
||||
$renderer = new ImageRenderer(
|
||||
new RendererStyle(150, margin: 0),
|
||||
new SvgImageBackEnd()
|
||||
@ -68,9 +76,8 @@ trait Inviteable
|
||||
|
||||
$qr = $writer->writeString($this->getPaymentLink(), 'utf-8');
|
||||
|
||||
return htmlentities(
|
||||
sprintf('<div>%s</div>', $qr)
|
||||
);
|
||||
return $qr;
|
||||
|
||||
}
|
||||
|
||||
public function getUnsubscribeLink()
|
||||
|
@ -17,8 +17,8 @@ return [
|
||||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||
'app_version' => env('APP_VERSION', '5.8.12'),
|
||||
'app_tag' => env('APP_TAG', '5.8.12'),
|
||||
'app_version' => env('APP_VERSION', '5.8.13'),
|
||||
'app_tag' => env('APP_TAG', '5.8.13'),
|
||||
'minimum_client_version' => '5.0.16',
|
||||
'terms_version' => '1.0.1',
|
||||
'api_secret' => env('API_SECRET', false),
|
||||
|
Loading…
Reference in New Issue
Block a user