Automatically convert comma as point for numeric cells

This commit is contained in:
Juan Lago 2023-06-28 14:04:04 +02:00 committed by tato
parent dbcc862a98
commit c71975025f

View File

@ -143,6 +143,10 @@ export function setCellValue(
let vupdate;
if (!_.isNil(v.v) && _.includes(v.ct?.fa, "0.0")) {
v.v = _.replace(v.v.toString(), ",", ".");
}
if (_.isPlainObject(v)) {
if (_.isNil(cell)) {
cell = v;
@ -153,10 +157,6 @@ export function setCellValue(
delete cell.f;
}
// if (!_.isNil(v.spl)) {
// cell.spl = v.spl;
// }
if (!_.isNil(v.ct)) {
cell.ct = v.ct;
}