try catch getTiempoProcesamientoHHMM

This commit is contained in:
amazuecos
2025-04-27 19:26:02 +02:00
parent 1d6f5fe53e
commit 31a12ff343

View File

@ -1353,9 +1353,13 @@ class ProductionService extends BaseService
}
public function getTiempoProcesamientoHHMM(): ?string
{
try {
$time_tareas_seconds = array_map(fn($q) => $q->tiempo_estimado ?? 0, $this->ot->tareas());
$seconds = array_sum($time_tareas_seconds);
return float_seconds_to_hhmm_string($seconds);
} catch (\Throwable $th) {
return '00:00';
}
}
public function getTiempoTareasImpresionHHMM(): string
{