From a8a33e9fed895f524eee645329b9269b7c178f02 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 12 Mar 2022 07:52:51 +1100 Subject: [PATCH] Add gross line total to inclusive item sum calcs --- app/Helpers/Invoice/InvoiceItemSumInclusive.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Helpers/Invoice/InvoiceItemSumInclusive.php b/app/Helpers/Invoice/InvoiceItemSumInclusive.php index 134ebe774bdd..b05cc36fe813 100644 --- a/app/Helpers/Invoice/InvoiceItemSumInclusive.php +++ b/app/Helpers/Invoice/InvoiceItemSumInclusive.php @@ -89,9 +89,6 @@ class InvoiceItemSumInclusive { $this->setLineTotal($this->item->cost * $this->item->quantity); - //11-02-2022 - // $this->setLineTotal($this->formatValue($this->item->cost, $this->currency->precision) * $this->formatValue($this->item->quantity, $this->currency->precision)); - return $this; } @@ -171,6 +168,8 @@ class InvoiceItemSumInclusive public function setLineTotal($total) { + $this->item->gross_line_total = $total; + $this->item->line_total = $total; return $this;