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

add currency symbols & improve amount fields in various views #839

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

twothreenine
Copy link
Contributor

@twothreenine twothreenine commented Feb 25, 2021

Currency symbols added to various forms and other views.
The new_collection form now also supports decimal commas, fixing #722 (at least the initial issue)

- show currency symbol
- support decimal comma
- show warning color when more than two decimals entered
- show currency symbol
- show warning when more than two decimals entered
(decimal comma was already supported)
missing: currency symbol on disabled price field when editing stock article
@twothreenine
Copy link
Contributor Author

I'd like some feedback on this (and #840 ) before I move on to the next fixes/features ;)

@paroga
Copy link
Member

paroga commented Mar 18, 2021

sorry for the late reply, unfortunately this is not an easy change.

You changed the type of the input fields to number. I tried already something similar some time ago, but stopped it, since I wasn't able to get browsers to behave consistent. Did you test ALL changed fields with multiple browsers and multiple locales? This change has potential to break a lot.

The main issue happens when the view prints numbers in german locale (e.g. 12,34), but the input field of type number expects english locales (e.g. 12.34).

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.

2 participants