From 3b38b5d3494f85ae48e00d1c885105f8a21a5dd4 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Fri, 4 Apr 2025 13:19:20 -0300 Subject: [PATCH] Si no existe Pie no muestra reajuste. Mostrar loading mientras se guarda --- .../views/ventas/escriturar.blade.php | 66 ++++++++++--------- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/app/resources/views/ventas/escriturar.blade.php b/app/resources/views/ventas/escriturar.blade.php index feb6786..e61e3f5 100644 --- a/app/resources/views/ventas/escriturar.blade.php +++ b/app/resources/views/ventas/escriturar.blade.php @@ -23,43 +23,45 @@ - @if ($venta->formaPago()->pie->reajuste === null) -

Reajuste

-
-
- -
-
$
- + @if ($venta->formaPago()->pie !== null) + @if ($venta->formaPago()->pie->reajuste === null) +

Reajuste

+
+
+ +
+
$
+ +
-
-
- -
-
- - +
+ +
+
+ + +
-
- @else -

Reajuste

-
-
- -
-
$
- + @else +

Reajuste

+
+
+ +
+
$
+ +
+
+
+ +
+ +
-
- -
- -
-
-
+ @endif @endif @if (!isset($venta->formaPago()->escritura))

Pago en Escritura

@@ -249,6 +251,7 @@ subsidio.watch() $('#escriturar_form').submit(event => { event.preventDefault() + $('.ui.button').addClass('loading') const url = '{{$urls->api}}/venta/{{$venta->id}}/escriturar' const body = new FormData(event.currentTarget) const fecha = $('#fecha').calendar('get date') @@ -268,6 +271,7 @@ } } fetchAPI(url, {method: 'post', body}).then(response => { + $('.ui.button').removeClass('loading') if (response.ok) { return response.json() }