mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Add payment balance as an accessible variable
This commit is contained in:
parent
3d9cbf5b91
commit
5bbee220a2
@ -507,7 +507,9 @@ class HtmlEngine
|
||||
|
||||
$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.payment_balance'] = ['value' => Number::formatMoney($this->client->payment_balance, $this->client), 'label' => ctrans('texts.payment_balance_on_file')];
|
||||
$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')];
|
||||
|
||||
|
@ -5312,6 +5312,8 @@ $lang = array(
|
||||
'process_date' => 'Process Date',
|
||||
'forever_free' => 'Forever Free',
|
||||
'comments_only' => 'Comments Only',
|
||||
'payment_balance_on_file' => 'Payment Balance On File',
|
||||
|
||||
);
|
||||
|
||||
return $lang;
|
||||
|
Loading…
Reference in New Issue
Block a user