From 604c49c99dd11987ada3ba5e78e425dbcdc2d873 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Fri, 10 Jan 2025 11:10:30 -0300 Subject: [PATCH] FIX: If pendiente --- app/resources/views/ventas/add.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/resources/views/ventas/add.blade.php b/app/resources/views/ventas/add.blade.php index 7f84505..0efc33a 100644 --- a/app/resources/views/ventas/add.blade.php +++ b/app/resources/views/ventas/add.blade.php @@ -793,7 +793,9 @@ button.prop('disabled', true) button.css('cursor', 'wait') const body = new FormData(event.currentTarget) - if (body.get('unidad')) + /*const unidades = event.currentTarget.querySelectorAll("[name^='unidad_']") + console.debug(unidades) + return;*/ const uri = '{{$urls->api}}/ventas/add' return fetchAPI(uri, {method: 'post', body}).then(response => { if (!response) {