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:
@ -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