diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php
index 31185a22..3b19c20b 100755
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php
@@ -20,6 +20,14 @@
= csrf_field() ?>
= view("themes/_commonPartialsBs/_alertBoxes") ?>
+
+
+
+
+
+
= lang('Presupuestos.cubiertaSinAcabadoText') ?>
+
+
= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js
index 19b175bb..6c8b8285 100644
--- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js
+++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js
@@ -559,6 +559,17 @@ class PresupuestoCliente {
$('.is-invalid').removeClass('is-invalid');
const skAlert = document.getElementById('sk-alert');
skAlert.innerHTML = '';
+
+ if (this.datos.cubierta && this.datos.cubierta.acabado && this.datos.cubierta.acabado > 0) {
+
+ $('#alert-cubierta-sin-acabado').addClass('d-none');
+ }
+ else{
+ $('#alert-cubierta-sin-acabado').removeClass('d-none');
+ $(window).scrollTop(0);
+ }
+
+ if( this.datos.cubierta.acabado )
setTimeout(() => {
$(`#containerTiradasEnvios .tirada-envio input[tirada="${this.direcciones.tiradaSeleccionada}"]`).trigger('click');
}, 0);
@@ -598,11 +609,11 @@ class PresupuestoCliente {
#prevtStep() {
if (this.validationStepper._currentIndex >= 1 && this.validationStepper._currentIndex <= 4) {
- if (this.validationStepper._currentIndex == 2) {
+ /*if (this.validationStepper._currentIndex == 2) {
if (this.disenioCubierta.acabadoCubierta.getVal() == 0) {
alertWarningMessage(window.translations.cubiertaSinAcabado, window.translations.cubiertaSinAcabadoText);
}
- }
+ }*/
this.validationStepper.previous();
}
$('html, body').animate({ scrollTop: 0 }, 'slow');