Add issue11499.diff # [sao] Set FractionDigits options to format CSV to locale.

Task #051227
This commit is contained in:
Juanjo Garcia 2022-06-22 10:09:40 +02:00
parent 10a4637164
commit f530182f0c
2 changed files with 18 additions and 0 deletions

16
issue11499.diff Normal file
View File

@ -0,0 +1,16 @@
diff --git a/sao/src/window.js b/sao/src/window.js
index d6076f1..ff0b66f 100644
--- a/sao/src/window.js
+++ b/sao/src/window.js
@@ -1825,7 +1825,10 @@
val = val.format(Sao.common.date_format());
} else if (!isNaN(Number(val))) {
val = val.toLocaleString(
- Sao.i18n.BC47(Sao.i18n.getlang()));
+ Sao.i18n.BC47(Sao.i18n.getlang()), {
+ 'minimumFractionDigits': 0,
+ 'maximumFractionDigits': 20,
+ });
}
} else if (typeof(val) == 'boolean') {
val += 0;

2
series
View File

@ -122,3 +122,5 @@ issue11077.diff # [trytond] Fill Value of MultiValue with the other default valu
issue8952.diff # [country] Use Tryton's CDN to download postal codes Remove on 6.4
issue10363.diff # [production] Remove unique product constraint on BOM
issue11000.diff # [account]
issue11499.diff # [sao] Set FractionDigits options to format CSV to locale