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) + '',
'',
'' + parseFloat(element.margen).toFixed(2) + '',
''
@@ -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) + '',
'',
'' + parseFloat(row.margen).toFixed(2) + '',
''