diff --git a/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php b/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php index 377e874e..b5e98455 100644 --- a/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php +++ b/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php @@ -148,6 +148,8 @@ class Presupuestoadmin extends \App\Controllers\BaseResourceController $this->viewData['incReiList'] = array('incidencia' => lang('Presupuestos.incidencia'), 'reimpresion' => lang('Presupuestos.reimpresion'), 'sin_cargo' => lang('Presupuestos.sinCargo')); $this->viewData['POD'] = $this->getPOD(); + $this->viewData['pais_default_id'] = model('App\Models\Configuracion\ConfigVariableModel')->getVariable('id_pais_defecto')->value; + $this->viewData['pais_default'] = model('App\Models\Configuracion\PaisModel')->find($this->viewData['pais_default_id'])->nombre; $this->viewData['formAction'] = route_to('createPresupuestoAdmin', $tipo_impresion_id); 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 f044e4f9..f99d60a1 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php @@ -125,6 +125,11 @@ diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/disenioCubierta.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/disenioCubierta.js index 8361a299..95b391de 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/disenioCubierta.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/disenioCubierta.js @@ -38,7 +38,7 @@ class DisenioCubierta { solapas: () => {return $('#solapas_cubierta').hasClass("d-none") ? 0 : $('#solapas_cubierta').val()}, lomo: () => {return $('#lc').val()}, tapa_dura: () => {return this.tapaBlanda.hasClass("selected") ? 0 : 1}, - tirada: this.presupuestoCliente.datosGenerales.getTiradas()[0], + tirada: () => {return this.presupuestoCliente.datosGenerales.getTiradas()[0]}, } ); diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/disenioInterior.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/disenioInterior.js index d378c229..0dad4b2a 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/disenioInterior.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/disenioInterior.js @@ -57,7 +57,7 @@ class DisenioInterior { { [this.csrf_token]: this.csrf_hash, tipo: this.getTipoImpresion(), - tirada: () => {return $('#tirada').val()}, + tirada: () => {{return this.presupuestoCliente.datosGenerales.getTiradas()[0]}}, ancho: () => {return this.presupuestoCliente.datosGenerales.getDimensionLibro().ancho}, alto: () => {return this.presupuestoCliente.datosGenerales.getDimensionLibro().alto}, solapas: 0,