-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugFor issues that describe a defect or regression in the released softwareFor issues that describe a defect or regression in the released software
Milestone
Description
Issue Description
Receive the following error when checking out with Tax enabled
Client provided total price 28.979 for group with index 0, but actual total price is 28.978999999999996
Steps to Reproduce
I am not completely sure which of these are the critical steps but i can reproduce this error following these steps.
- Reset database
- Enable Stripe and Example Payment
- Enable all Flat Rate shipping methods
- Enable tax rate at 10% for the state of California
- As an anonymous user add one red "Basic Reaction Product" to your cart (because the price is $19.99)
- Checkout and choose "Flat Rate - Priority"
- Checkout with either the Example or Stripe payment methods
- Observe the error
Possible Solution
There's a rounding error happening somewhere. Tax is stored on the item at 1.999. Not sure if that's correct or not.
Versions
Reaction: 2.0.0-rc1
I hate making stuff critical that no one else has run into, but it seems like making something X.99 is probably as pretty common case for pricing.
Metadata
Metadata
Assignees
Labels
bugFor issues that describe a defect or regression in the released softwareFor issues that describe a defect or regression in the released software