Merge: Fix for tax report

This commit is contained in:
Hillel Coren 2017-01-12 13:53:13 +02:00
parent 7cd40c6cbd
commit abb9d245b7

View File

@ -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);