mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Add missing prop
This commit is contained in:
parent
d96a5ca4f2
commit
902cae6585
@ -316,10 +316,8 @@ class InvoiceSum
|
||||
$this->tax_map = collect();
|
||||
|
||||
$keys = $this->invoice_items->getGroupedTaxes()->pluck('key')->unique();
|
||||
nlog($keys);
|
||||
|
||||
$values = $this->invoice_items->getGroupedTaxes();
|
||||
nlog($values);
|
||||
|
||||
foreach ($keys as $key) {
|
||||
$tax_name = $values->filter(function ($value, $k) use ($key) {
|
||||
|
@ -397,7 +397,8 @@ class HtmlEngine
|
||||
$data['$credit.date'] = ['value' => $this->translateDate($this->entity->date, $this->client->date_format(), $this->client->locale()), 'label' => ctrans('texts.credit_date')];
|
||||
$data['$balance'] = ['value' => Number::formatMoney($this->getBalance(), $this->client) ?: ' ', 'label' => ctrans('texts.balance')];
|
||||
$data['$credit.balance'] = ['value' => Number::formatMoney($this->entity_calc->getBalance(), $this->client) ?: ' ', 'label' => ctrans('texts.credit_balance')];
|
||||
|
||||
$data['$client.credit_balance'] = &$data['$credit.balance'];
|
||||
|
||||
$data['$invoice.balance'] = &$data['$balance'];
|
||||
$data['$taxes'] = ['value' => Number::formatMoney($this->entity_calc->getItemTotalTaxes(), $this->client) ?: ' ', 'label' => ctrans('texts.taxes')];
|
||||
$data['$invoice.taxes'] = &$data['$taxes'];
|
||||
|
Loading…
Reference in New Issue
Block a user