-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Labels
CheckoutIssues related to checkout page.Issues related to checkout page.TaxIssues related to taxes.Issues related to taxes.status: in progressThis is being worked on.This is being worked on.
Description
Describe the bug
When the product price is 30.82500 and it's entered "exclusive tax" - 20% tax rate should be rounding it to 36.99 but it is rounded to 37 if Round tax at subtotal level, instead of rounding per line checkbox is un-ticked.
If the Round tax at subtotal level, instead of rounding per line checkbox is ticked - the product price is correct, but "subtotal" and "total" are incorrect.
To Reproduce
Steps to reproduce the behavior:
- Create a product with the price of 30.82500
- Add a 20% tax rate
- In WooCommerce >> Settings >> Tax set
Prices entered with taxtoNo, I will enter prices exclusive of taxand bothDisplay prices in the shopDisplay prices during cart and checkouttoIncluding tax.Display tax totalsisas a single total.
With Rounding checkbox un-ticked this is the checkout page:
With Rounding checkbox ticked this is the checkout page:
Expected behavior
In both cases the price should be 36.99, not 37
Might be related to #23835 and #23694
Isolating the problem (mark completed items with an [x]):
- I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
- This bug happens with a default WordPress theme active, or Storefront.
- I can reproduce this bug consistently using the steps above.
WordPress Environment
```
Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin.
```
lukecav
Metadata
Metadata
Assignees
Labels
CheckoutIssues related to checkout page.Issues related to checkout page.TaxIssues related to taxes.Issues related to taxes.status: in progressThis is being worked on.This is being worked on.

