-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: Cannot parse "-2.8421709430404E-14" to Money error with tax rate of 0 #3822
Comments
I am having the same issue |
We're also seeing the same issue on Commerce 5.2.11 |
When this expected to be fixed? |
@lukeholder Is there an update? Please fix it ASAP. |
I apologise for not responding to this ticket and communicating the status of this issue. As you can see above we were working on a fix in #3834 above but it was not included in the recent 5.3 release. If you want to try the above fix we worked on, then in local development, first make sure you are upgraded to the latest release of Craft Commerce (5.3.0.1) and then change your "require": {
"craftcms/commerce": "dev-feature/5.3-teller#7555049642caa68a58121925ed887f5ab916f6a3 as 5.3.0.1",
"...": "..."
} Then run If you could please test the potential fix in local development, and let us know that it is working for you that would be great. We will also be testing it on our side over the next few hours. Once we confirm, we will push release the fix as soon as possible. We will update our progress here. Thanks. |
Commerce version Thanks! |
What happened?
Description
Getting an error "Cannot parse "-2.8421709430404E-14" to Money "
Traced back to this location in the code
craft\commerce\adjusters::_getTaxAmount() called from https://github.com/craftcms/commerce/blob/744dd561b7e6763a369465e31d98fecb6885ad09/src/adjusters/Tax.php#L263C22-L263C30
The result is a float, close to zero, but not 0
Steps to reproduce
stacktrace
Craft CMS version
5.5.6.1
Craft Commerce version
5.2.9.1
PHP version
8.3.14
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: