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