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

Feature: allow to configure (or document) Monetize.expect_whole_subunits #701

Open
tagliala opened this issue May 30, 2024 · 0 comments
Open

Comments

@tagliala
Copy link
Contributor

Slightly refers to #696

Hello, I was experiencing an issue in a form with the possibility to switch between currencies without decimals (JPY).

As expected as per https://github.com/RubyMoney/monetize?tab=readme-ov-file#usage, inserting 123,456 for JPY, even if , is the thousands separator for JPY resulted in 123, because Monetize allows fractional units by default (which may not be the case)

So I've added Monetize.expect_whole_subunits on the top of the money rails initializer

I'm asking what do you think to have a configuration option documented in Money Rails for this use case, so you can see immediately what is going wrong

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

No branches or pull requests

1 participant