Discussion:
[tryton] sao and comma decimal separator
Richard PALO
2018-06-22 06:31:19 UTC
Permalink
How to get SAO client data entry to accept numeric keypad decimal as comma
which seems to be required for debit/credit entries? I'm using French locale.

No problem in standard client.
--
Richard PALO
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/2dbd6fd6-7a28-cb90-3177-6ef08bc4704e%40free.fr.
Richard PALO
2018-06-22 06:42:43 UTC
Permalink
Post by Richard PALO
How to get SAO client data entry to accept numeric keypad decimal as comma
which seems to be required for debit/credit entries? I'm using French locale.
No problem in standard client.
Thought I would double check with chromium and surprisingly there it *is* converted to a ','.
So to rephrase the question, how to turn this on with mozilla firefox?
--
Richard PALO
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/fc9a629d-9d3a-1d9b-979f-b424a963dc7c%40free.fr.
Cédric Krier
2018-06-22 07:35:28 UTC
Permalink
Post by Richard PALO
Post by Richard PALO
How to get SAO client data entry to accept numeric keypad decimal as comma
which seems to be required for debit/credit entries? I'm using French locale.
No problem in standard client.
Thought I would double check with chromium and surprisingly there it *is* converted to a ','.
So to rephrase the question, how to turn this on with mozilla firefox?
You should ask Firefox to support it: https://bugs.tryton.org/msg36685
--
Cédric Krier - B2CK SPRL
Email/Jabber: ***@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20180622073528.GR30646%40kei.
Richard PALO
2018-06-22 17:14:58 UTC
Permalink
Post by Cédric Krier
Post by Richard PALO
Post by Richard PALO
How to get SAO client data entry to accept numeric keypad decimal as comma
which seems to be required for debit/credit entries? I'm using French locale.
No problem in standard client.
Thought I would double check with chromium and surprisingly there it *is* converted to a ','.
So to rephrase the question, how to turn this on with mozilla firefox?
You should ask Firefox to support it: https://bugs.tryton.org/msg36685
Well, this may be over simplistic, but noticing this
Post by Cédric Krier
https://stackoverflow.com/questions/24407109/new-webkits-convert-decimal-comma-to-dot-and-vice-versa-in-number-type-inputs
and trying https://codepen.io/anon/pen/xDvCB?editors=100
I notice that I can use the keypad decimal just fine in the fox and chromium/vivaldi.
I can also use the standard keyboard ',' (or '.' for that matter)

Is there perhaps something fudging things up in an intermediate layer?
--
Richard PALO
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/072fee7d-1bde-7a99-6117-afce601accfd%40free.fr.
Josias Pérez
2018-07-04 16:38:52 UTC
Permalink
Post by Richard PALO
How to get SAO client data entry to accept numeric keypad decimal as comma
which seems to be required for debit/credit entries? I'm using French locale.
No problem in standard client.
--
Richard PALO
Hi,

I will thanks how to change dot per comma (or the other way around) in tryton and sao. I work with spanish localization and in my country use dot for decimals and comma for miles separator.

I can use dot for enter decimals but after entering the data it is display with comma for decimals and dots per commas.

I reviewed the custom location setting on windows but it's correctly configured.

Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/d421a316-9e7e-46c5-a4d4-0ab3d686d379%40googlegroups.com.
Sergi Almacellas Abellana
2018-07-05 07:27:17 UTC
Permalink
Post by Josias Pérez
I will thanks how to change dot per comma (or the other way around) in tryton and sao. I work with spanish localization and in my country use dot for decimals and comma for miles separator.
I can use dot for enter decimals but after entering the data it is display with comma for decimals and dots per commas.
I reviewed the custom location setting on windows but it's correctly configured.
The numeric fields are displayed using the numeric format on the
language. If you have diferent settings you should create a derivative
language (so all the translations are inherit) and set your custom
formating.

This is how the "Spanish (Latin American)" language works.
I'm wondering if you should not use this Language instead of the Spanish
one as it has the numeric settings as you are requesting.

Hope it helps.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/04e50c75-196a-00c4-b952-771302edb337%40koolpi.com.
Cédric Krier
2018-07-05 07:43:56 UTC
Permalink
Post by Sergi Almacellas Abellana
Post by Josias Pérez
I will thanks how to change dot per comma (or the other way around) in tryton and sao. I work with spanish localization and in my country use dot for decimals and comma for miles separator.
I can use dot for enter decimals but after entering the data it is display with comma for decimals and dots per commas.
I reviewed the custom location setting on windows but it's correctly configured.
The numeric fields are displayed using the numeric format on the
language. If you have diferent settings you should create a derivative
language (so all the translations are inherit) and set your custom
formating.
This is how the "Spanish (Latin American)" language works.
I'm wondering if you should not use this Language instead of the Spanish
one as it has the numeric settings as you are requesting.
To be clear, sao does not use the formatting option of the language
defined in trytond. But only the language code, to request the browser
to format with toLocalString [1]

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
--
Cédric Krier - B2CK SPRL
Email/Jabber: ***@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20180705074356.GH4715%40kei.
Loading...