Skip to content

In reference, form fields, 'money' type, possible currency options are not explained #2273

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

Closed
thepurpleblob opened this issue Mar 4, 2013 · 2 comments

Comments

@thepurpleblob
Copy link

For the 'money' field type, one of the options is 'currency'. The documentations says that the default is 'EUR' but does not say what the other possible options are. I'm guessing that it will be the ISO currency codes but, for those who aren't aware of that and for reassurance, it would be useful to be explicit I think.

@wouterj
Copy link
Member

wouterj commented Mar 4, 2013

The MoneyType uses the \NumberFormatter class which is included in the intl library (source). This class requires a "3-letter ISO 4217 currency code" as the currency (source).

I think it is great to add this in the docs, I will create a PR today.

weaverryan added a commit that referenced this issue Mar 15, 2013
[#2273] Add valid values for currency
@weaverryan
Copy link
Member

PR merged in - thanks everyone!

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

3 participants