eikek / docspell

Assist in organizing your piles of documents, resulting from scanners, e-mails and other sources with miminal effort.
https://docspell.org
GNU Affero General Public License v3.0
1.61k stars 120 forks source link

FR: Custom field/numeric - normalize , to . #1975

Closed adlerweb closed 1 year ago

adlerweb commented 1 year ago

When using "numeric", typing a ',' results in a error message like "Not a number: 12,34". When using "money" inputs are normalized, in this case typing a "," automatically will replace to '.'. https://github.com/eikek/docspell/blob/e7556311c5cae706408fef5a0519612a0451f943/modules/webapp/src/main/elm/Data/Money.elm#L65 As ',' isn't parsed as thousand separator anyway it would be great to apply this normalization for numeric fields too. This would make it easier to enter decimals when using a keyboard layout optimized for ',' as decimal separator.

eikek commented 1 year ago

Oh yes, thanks for reporting!