Ensure coupons get totalled when prices exclude tax. Closes #4604

This commit is contained in:
Mike Jolley 2014-02-03 15:29:40 +00:00
parent dd24dc6c7e
commit ad84eea2f7
1 changed files with 1 additions and 1 deletions

View File

@ -1151,7 +1151,7 @@ class WC_Cart {
$line_subtotal_tax = array_sum( $taxes );
// Now calc product rates
$discounted_price = $this->get_discounted_price( $values, $base_price );
$discounted_price = $this->get_discounted_price( $values, $base_price, true );
$discounted_taxes = $this->tax->calc_tax( $discounted_price * $values['quantity'], $item_tax_rates );
$discounted_tax_amount = array_sum( $discounted_taxes );
$line_tax = $discounted_tax_amount;