Tipado de totales
This commit is contained in:
parent
5c059057b9
commit
309ce637c8
1 changed files with 5 additions and 5 deletions
10
resources/js/store/modules/pedido.js
vendored
10
resources/js/store/modules/pedido.js
vendored
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue