Skip to content
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

fix: round total when verifying it on order create #4701

Merged
merged 4 commits into from
Oct 5, 2018

Conversation

aldeed
Copy link
Contributor

@aldeed aldeed commented Oct 2, 2018

Resolves #4684
Impact: minor
Type: bugfix

Issue

In rare cases you could get an error about totals not matching when checking out from the Meteor UI

Solution

These errors were complaining about tiny differences due to floating point math errors. The values are now converted to strings with 3 decimal places of precision before comparing.

Breaking changes

None

Testing

See linked issue. This issue is difficult to reproduce reliably. At a minimum, make sure several checkouts work properly through placing the order.

@aldeed aldeed requested a review from zenweasel October 2, 2018 10:29
@aldeed aldeed self-assigned this Oct 2, 2018
@aldeed aldeed added this to the Oxford milestone Oct 2, 2018
@aldeed aldeed changed the base branch from release-2.0.0-rc.2 to master October 3, 2018 16:04
Copy link
Collaborator

@zenweasel zenweasel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Verified fixed.

@kieckhafer kieckhafer merged commit bf5978b into master Oct 5, 2018
@kieckhafer kieckhafer deleted the fix-4684-aldeed-tax-checkout-error branch October 5, 2018 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when checking out with Tax enabled
3 participants