From 2c3b8cb581b29ea193b9f5d2c70bfaf73948d873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Mon, 2 Dec 2024 20:50:11 +0100 Subject: [PATCH] resuelto direcciones en nuevo presupuesto cliente y quitar check papeles distintos --- .../presupuestos/cliente/items/_datosGenerales.php | 2 +- .../safekat/pages/presupuestoCliente/datosGenerales.js | 10 +++++----- .../pages/presupuestoCliente/presupuestoCliente.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_datosGenerales.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_datosGenerales.php index 3f9997af..2456bd2a 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_datosGenerales.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_datosGenerales.php @@ -63,7 +63,7 @@ -
">
user()->inGroup('cliente-admin') || auth()->user()->inGroup('cliente-editor')) ? " hidden" : "" ?> class=" calcular-solapas calcular-presupuesto form-check-input" type="checkbox" id="excluirRotativa" diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js index 7821b5bd..5cb58bd9 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js @@ -572,8 +572,8 @@ class DatosGenerales { this.pagColorConsecutivas.prop('checked', datos.paginasColorConsecutivas); if (datos.paginasColorConsecutivas) { - this.divPapelDiferente.removeClass('d-none'); - this.papelDiferente.prop('checked', datos.papelInteriorDiferente).trigger('change'); + //this.divPapelDiferente.removeClass('d-none'); + //this.papelDiferente.prop('checked', datos.papelInteriorDiferente).trigger('change'); } this.posPaginasColor.val(datos.posPaginasColor); @@ -794,11 +794,11 @@ class DatosGenerales { #handPaginasConsecutivas() { if (this.pagColorConsecutivas.is(':checked')) { - this.divPapelDiferente.removeClass('d-none'); + //this.divPapelDiferente.removeClass('d-none'); } else { - this.divPapelDiferente.addClass('d-none'); - this.papelDiferente.prop('checked', false); + /*this.divPapelDiferente.addClass('d-none'); + this.papelDiferente.prop('checked', false);*/ } } diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js index 431b1d76..5ce4fa4a 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js @@ -78,7 +78,7 @@ class PresupuestoCliente { } - if (this.datosGenerales.excluirRotativa.length == 0) { + if ($('#divExcluirRotativa').hasClass('d-none')) { this.direcciones.direccionesCliente.setParams({ 'cliente_id': $("#clienteId").val() }) }