From 879669a7f0d200fb0b1f7f9c2da1d240beb2b05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez=20Ortega?= Date: Wed, 13 Mar 2024 21:07:34 +0100 Subject: [PATCH] corregido bug de servicios por defecto --- ci4/app/Models/Configuracion/PapelFormatoModel.php | 2 +- .../presupuestos/cosidotapablanda/_datosServiciosItems.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci4/app/Models/Configuracion/PapelFormatoModel.php b/ci4/app/Models/Configuracion/PapelFormatoModel.php index 7c4d2464..c92364d4 100755 --- a/ci4/app/Models/Configuracion/PapelFormatoModel.php +++ b/ci4/app/Models/Configuracion/PapelFormatoModel.php @@ -91,6 +91,6 @@ class PapelFormatoModel extends \App\Models\GoBaseModel ->table($this->table . " t1") ->select( "t1.id AS id, CONCAT(t1.ancho, ' x ', t1.alto) AS tamanio" - )->get()->getResultObject(); + )->where('is_deleted', 0)->get()->getResultObject(); } } diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js index 38ffc232..50e9bfab 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js @@ -664,8 +664,8 @@ async function get_tarifas_enc(tipo=null, tarifa_id = -1){ if(tipo != null){ datos['tipo'] = tipo; - datos['tipo_impresion_id'] = parseInt($('#tipo_impresion').val()) - } + datos['tipo_impresion_id'] = parseInt($('#tipo_impresion_id').val()) + } $.ajax({ type: "POST", @@ -953,7 +953,7 @@ async function get_tarifas_manipulado(tipo=null, tarifa_id = -1){ if(tipo != null){ datos['tipo'] = tipo; datos['solapas'] = $('#solapas').is(':checked')?1:0; - datos['tipo_impresion_id'] = parseInt($('#tipo_impresion').val()); + datos['tipo_impresion_id'] = parseInt($('#tipo_impresion_id').val()); }