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