We have been reporting an issue regarding separators that are not well treated at the moment by the platform.
’ https://github.com/openfoodfoundation/openfoodnetwork/issues/796
So @maikel suggested here to come up with a more general solution to enable to use multiple separators for input.
I suggest we agree on what could be the different possibilities so that we cover all the cases in the fix. The idea is that the system should interpret, whatever the currency setting in “configuration”.
For example in France we have this as a current set up: “,” for decimal mark and " " (blank) for thousands separator.
But as when entered the figure are anyway displayed with the “.” decimal mark, some people to fill in anyway with a “.” as decimal mark, which then causes an issue (cf github issue at th beginning)
So @maikel idea was to enable multiple separators for inputs.
So in the case of France, we would say that we accept both , and . as decimal separators. We don’t have the issue for thousands separators, it’s always a blank or no separator so I don’t think there will be an issue.
For India @sreeharsha you said the separator for decimal is always “.”, but you need multiple separators for thousands, as you use either “,” or nothing. Maybe actually if you set up the thousands separator as “,” if people write 1230.30 it will be displayed correctly even if it doesn’t use the separator, so maybe you actually don’t need the thousands separator, no?
I think it would be great also to have some form of error message if the amount is not filled in in the appropriate format, like if I fill in 24.000, the system should tell “amount no recognized, please enter it in the following format 12 345,50 €”