diff --git a/.gitignore b/.gitignore index 08e5f6c6..2740fefd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ ci4/.env .vscode/ +xdebug.log \ No newline at end of file diff --git a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php b/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php index 6bdfefa3..c39c0f90 100755 --- a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php +++ b/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php @@ -236,7 +236,7 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController $sanitizedData['solapas'] = 0; } if ($this->request->getPost('solapas_sobrecubierta') == null) { - $sanitizedData['solapas'] = 0; + $sanitizedData['solapas_sobrecubierta'] = 0; } $noException = true; diff --git a/ci4/app/Services/PresupuestoService.php b/ci4/app/Services/PresupuestoService.php index c9afc8b1..8e2b199f 100755 --- a/ci4/app/Services/PresupuestoService.php +++ b/ci4/app/Services/PresupuestoService.php @@ -1749,7 +1749,7 @@ class PresupuestoService extends BaseService $linea = PresupuestoService::getLineaPresupuestoPlana($data); if ($tipo_impresion_id == 5 || $tipo_impresion_id == 6 || - $tipo_impresion_id == 7 || $tipo_impresion_id == 8) { + $tipo_impresion_id == 7 || $tipo_impresion_id == 8 || $tipo_impresion_id == 21) { if ($uso == 'cubierta'){ $linea['fields']['num_formas']['num_formas_horizontales'] *= 2; diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.js b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.js index 9ec619f3..edc64da4 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.js +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.js @@ -2,6 +2,12 @@ $('#paginas').on("change", function () { const url2 = window.location.href; const url_parts2 = url2.split('/'); + + if($('#tipo_impresion_id').val() == 21){ + if(parseInt($('#paginas').val()) > 80){ + $('#paginas').val(80) + } + } if(url_parts2[url_parts2.length-2] == 'edit'){ diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php index ad39064a..0111e9fb 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php @@ -19,7 +19,7 @@ - + > @@ -110,7 +110,7 @@
= lang('PapelImpresion.sobrecubierta') ?>
@@ -246,7 +246,7 @@