Merge pull request #4993 from beganovich/v5-2602-qty-column
(v5) Format quantity output using formatValue()
This commit is contained in:
commit
deee7f8e64
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ trait MakesInvoiceValues
|
|||
$data[$key][$table_type . ".{$_table_type}3"] = $helpers->formatCustomFieldValue($this->client->company->custom_fields, "{$_table_type}3", $item->custom_value3, $this->client);
|
||||
$data[$key][$table_type . ".{$_table_type}4"] = $helpers->formatCustomFieldValue($this->client->company->custom_fields, "{$_table_type}4", $item->custom_value4, $this->client);
|
||||
|
||||
$data[$key][$table_type.'.quantity'] = $item->quantity;
|
||||
$data[$key][$table_type.'.quantity'] = Number::formatValue($item->quantity, $this->client->currency());
|
||||
|
||||
$data[$key][$table_type.'.unit_cost'] = Number::formatMoney($item->cost, $this->client);
|
||||
$data[$key][$table_type.'.cost'] = Number::formatMoney($item->cost, $this->client);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue