Update class-wc-tax.php

Compound tax rate calculation is wildly off.

Current tax settings : http://cld.wthms.co/Qeb6

Cart before proposed change : http://cld.wthms.co/ILXk

Cart after proposed change : http://cld.wthms.co/fjWO
This commit is contained in:
Andrew Benbow 2014-02-25 11:54:58 +00:00 committed by Coen Jacobs
parent c799aa1c57
commit fc749a79fa
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class WC_Tax {
if ( $rate['compound'] == 'no' )
continue;
$the_price_inc_tax = $price + ( $pre_compound_total * 100 );
$the_price_inc_tax = $price + ( $pre_compound_total );
$tax_amount = $the_price_inc_tax * ( $rate['rate'] / 100 );
@ -580,4 +580,4 @@ class WC_Tax {
public function get_tax_total( $taxes ) {
return array_sum( array_map( array( $this, 'round' ), $taxes ) );
}
}
}