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 2faf2cc3..156c1602 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 @@ -1344,7 +1344,8 @@ if(actualizarLinea){ var rows = $("#tableCompCubierta").DataTable().rows( '.selected' ).data().toArray(); for(row of rows){ - fill_lp_cubierta(row, true); + if (row.tipo=='cubierta') + fill_lp_cubierta(row, true); } } } @@ -1424,10 +1425,11 @@ $('#title_cubierta').html('' + (tableCompCubierta.rows().count()>0 ?(' (' + tableCompCubierta.rows().count() + ')'):'')); $('#insertarCubiertaBtn').removeClass('d-none') if(actualizarLinea){ - /*var rows = $("#tableCompCubierta").DataTable().rows( '.selected' ).data().toArray(); + var rows = $("#tableCompCubierta").DataTable().rows( '.selected' ).data().toArray(); for(row of rows){ - fill_lp_cubierta(row, true); - }*/ + if (row.tipo=='sobrecubierta') + fill_lp_sobrecubierta(row, true); + } } } else{ diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php index 1dba5439..83417f87 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php @@ -58,6 +58,7 @@ + @@ -81,6 +82,7 @@ const papelGenericoCubiertaList = ; const papelGenericoRotativaNegroList = ; const papelGenericoRotativaColorList = ; + const papelGenericoGuardasList = ; @@ -545,6 +547,9 @@ var tableLineasPresupuesto = new DataTable('#tableLineasPresupuesto',{ return select; } + else{ + return ''; + } } }, {data: 'papel', @@ -947,6 +952,9 @@ function clear_cubierta(){ clear_lp_cubierta(true); } +function clear_sobrecubierta(){ + clear_lp_sobrecubierta(true); +} $('.insertarLinea').on("click", function (e) { @@ -995,7 +1003,15 @@ $('.insertarLinea').on("click", function (e) { var rows = $("#tableCompCubierta").DataTable().rows( '.selected' ).data().toArray(); for(row of rows){ - fill_lp_cubierta(row, true); + if(row.tipo == 'cubierta') + fill_lp_cubierta(row, true); + } + + clear_sobrecubierta(); + + for(row of rows){ + if(row.tipo == 'sobrecubierta') + fill_lp_sobrecubierta(row, true); } } @@ -1168,6 +1184,25 @@ $('#btn_addLinea').on("click", function (e) { eventos_lp_cubierta() break + case 'lp_sobrecubierta': + var hayLinea = false + for(let number=0;number', 'divAlarmasLineasPresupuesto'); + break + } + + var data = processRowData({tipo_maquina: 'toner'}, 'lp_sobrecubierta', 'lp-sobrecubierta'); + tableLineasPresupuesto.row.add(data).draw() + eventos_lp_sobrecubierta() + break + case 'lp_guardas': var hayLinea = false for(let number=0;number + + + +async function set_lp_sobrecubierta_gramaje(){ + + await $.ajax({ + type: 'post', + url: '', + beforeSend: function() { + clear_lp_sobrecubierta(true) + }, + data: { + tipo: 'gramajeLineasPresupuesto', + uso: 'sobrecubierta', + datos: $('#lp_sobrecubierta_papel option:selected').val() , + tipoLinea: "colorhq", + : v + }, + dataType: 'json', + success: function (data) { + yeniden(data.); + $.each(data.menu, function(item){ + var option = $('