mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
progress ot
This commit is contained in:
@ -119,6 +119,7 @@ return [
|
||||
//IMPRESION
|
||||
"impresion_bn" => "Impresión BN",
|
||||
"cubierta" => "Cubierta/Portada",
|
||||
"sobrecubierta" => "Sobrecubierta",
|
||||
"guarda" => "Guarda",
|
||||
"encuadernacion" => "Encuadernación",
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user