mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix title size
This commit is contained in:
@ -424,7 +424,7 @@ class ProductionService extends BaseService
|
||||
*/
|
||||
protected function storeTareaCorteFinal(): ?OrdenTrabajoTareaEntity
|
||||
{
|
||||
|
||||
|
||||
$presupuestoLineaImpresion = $this->presupuesto->presupuestoLineaImpresion();
|
||||
$data = [
|
||||
'orden_trabajo_id' => $this->ot->id,
|
||||
@ -451,26 +451,33 @@ class ProductionService extends BaseService
|
||||
protected function storeTareaCorte(PresupuestoLineaEntity $pLinea): ?OrdenTrabajoTareaEntity
|
||||
{
|
||||
$otCorte = null;
|
||||
$presupuestoTipo = $this->presupuesto->tipo_presupuesto()->codigo;
|
||||
$isRusticaFresado = str_contains($presupuestoTipo, "Fresado");
|
||||
$data = [
|
||||
'orden_trabajo_id' => $this->ot->id,
|
||||
'presupuesto_linea_id' => $pLinea->id,
|
||||
'nombre' => 'Corte',
|
||||
'maquina_id' => $this->guillotinaMaquinaId ?? 20,//!REMOVE LATER
|
||||
'orden' => $pLinea->maquina()->orden_planning + 1,
|
||||
'maquina_id' => $this->guillotinaMaquinaId,
|
||||
'orden' => $pLinea->maquina()->orden_planning + 1,
|
||||
'tiempo_estimado' => $pLinea->rotativa_tiempo_corte * 60,
|
||||
'tiempo_real' => 0,
|
||||
'is_corte' => true,
|
||||
'tipo_corte' => "guillotina",
|
||||
'tipo_corte' => "prep",
|
||||
];
|
||||
if ($pLinea->isCubierta()) {
|
||||
$data['nombre'] = lang('Produccion.cover_cut');
|
||||
$tareaId = $this->otTarea->insert($data);
|
||||
$otCorte = $this->otTarea->find($tareaId);
|
||||
}
|
||||
if($pLinea->isRotativa() ||$pLinea->isColor()||$pLinea->isBN())
|
||||
{
|
||||
if ($pLinea->isImpresionInteriorPlana() || $pLinea->isRotativa()) {
|
||||
$data['nombre'] = lang('Produccion.interior_cut');
|
||||
//* Si es rustica fresado y rotativa no se añade preparación de interior en guillotina
|
||||
if (!$isRusticaFresado && !$pLinea->isRotativa()) {
|
||||
$tareaId = $this->otTarea->insert($data);
|
||||
$otCorte = $this->otTarea->find($tareaId);
|
||||
return $otCorte;
|
||||
}
|
||||
}
|
||||
$tareaId = $this->otTarea->insert($data);
|
||||
$otCorte = $this->otTarea->find($tareaId);
|
||||
return $otCorte;
|
||||
}
|
||||
|
||||
@ -492,7 +499,7 @@ class ProductionService extends BaseService
|
||||
'presupuesto_linea_id' => $pLinea->id,
|
||||
'nombre' => $name,
|
||||
'maquina_id' => $this->defaultMaquinaCorte->id,
|
||||
'orden' => $pLinea->maquina()->orden_planning + 1,
|
||||
'orden' => $pLinea->maquina()->orden_planning + 1,
|
||||
'tiempo_estimado' => $pLinea->rotativa_tiempo_corte * 60,
|
||||
'tiempo_real' => 0,
|
||||
'is_corte' => true,
|
||||
@ -1393,7 +1400,7 @@ class ProductionService extends BaseService
|
||||
public function tareaUpdateMaquinaCorte($orden_trabajo_id): bool
|
||||
{
|
||||
$cvm = model(ConfigVariableModel::class);
|
||||
$otTarea = $this->otTarea->where('orden_trabajo_id', $orden_trabajo_id)->where('is_corte', true)->first();
|
||||
$otTarea = $this->otTarea->where('orden_trabajo_id', $orden_trabajo_id)->where('is_corte', true)->whereIn('tipo_corte', ['bobina', 'guillotina'])->first();
|
||||
$toggleCorte = "bobina";
|
||||
if ($otTarea->tipo_corte == "bobina") {
|
||||
$maquina_id = $cvm->where('name', "id_maquina_guillotina_corte_ot_tarea")->first()["value"];
|
||||
|
||||
Reference in New Issue
Block a user