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:
parent
c799aa1c57
commit
fc749a79fa
|
@ -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 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue