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 3b19c20b..c153784f 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,8 @@
= csrf_field() ?>
= view("themes/_commonPartialsBs/_alertBoxes") ?>
+
+
@@ -28,6 +30,7 @@
= lang('Presupuestos.cubiertaSinAcabadoText') ?>
+
= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js
index 13f3a962..2a846bb5 100644
--- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js
+++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js
@@ -636,7 +636,7 @@ class DatosGenerales {
}
// Para recalcular el presupuesto
- element.trigger('change');
+ $('#paginas').trigger('change');
}
#handlePaginas() {
@@ -693,6 +693,7 @@ class DatosGenerales {
$('#divPapelInterior').empty();
$('#divGramajeInterior').empty();
$('#negroEstandar').trigger('click');
+ $(".divTiradasPrecio").empty();
}
}
else {
diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js
index 23ad3216..a555131f 100644
--- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js
+++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js
@@ -171,10 +171,10 @@ class PresupuestoCliente {
return;
}
if (response.errors.status == 1) {
- popErrorAlert('' + response.errors.value, "sk-alert", false);
+ popErrorAlert('' + response.errors.value, "sk-alert-lomo", false);
}
else {
- popAlert2Hide('sk-alert');
+ popAlert2Hide('sk-alert-lomo');
}
},
() => { }
@@ -492,12 +492,14 @@ class PresupuestoCliente {
if (response === null || response === undefined || response === "") {
popErrorAlert("No se ha podido calcular el presupuesto para los datos proporcionados. Por favor, póngase en contacto con el departamento comercial."
, "sk-alert-2", false);
+ this.divTiradasPrecios.empty();
return;
}
if (Object.values(response.errors).some((value) => value !== "")) {
if (response.errors.status == 1) {
popErrorAlert("No se ha podido calcular el presupuesto para los datos proporcionados. Por favor, póngase en contacto con el departamento comercial."
, "sk-alert-2", false);
+ this.divTiradasPrecios.empty();
return;
}
}
@@ -512,7 +514,7 @@ class PresupuestoCliente {
this.direcciones.divTiradas.empty();
}
- popAlert2Hide();
+ popAlert2Hide("sk-alert-2");
this.divTiradasPrecios.empty();