From 966607e0883a01b097e42123d1ce3eb147d7c3be Mon Sep 17 00:00:00 2001 From: Napsty Date: Wed, 23 Mar 2022 11:32:55 +0100 Subject: [PATCH] Add new variable client.lang_2 --- app/Utils/HtmlEngine.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Utils/HtmlEngine.php b/app/Utils/HtmlEngine.php index 1aaff8552e8c..996b2eaefdb7 100644 --- a/app/Utils/HtmlEngine.php +++ b/app/Utils/HtmlEngine.php @@ -370,6 +370,8 @@ class HtmlEngine $data['$client.currency'] = ['value' => $this->client->currency()->code, 'label' => '']; + $data['$client.lang_2'] = ['value' => optional($this->client->language())->locale, 'label' => '']; + $data['$client.balance'] = ['value' => Number::formatMoney($this->client->balance, $this->client), 'label' => ctrans('texts.account_balance')]; $data['$client_balance'] = ['value' => Number::formatMoney($this->client->balance, $this->client), 'label' => ctrans('texts.account_balance')]; $data['$paid_to_date'] = ['value' => Number::formatMoney($this->entity->paid_to_date, $this->client), 'label' => ctrans('texts.paid_to_date')];