Save field currency in format "123,456.50"

I have a field on javascript for format values currency. The format is
“123,456.50”, but when I save, is saved “123.0”. I want before save,
format the value “123,456.50” for “123456.50”. Our another soluction is
comming well.

Marcelo J. wrote:

I have a field on javascript for format values currency. The format is
“123,456.50”, but when I save, is saved “123.0”. I want before save,
format the value “123,456.50” for “123456.50”. Our another soluction is
comming well.

Why do you use JS? use NumberHelper method number_to_currency in the
Views.

Elad M. wrote:

Marcelo J. wrote:

I have a field on javascript for format values currency. The format is
“123,456.50”, but when I save, is saved “123.0”. I want before save,
format the value “123,456.50” for “123456.50”. Our another soluction is
comming well.

Why do you use JS? use NumberHelper method number_to_currency in the
Views.

I would like that when the user insert de value, the values to be on
format. That the user does not need to type “,” for decimals, and that
the value already is formatted while be typing the value.