Arreglado bug de totales con coma

This commit is contained in:
Ale 2022-06-09 20:09:18 -03:00
parent ece866a3ec
commit 0d5551406a
2 changed files with 2 additions and 2 deletions

2
public/js/app.js vendored
View File

@ -3004,7 +3004,7 @@ __webpack_require__.r(__webpack_exports__);
});
for (var i = 0; i < aprobados.length; i++) {
suma += parseFloat(aprobados[i].total);
suma += parseFloat(aprobados[i].total.replace(/,/g, ''));
}
return suma;

View File

@ -58,7 +58,7 @@ export default {
let suma = 0;
let aprobados = this.subpedidos.filter(sp => sp.aprobado);
for (let i = 0; i < aprobados.length; i++) {
suma += parseFloat(aprobados[i].total);
suma += parseFloat(aprobados[i].total.replace(/,/g, ''));
}
return suma;
}