Tipado de totales

This commit is contained in:
Alejandro Tasistro 2025-06-23 20:13:45 -03:00
parent 5c059057b9
commit 309ce637c8

View file

@ -25,11 +25,11 @@ const mutations = {
state.nombre = pedido.nombre; state.nombre = pedido.nombre;
state.productos = pedido.productos; state.productos = pedido.productos;
state.aprobado = pedido.aprobado; state.aprobado = pedido.aprobado;
state.total = pedido.total; state.total = Number.parseFloat(pedido.total.replace(',',''));
state.total_transporte = pedido.total_transporte; state.total_transporte = Number.parseInt(pedido.total_transporte.replace(',',''));
state.cantidad_transporte = pedido.cantidad_transporte; state.cantidad_transporte = Number.parseInt(pedido.cantidad_transporte.replace(',',''));
state.total_sin_devoluciones = pedido.total_sin_devoluciones; state.total_sin_devoluciones = Number.parseFloat(pedido.total_sin_devoluciones.replace(',',''));
state.devoluciones_total = pedido.devoluciones_total; state.devoluciones_total = Number.parseFloat(pedido.devoluciones_total.replace(',',''));
state.devoluciones_notas = pedido.devoluciones_notas; state.devoluciones_notas = pedido.devoluciones_notas;
}, },
reset(state) { reset(state) {