From 441db2341459a61c8adab1afc80cbe11a0cd6519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 26 Feb 2021 07:05:44 +0100 Subject: [PATCH] Format quantity output using formatValue() --- app/Utils/Traits/MakesInvoiceValues.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/Traits/MakesInvoiceValues.php b/app/Utils/Traits/MakesInvoiceValues.php index 8664130f66..9b55df0934 100644 --- a/app/Utils/Traits/MakesInvoiceValues.php +++ b/app/Utils/Traits/MakesInvoiceValues.php @@ -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);