From ddd7c471a1b09cf205199a4c0f48aff5440a76cd Mon Sep 17 00:00:00 2001 From: amazuecos Date: Tue, 6 May 2025 08:40:07 +0200 Subject: [PATCH] progress ot --- ci4/app/Language/es/Produccion.php | 1 + ci4/app/Services/ProductionService.php | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ci4/app/Language/es/Produccion.php b/ci4/app/Language/es/Produccion.php index 90aeda9d..728920c0 100755 --- a/ci4/app/Language/es/Produccion.php +++ b/ci4/app/Language/es/Produccion.php @@ -119,6 +119,7 @@ return [ //IMPRESION "impresion_bn" => "Impresión BN", "cubierta" => "Cubierta/Portada", + "sobrecubierta" => "Sobrecubierta", "guarda" => "Guarda", "encuadernacion" => "Encuadernación", diff --git a/ci4/app/Services/ProductionService.php b/ci4/app/Services/ProductionService.php index db2463b8..0105df94 100755 --- a/ci4/app/Services/ProductionService.php +++ b/ci4/app/Services/ProductionService.php @@ -1519,8 +1519,13 @@ class ProductionService extends BaseService $otDates = $this->ot->dates(); foreach ($datesWithTime as $key => $dateWithTime) { ["date" => $date, "tiempo_estimado" => $tiempo_estimado] = $dateWithTime; - if ($otDates->{$date}) { - $progress += $tiempo_estimado / $tiempo_estimado_total * 100; + try { + if ($otDates->{$date}) { + $progress += $tiempo_estimado / $tiempo_estimado_total * 100; + } + } catch (\Throwable $th) { + //throw $th; + $progress += 0; } } return $progress;