hotfix/actualizacion-factura-al-cambio-de-unidad #18

Merged
aldarien merged 2 commits from hotfix/actualizacion-factura-al-cambio-de-unidad into develop 2025-03-01 12:40:42 -03:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 1720f6854b - Show all commits

View File

@ -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()
}) })
}) })
}, },