From 1720f6854b05a9834bb533fac314210501d5d330 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Sat, 1 Mar 2025 11:29:17 -0300 Subject: [PATCH] FIX: recargar facturas despues de cambiar precios --- app/resources/views/ventas/facturacion/show/unidad.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/resources/views/ventas/facturacion/show/unidad.blade.php b/app/resources/views/ventas/facturacion/show/unidad.blade.php index e2aa9b6..76c0d60 100644 --- a/app/resources/views/ventas/facturacion/show/unidad.blade.php +++ b/app/resources/views/ventas/facturacion/show/unidad.blade.php @@ -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() }) }) },