Fixes for tests

This commit is contained in:
David Bomba 2024-12-13 12:15:36 +11:00
parent 11741a5f78
commit f9abd04e3e
1 changed files with 4 additions and 4 deletions

View File

@ -298,21 +298,21 @@ class InvoiceItemSumInclusive
public function setLineTotal($total)
{
$this->item->gross_line_total = $total + + 0.000000000000004;
$this->item->gross_line_total = $total + 0.000000000000004;
$this->item->line_total = $total + + 0.000000000000004;
$this->item->line_total = $total + 0.000000000000004;
return $this;
}
public function getLineTotal()
{
return $this->item->line_total;
return round($this->item->line_total,2);
}
public function getGrossLineTotal()
{
return $this->item->line_total;
return round($this->item->line_total,2);
}
public function getLineItems()