From 996cafeb65d5fb7c1de2b17e0f0569a07a71c55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Tue, 20 Aug 2024 13:23:06 +0200 Subject: [PATCH] =?UTF-8?q?arreglado=20que=20no=20se=20mostraba=20el=20tie?= =?UTF-8?q?mpo=20cuando=20se=20a=C3=B1adian=20los=20servicios=20por=20defe?= =?UTF-8?q?cto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presupuestos/cosidotapablanda/_datosServiciosItems.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js b/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js index 43087a11..3a83be01 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js @@ -527,7 +527,7 @@ function init_servicio_encuadernado(){ '' + '', '' + parseFloat(element.precio_unidad).toFixed(2) + '', - '' + convertirTiempo(element.tiempo) + '', + '' + convertirTiempo(element.tiempo) + '', '', '', '' @@ -590,7 +590,7 @@ function init_servicio_encuadernado(){ } function convertirTiempo(horas){ - if(horas != null && horas.length>0){ + if(horas != null){ if(parseFloat(horas)>0){ const seconds = parseFloat(horas) * 3600; // se convierte a formato hh:mm:ss @@ -598,7 +598,7 @@ function convertirTiempo(horas){ const minutos = Math.floor((seconds % 3600) / 60); const segundos = seconds % 60; return h + ':' + minutos + ':' + segundos; - } + } else{ return ""; } @@ -719,7 +719,7 @@ async function get_tarifas_enc(tipo=null, tarifa_id = -1){ '' + '', '' + parseFloat(row.precio_unidad).toFixed(2) + '', - '' + convertirTiempo(row.tiempo) + '', + '' + convertirTiempo(row.tiempo) + '', '', '', ''