From 7986627a628e2da5361470d3bd2cbf6ea860d58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Thu, 20 Mar 2025 19:10:39 +0100 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20icono=20para=20abrir=20cliente?= =?UTF-8?q?=20en=20presupuesto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/presupuestos/admin/_datosPresupuestoItems.php | 1 + .../pages/presupuestoAdmin/sections/datosGenerales.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php index f99d60a1..615b2da0 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php @@ -143,6 +143,7 @@
diff --git a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/datosGenerales.js b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/datosGenerales.js index f981d106..742aac2d 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/datosGenerales.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/datosGenerales.js @@ -15,6 +15,8 @@ class DatosGenerales{ this.coleccion = this.domItem.find('#coleccion'); this.numeroEdicion = this.domItem.find('#numeroEdicion'); this.isbn = this.domItem.find('#isbn'); + + this.openCliente = this.domItem.find('#openCliente'); this.cliente = new ClassSelect($('#clienteId'), '/clientes/cliente/getSelect2', 'Seleccione cliente'); @@ -31,6 +33,11 @@ class DatosGenerales{ this.inc_rei.select2({ allowClear: false, }); + + this.openCliente.click(()=>{ + const urlObj = new URL(window.location.href); + window.open(`${urlObj.origin}` + '/clientes/cliente/edit/' + this.cliente.getVal()); + }); } cargarDatos(datos){