Merge pull request #373 from woocommerce/pcp-333-fix-tax-mismatch

Use subtotal_tax instead of adding taxes ourselves
This commit is contained in:
Emili Castells 2021-11-23 12:33:46 +01:00 committed by GitHub
commit 2638486331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -64,7 +64,7 @@ class AmountFactory {
);
$taxes = new Money(
(float) $cart->get_cart_contents_tax() + (float) $cart->get_discount_tax(),
$cart->get_subtotal_tax(),
$currency
);