mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
WOrking on tax calculations
This commit is contained in:
parent
ff204375f6
commit
0c0e0bff31
@ -391,8 +391,6 @@ class InvoiceItemSum
|
|||||||
{
|
{
|
||||||
$this->setGroupedTaxes(collect([]));
|
$this->setGroupedTaxes(collect([]));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
foreach ($this->line_items as $key => $this->item) {
|
foreach ($this->line_items as $key => $this->item) {
|
||||||
if ($this->item->line_total == 0) {
|
if ($this->item->line_total == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -385,7 +385,7 @@ class InvoiceItemSumInclusive
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->setTotalTaxes($this->getTotalTaxes() + $item_tax);
|
$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;
|
$this->item->tax_amount = $item_tax;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user