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
|
||||||
"impresion_bn" => "Impresión BN",
|
"impresion_bn" => "Impresión BN",
|
||||||
"cubierta" => "Cubierta/Portada",
|
"cubierta" => "Cubierta/Portada",
|
||||||
|
"sobrecubierta" => "Sobrecubierta",
|
||||||
"guarda" => "Guarda",
|
"guarda" => "Guarda",
|
||||||
"encuadernacion" => "Encuadernación",
|
"encuadernacion" => "Encuadernación",
|
||||||
|
|
||||||
|
|||||||
@ -1519,8 +1519,13 @@ class ProductionService extends BaseService
|
|||||||
$otDates = $this->ot->dates();
|
$otDates = $this->ot->dates();
|
||||||
foreach ($datesWithTime as $key => $dateWithTime) {
|
foreach ($datesWithTime as $key => $dateWithTime) {
|
||||||
["date" => $date, "tiempo_estimado" => $tiempo_estimado] = $dateWithTime;
|
["date" => $date, "tiempo_estimado" => $tiempo_estimado] = $dateWithTime;
|
||||||
if ($otDates->{$date}) {
|
try {
|
||||||
$progress += $tiempo_estimado / $tiempo_estimado_total * 100;
|
if ($otDates->{$date}) {
|
||||||
|
$progress += $tiempo_estimado / $tiempo_estimado_total * 100;
|
||||||
|
}
|
||||||
|
} catch (\Throwable $th) {
|
||||||
|
//throw $th;
|
||||||
|
$progress += 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $progress;
|
return $progress;
|
||||||
|
|||||||
Reference in New Issue
Block a user