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 fe76728d..b0d6af13 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php @@ -556,7 +556,7 @@ }catch(e){} }catch(e){} }catch(e){} - +/* var timp = 'comp_tipo_impresion; ?>' switch(timp){ case 'negro': @@ -574,7 +574,7 @@ default: break; } - +*/ computarPaginasColor($('#compPosPaginasColor').val()); } @@ -748,24 +748,7 @@ ] }); - $('.comp_negro_items').on('change', function (e) { - - checkComparadorInt(false,false); - }); - $('.comp_negrohq_items').on('change', function (e) { - - checkComparadorInt(false, true); - }); - - $('.comp_color_items').on('change', function (e) { - - checkComparadorInt(true, false); - }); - - $('.comp_colorhq_items').on('change', function (e) { - checkComparadorInt(true, true); - }); async function getLineasIntPlana(is_color, is_hq){ @@ -935,22 +918,6 @@ }); - $('#tipoImpresion').on("change", function () { - updatePapelesComparador(); - - $('#title_int_rot').html(''); - $('#title_int_plana').html(''); - $('#paginas').change(); - - $('#tableCompIntRotativa').DataTable().clear().draw(); - $('#total_comp_rot').html("0.00"); - - $('#tableCompIntPlana').DataTable().clear().draw(); - $('#total_comp_plana').html("0.00"); - - }); - - $('.comp_negro_items').on('change', function (e) { checkComparadorInt(false,false); @@ -1078,67 +1045,6 @@ } - $('.comp_cubierta_items').on('change', function (){ - - if ($('#compCarasCubierta').select2('data').length > 0 && - $('#compPapelCubierta').select2('data').length > 0 && - $('#compGramajeCubierta').select2('data').length > 0 ){ - - const dimension = getDimensionLibro(); - - let datos = { - type: 'cubierta', - paginas: parseInt($('#compCarasCubierta').select2('data')[0].id), - tirada: parseInt($('#tirada').val()), - merma: parseInt($('#mermacubierta').val()), - color: 1, - ancho: dimension.ancho, - alto: dimension.alto, - solapas: $('#solapas').is(':checked')?1:0, - solapas_ancho: parseInt($('#solapas_ancho').val()), - papel_generico_id: $('#compPapelCubierta').select2('data')[0].id, - papel_generico: $('#compPapelCubierta').select2('data')[0].text.trim(), - gramaje: $('#compGramajeCubierta').select2('data')[0].text.trim() , - : v - }; - - $.ajax({ - type: "POST", - url: "/cosidotapablanda/datatable", - data: datos, - success: function (data) { - - clearCubierta(); - - if(data.lineas.length >0){ - - fillCubierta(data); - selectCubiertaLineas(); - $('#title_cubierta').html('' + ' (' + tableCompCubierta.rows().count() + ')'); - $('#insertarCubiertaBtn').removeClass('d-none') - - } - else{ - $('#title_cubierta').html(''); - $('#insertarCubiertaBtn').addClass('d-none') - $('#total_comp_cubierta').html('0.00') - - } - yeniden(data.); - return true; - }, - error: function(e){ - return false; - } - }) - } - - else{ - clearCubierta(); - } - }); - - $('#tipoImpresion').on("change", function () { updatePapelesComparador(); $('#title_int_rot').html(''); diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php index b077767c..f75600ed 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php @@ -246,7 +246,7 @@ } }); - var theTable = $('#tableOfServiciosAcabado').DataTable( { + var theTable = /*$('#tableOfServiciosAcabado').DataTable( { draw: 1, serverSide: true, processing: true, @@ -261,7 +261,7 @@ info: false, dom: '<"mt-4"><"float-start"l><"mt-4 mb-3"p>', ajax : $.fn.dataTable.pipeline( { - url: '', + //url: '', data: { id_presupuesto: id, }, @@ -307,15 +307,16 @@ submitHtml: '' } } ] - } ); + } );*/ endSection() ?> -section("additionalInlineJs") ?> +section("additionalInlineJs") ?> +/* const lastColNr2 = $('#tableOfServiciosEncuadernacion').find("tr:first th").length - 1; editor2 = new $.fn.dataTable.Editor( { @@ -395,7 +396,7 @@ info: false, dom: '<"mt-4"><"float-start"l><"mt-4 mb-3"p>', ajax : $.fn.dataTable.pipeline( { - url: '', + //url: '', data: { id_presupuesto: id, tipo_presupuesto: 4, @@ -444,14 +445,14 @@ } } ] } ); - +*/ endSection() ?> section("additionalInlineJs") ?> - +/* const lastColNr3 = $('#tableOfServiciosManipulado').find("tr:first th").length - 1; editor3 = new $.fn.dataTable.Editor( { @@ -534,7 +535,7 @@ info: false, dom: '<"mt-4"><"float-start"l><"mt-4 mb-3"p>', ajax : $.fn.dataTable.pipeline( { - url: '', + //url: '', data: { id_presupuesto: id, }, @@ -581,7 +582,7 @@ } } ] } ); - +*/ endSection() ?> @@ -589,7 +590,7 @@ section("additionalInlineJs") ?> - +/* const lastColNr4 = $('#tableOfServiciosPreimpresion').find("tr:first th").length - 1; editor4 = new $.fn.dataTable.Editor( { @@ -672,7 +673,7 @@ info: false, dom: '<"mt-4"><"float-start"l><"mt-4 mb-3"p>', ajax : $.fn.dataTable.pipeline( { - url: '', + //url: '', data: { id_presupuesto: id, }, @@ -719,5 +720,5 @@ } } ] } ); - -endSection() ?> \ No newline at end of file +*/ +endSection() ?>