diff --git a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php b/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php
index 41b01c3d..520929dc 100644
--- a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php
+++ b/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php
@@ -482,9 +482,6 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
// En este caso contiene el nombre del papel generico
$model = new PapelGenericoModel();
$menu = $model->getGramajeComparador($datos, $searchStr);
- $nonItem = new \stdClass;
- $nonItem->text = '- ' . lang('Basic.global.None') . ' -';
- array_unshift($menu, $nonItem);
}
diff --git a/ci4/app/Language/en/Presupuestos.php b/ci4/app/Language/en/Presupuestos.php
index bbc8caf5..d9004b7e 100644
--- a/ci4/app/Language/en/Presupuestos.php
+++ b/ci4/app/Language/en/Presupuestos.php
@@ -61,8 +61,6 @@ return [
'cubierta' => 'Cover',
'sobrecubierta' => 'Dust jacket',
'encuadernacion' => 'Binding',
- 'solapas' => 'Book cover',
- 'solapas_ancho' => 'Book cover width',
/* '4x0' => '4x0',
'4x4' => '4x4',
diff --git a/ci4/app/Language/es/Presupuestos.php b/ci4/app/Language/es/Presupuestos.php
index 6205da5e..f2c59adc 100644
--- a/ci4/app/Language/es/Presupuestos.php
+++ b/ci4/app/Language/es/Presupuestos.php
@@ -81,8 +81,6 @@ return [
'cubierta' => 'Cubierta',
'sobrecubierta' => 'Sobrecubierta',
'encuadernacion' => 'Encuadernación',
- 'solapas' => 'Solapa cubierta',
- 'solapas_ancho' => 'Ancho solapa cubierta',
/* '4x0' => '4x0',
'4x4' => '4x4',
diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php
index b4dd5292..8bf30aaa 100644
--- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php
+++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php
@@ -83,7 +83,7 @@
-
@@ -181,7 +181,14 @@
= lang('PapelImpresion.cubierta') ?>
-
+
+
+
+
@@ -346,7 +353,7 @@
@@ -388,41 +395,7 @@
-
-
-
- | = lang('Presupuestos.tipo') ?> |
- = lang('Presupuestos.paginas') ?> |
- = lang('Presupuestos.papel') ?> |
- = lang('Presupuestos.gramaje') ?> |
- = lang('Presupuestos.marca') ?> |
- = lang('Presupuestos.maquina') ?> |
- = lang('Presupuestos.numeroPliegos') ?> |
- = lang('Presupuestos.pliegosPedido') ?> |
- = lang('Presupuestos.precioPliego') ?> |
- = lang('Presupuestos.libro') ?> |
- = lang('Presupuestos.totalPapelPedido') ?> |
- = lang('Presupuestos.lomo') ?> |
- = lang('Presupuestos.peso') ?> |
- = lang('Presupuestos.click') ?> |
- = lang('Presupuestos.totalClicks') ?> |
- = lang('Presupuestos.precioPagNegro') ?> |
- = lang('Presupuestos.precioPagColor') ?> |
- = lang('Presupuestos.totalTinta') ?> |
- = lang('Presupuestos.totalCorte') ?> |
- = lang('Presupuestos.total') ?> |
-
-
-
-
-
-
- | = lang('Presupuestos.total') ?> = lang('Presupuestos.sobrecubierta') ?>: |
- 0.00 |
-
-
-
-
+
diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php
index 65171a01..0b877195 100644
--- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php
+++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php
@@ -83,9 +83,17 @@
allowClear: false,
});
+ $('#compGramajeNegro').select2({
+ allowClear: false,
+ });
+
$('#compPapelNegrohq').select2({
allowClear: false,
});
+
+ $('#compGramajeNegrohq').select2({
+ allowClear: false,
+ });
$('#compPapelColor').select2({
allowClear: false,
@@ -99,14 +107,6 @@
allowClear: false,
});
- $('#compPapelBicolor').select2({
- allowClear: false,
- });
-
- $('#compGramajeBicolor').select2({
- allowClear: false,
- });
-
$('#compPapelCubierta').select2({
allowClear: false,
});
@@ -115,15 +115,16 @@
allowClear: false,
});
- $('#compPapelSobrecubierta').select2({
+ $('#encuadernacion').select2({
allowClear: false,
});
- $('#compGramajeSobrecubierta').select2({
+ $('#compPaginasCubierta').select2({
allowClear: false,
+ minimumResultsForSearch: Infinity,
});
-
+
= $this->endSection() ?>
@@ -211,10 +212,14 @@
});
- $('#compPapelNegro').on('change', function (e){
+ $('#compPapelNegro').on('select2:select', function (e){
+
+ $('#compGramajeNegro').val(null).trigger('change');
+ $('#compGramajeNegro').prop('disabled', false);
+ $('#compPapelNegro').find('option[value="0"]').remove();
$('#compGramajeNegro').select2({
- allowClear: false,
+ allowClear: true,
minimumResultsForSearch: Infinity,
ajax: {
url: '= route_to("menuItemsOfCosidotapablanda") ?>',
@@ -241,11 +246,13 @@
});
- $('#compPapelNegrohq').on('change', function (e){
+ $('#compPapelNegrohq').on('select2:select', function (e){
+ $('#compGramajeNegrohq').val(null).trigger('change');
$('#compGramajeNegrohq').prop('disabled', false);
+ $('#compPapelNegrohq').find('option[value="0"]').remove();
$('#compGramajeNegrohq').select2({
- allowClear: false,
+ allowClear: true,
minimumResultsForSearch: Infinity,
ajax: {
url: '= route_to("menuItemsOfCosidotapablanda") ?>',
@@ -270,6 +277,106 @@
}
});
});
+
+
+ $('#compPapelColor').on('select2:select', function (e){
+
+ $('#compGramajeColor').val(null).trigger('change');
+ $('#compGramajeColor').prop('disabled', false);
+ $('#compPapelColor').find('option[value="0"]').remove();
+ $('#compGramajeColor').select2({
+ allowClear: true,
+ minimumResultsForSearch: Infinity,
+ ajax: {
+ url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ type: 'post',
+ dataType: 'json',
+
+ data: function (params) {
+ return {
+ tipo: 'gramaje',
+ datos: $('#compPapelColor').select2('data')[0].text.trim() ,
+ = csrf_token() ?? "token" ?> : = csrf_token() ?>v
+ };
+ },
+ delay: 60,
+ processResults: function (response) {
+ yeniden(response.= csrf_token() ?>);
+ return {
+ results: response.menu
+ };
+ },
+ cache: true
+ }
+ });
+ });
+
+
+ $('#compPapelColorhq').on('select2:select', function (e){
+
+ $('#compGramajeColorhq').val(null).trigger('change');
+ $('#compGramajeColorhq').prop('disabled', false);
+ $('#compPapelColorhq').find('option[value="0"]').remove();
+ $('#compGramajeColorhq').select2({
+ allowClear: true,
+ minimumResultsForSearch: Infinity,
+ ajax: {
+ url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ type: 'post',
+ dataType: 'json',
+
+ data: function (params) {
+ return {
+ tipo: 'gramaje',
+ datos: $('#compPapelColorhq').select2('data')[0].text.trim() ,
+ = csrf_token() ?? "token" ?> : = csrf_token() ?>v
+ };
+ },
+ delay: 60,
+ processResults: function (response) {
+ yeniden(response.= csrf_token() ?>);
+ return {
+ results: response.menu
+ };
+ },
+ cache: true
+ }
+ });
+ });
+
+ $('#compPapelCubierta').on('select2:select', function (e){
+
+ $('#compGramajeCubierta').val(null).trigger('change');
+ $('#compGramajeCubierta').prop('disabled', false);
+ $('#compPapelCubierta').find('option[value="0"]').remove();
+ $('#compGramajeCubierta').select2({
+ allowClear: true,
+ minimumResultsForSearch: Infinity,
+ ajax: {
+ url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ type: 'post',
+ dataType: 'json',
+
+ data: function (params) {
+ return {
+ tipo: 'gramaje',
+ datos: $('#compPapelCubierta').select2('data')[0].text.trim() ,
+ = csrf_token() ?? "token" ?> : = csrf_token() ?>v
+ };
+ },
+ delay: 60,
+ processResults: function (response) {
+ yeniden(response.= csrf_token() ?>);
+ return {
+ results: response.menu
+ };
+ },
+ cache: true
+ }
+ });
+ });
+
+
= $this->endSection() ?>