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

[v2.11] Fix creating refund with amount in foreign format #4347

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Apr 20, 2022

Same as #4344 but for v2.11

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.

@tvdeyen tvdeyen changed the title Fix creating refund with amount in foreign format [v2.11] Fix creating refund with amount in foreign format Apr 20, 2022
@tvdeyen tvdeyen closed this Apr 21, 2022
@tvdeyen tvdeyen reopened this Apr 21, 2022
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.
@tvdeyen tvdeyen force-pushed the v2.11-fix-refund-form-input-format branch from f61e6f0 to 621d37b Compare April 21, 2022 20:11
@tvdeyen tvdeyen added the changelog:solidus_core Changes to the solidus_core gem label Apr 25, 2022
@waiting-for-dev waiting-for-dev merged commit 6e0da01 into solidusio:v2.11 Apr 26, 2022
@tvdeyen tvdeyen deleted the v2.11-fix-refund-form-input-format branch May 16, 2022 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants