-
Notifications
You must be signed in to change notification settings - Fork 121
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
Incorrect value using angular form builder #109
Comments
To return R$ 45,00 , you must inform 45.0 right? the component returned the correct value |
@LucasLopesr I was thinking that it was wrong because I'm using inputMode = CurrencyMaskInputMode.FINANCIAL For now I'm passing 45.0 and it's working but using FINANCIAL I think that I should pass 4500. What do you think? |
I think you should look at how the data is saved, when saving to a database it will not save 4500 to represent 45.0, this will generate a lot of inconsistency. The input must format the user's input: I don't know if I managed to express myself well |
Yeah, I did understand. The issue is that my entire database monetary values are integers. So in my database I do save 4500 for R$ 45,00. I think that some projects also save integers for monetary values and maybe this lib should have an option to accept integers when using FINANCIAL type. Thank you! |
I too would like to see an integers option. As my data stored for monetary values are stored in whole pence (integers) - Alot of merchant and payment platforms work in integers to avoid rounding errors. In my example
value.price = 650 type into input = 650 |
Example:
Should return: R$ 45,00
It's returning: R$ 4.500,00
My configs:
Am I missing something? Thank you.
The text was updated successfully, but these errors were encountered: