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(core): Update DefaultMoneyStrategy.round() Logic #3023

Conversation

dfernandesbsolus
Copy link
Contributor

@dfernandesbsolus dfernandesbsolus commented Aug 20, 2024

Description

This PR modifies the DefaultMoneyStrategy.round() method to implement the updated rounding logic as discussed in #3003. The changes aim to improve the accuracy and consistency of the rounding behavior.

Breaking changes

NO

Screenshots

Before:
image

Now:
image

Checklist

📌 Always:

  • I have set a clear title
  • My PR is small and contains a single feature
  • I have checked my own PR

👍 Most of the time:

  • I have added or updated test cases
  • I have updated the README if needed

Copy link

vercel bot commented Aug 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Aug 20, 2024 8:16pm

@michaelbromley
Copy link
Member

Ah it looks like there are some tests & e2e tests that are dependent on the old rounding logic. They will need updating too.

@dfernandesbsolus dfernandesbsolus changed the title Update DefaultMoneyStrategy.round() Logic fix(core): Update DefaultMoneyStrategy.round() Logic Aug 21, 2024
@michaelbromley michaelbromley merged commit f43c204 into vendure-ecommerce:minor Aug 21, 2024
11 of 12 checks passed
@michaelbromley
Copy link
Member

Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants