Accept comma as a decimal separator #719
Replies: 3 comments
-
This is a limitation of the float field type and the number input on the browser. Attempting to accommodate this would be an interestingly difficult task given that some countries use commas for thousand place separators, and other use it for the change. While other countries have the inverse. Right now, as far as I can tell and while I was trying to sort other things, there is no good way to handle this, and make sure that it properly gets converted to a float (which mandates the I should note however, that I think your browser cache may not be cleared, as the input field should not be accepting commas at all as of 0.15.2 (validated on demo), and if you did save it without noticing the comma wasn't accepted it should still save, although as 1999 instead of 19.99 Please see #204 for some info on the comma thing previously brought up. |
Beta Was this translation helpful? Give feedback.
-
Couldn't we have a setting in user's profile, and then apply some parsing on the field value according to that setting?
Just tested again (purchase price 19,99) in a private window on Firefox at https://demo.homebox.software/ - I still get no feedback from the field about any error, and the price is 0 after saving...
Sorry, didn't find this one (probably searched only open issues...). The issue is slightly different though... |
Beta Was this translation helpful? Give feedback.
-
Please note we're converting this issue into a discussion as per our new procedures/policies. You can read more about that in our announcement #712 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Homebox Version
0.15.2
What is the issue you are experiencing?
When entering purchase price with comma (e.g.
19,99
), the value is ignored after saving (price is0
). Would be great to accept / handle such values (have a setting for it if necessary), as this is a wide-spread standard for decimal separator in European countries.How can the maintainer reproduce the issue?
19,99
as purchase priceDeployment
Docker (Linux)
OS Architechture
ARM64
Deployment Details
No response
Beta Was this translation helpful? Give feedback.
All reactions