From 3cbac2362ccab17e106ba86a1c5f883c1d6b42bf Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Tue, 11 Oct 2011 09:58:05 +0000 Subject: [PATCH] [-] FO : Undefined variable price --- classes/tax/TaxCalculator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/tax/TaxCalculator.php b/classes/tax/TaxCalculator.php index bb40ab49d..9ae34db6d 100644 --- a/classes/tax/TaxCalculator.php +++ b/classes/tax/TaxCalculator.php @@ -119,7 +119,7 @@ class TaxCalculatorCore /** * Return the tax amount associated to each taxes of the TaxCalculator - * + * * @param float $price_te * @return array $taxes_amount */ @@ -135,7 +135,7 @@ class TaxCalculatorCore $price_te = $price_te + $taxes_amounts[$tax->rate]; } else - $taxes_amounts[$tax->rate] = ($price * (abs($tax->rate) / 100)); + $taxes_amounts[$tax->rate] = ($price_te * (abs($tax->rate) / 100)); } return $taxes_amounts;