From abb9d245b7632d29c26cdf7bbfd4bc7346a2e2f2 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 12 Jan 2017 13:53:13 +0200 Subject: [PATCH] Merge: Fix for tax report --- app/Models/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 1f91badfaa8e..2c7fc0fcc555 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -1201,7 +1201,7 @@ class Invoice extends EntityModel implements BalanceAffecting } foreach ($this->invoice_items as $invoiceItem) { - $itemTaxAmount = $this->getItemTaxable($invoiceItem, $taxable); + $taxable = $this->getItemTaxable($invoiceItem, $taxable); if ($invoiceItem->tax_name1) { $itemTaxAmount = round($taxable * ($invoiceItem->tax_rate1 / 100), 2);