FIX: recargar facturas despues de cambiar precios
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
}
|
||||
return response.json().then(json => {
|
||||
if (!json.edited) {
|
||||
alert('No se pudo editar la unidad.')
|
||||
return
|
||||
}
|
||||
this.props.valor = parseFloat(json.input.valor)
|
||||
@ -68,8 +69,7 @@
|
||||
return
|
||||
}
|
||||
this.update().precio(newValue).then(() => {
|
||||
facturas.venta.update().totalUnidades()
|
||||
facturas.draw().facturas()
|
||||
window.location.reload()
|
||||
})
|
||||
})
|
||||
},
|
||||
|
Reference in New Issue
Block a user