When removing base taxes, round to precision.

This commit is contained in:
Mike Jolley 2014-03-31 11:12:08 +01:00
parent f9b223bc7a
commit 206feeabe8
1 changed files with 1 additions and 1 deletions

View File

@ -1113,7 +1113,7 @@ class WC_Cart {
$taxes = $this->tax->calc_tax( $line_price, $base_tax_rates, true, true );
// Now we have a new item price (excluding TAX)
$line_subtotal = $line_price - array_sum( $taxes );
$line_subtotal = round( $line_price - array_sum( $taxes ), WC_ROUNDING_PRECISION );
// Now add modifed taxes
$taxes = $this->tax->calc_tax( $line_subtotal, $item_tax_rates );