Add gross line total to inclusive item sum calcs
This commit is contained in:
parent
db2606b907
commit
a8a33e9fed
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue