WOrking on tax calculations

This commit is contained in:
David Bomba 2023-09-13 14:31:06 +10:00
parent ff204375f6
commit 0c0e0bff31
2 changed files with 1 additions and 3 deletions

View File

@ -391,8 +391,6 @@ class InvoiceItemSum
{
$this->setGroupedTaxes(collect([]));
foreach ($this->line_items as $key => $this->item) {
if ($this->item->line_total == 0) {
continue;

View File

@ -385,7 +385,7 @@ class InvoiceItemSumInclusive
}
$this->setTotalTaxes($this->getTotalTaxes() + $item_tax);
$this->item->gross_line_total = $this->getLineTotal() + $item_tax;
$this->item->gross_line_total = $this->getLineTotal();
$this->item->tax_amount = $item_tax;