quitado el meter el servicio de plegado de guardas

This commit is contained in:
2025-03-05 18:13:11 +01:00
parent f78d392d59
commit f0e9f3562c
5 changed files with 1 additions and 48 deletions

View File

@ -32,9 +32,6 @@ class LineasPresupuesto {
const row = $(this).closest('tr');
const data = self.table.row(row).data()
if (data.row_id == 'lp_guardas') {
$(document).trigger('remove-servicio-lineas', 'plegado_guardas');
}
self.table.row(row)
.remove()
.draw();
@ -2030,8 +2027,6 @@ class LineasPresupuesto {
for (const row of rows) {
this.rellenarDatosLinea('lp_guardas', row, true);
}
$(document).trigger('add-servicio-lineas', 'plegado_guardas');
}
else if (e.target.id.includes("Faja")) {

View File

@ -139,11 +139,6 @@ class Servicios {
if (!this.checkServiceInTable(this.serviciosAcabado.table, id))
this.serviciosAcabado.getPresupuestoAcabado(id, null, null,true);
}
else if (servicio == 'plegado_guardas') {
const id = $('#plegado_guardas').attr('service-id');
if (!this.checkServiceInTable(this.ServiciosManipulado.table, id))
this.ServiciosManipulado.getPresupuestoManipulado(id);
}
else if (servicio == 'solapas_cubierta') {
const id = $('#serv_solapas_cubierta').attr('service-id');
if (!this.checkServiceInTable(this.ServiciosManipulado.table, id))
@ -252,17 +247,6 @@ class Servicios {
}
}
}
else if (servicio == 'plegado_guardas') {
const id = $('#plegado_guardas').attr('service-id');
this.ServiciosManipulado.table.rows().every(function () {
var data = this.data();
if (data && data.tarifa_id == id) {
this.remove();
this.ServiciosManipulado.table.draw();
return;
}
});
}
else if (servicio == 'solapas_cubierta') {
const id = $('#serv_solapas_cubierta').attr('service-id');
this.ServiciosManipulado.table.rows().every(function () {