From 6ba3b22ec37a084c71cc469fa6a5afbc309142bb Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 12 Jan 2017 12:51:39 +0200 Subject: [PATCH] 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 a8cdd5f5753e..5f7c065b70de 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -1265,7 +1265,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);