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 creating store credit with amount in foreign format #4390

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented May 30, 2022

Description

The numericality validation in rails cannot handle prices
in non-float based amounts (Ie. 100,00 EUR).

Using Spree::LocalizedNumber to convert the amount before validation.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

The numericality validation in rails cannot handle prices
in non-float based amounts (Ie. 100,00 EUR).

Using `Spree::LocalizedNumber` to convert the amount before validation.
@waiting-for-dev waiting-for-dev merged commit 8dbb160 into solidusio:master Jun 1, 2022
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.

3 participants