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:
@ -707,7 +707,7 @@ class Ordentrabajo extends BaseController
|
|||||||
$r = $this->produccionService->storeOrdenTrabajoTareaProgressDate($validatedData);
|
$r = $this->produccionService->storeOrdenTrabajoTareaProgressDate($validatedData);
|
||||||
$otTareaEntity = $this->otTarea->find($validatedData['ot_tarea_id']);
|
$otTareaEntity = $this->otTarea->find($validatedData['ot_tarea_id']);
|
||||||
$data = [
|
$data = [
|
||||||
"tiempo_trabajado" => float_seconds_to_hhmm_string($otTareaEntity->tiempo_real),
|
"tiempo_trabajado" => float_seconds_to_hhmmss_string($otTareaEntity->tiempo_real),
|
||||||
"tarea" => $otTareaEntity,
|
"tarea" => $otTareaEntity,
|
||||||
"estado" => $validatedData['estado'],
|
"estado" => $validatedData['estado'],
|
||||||
];
|
];
|
||||||
@ -728,7 +728,7 @@ class Ordentrabajo extends BaseController
|
|||||||
{
|
{
|
||||||
$otTareaEntity = $this->otTarea->find($orden_trabajo_tarea_id);
|
$otTareaEntity = $this->otTarea->find($orden_trabajo_tarea_id);
|
||||||
$data = [
|
$data = [
|
||||||
"tiempo_trabajado" => float_seconds_to_hhmm_string($otTareaEntity->tiempo_trabajado()),
|
"tiempo_trabajado" => float_seconds_to_hhmmss_string($otTareaEntity->tiempo_trabajado()),
|
||||||
"progress_dates" => $otTareaEntity->progress_dates(),
|
"progress_dates" => $otTareaEntity->progress_dates(),
|
||||||
];
|
];
|
||||||
return $this->response->setJSON($data);
|
return $this->response->setJSON($data);
|
||||||
|
|||||||
@ -248,6 +248,10 @@ class PresupuestoLineaEntity extends \CodeIgniter\Entity\Entity
|
|||||||
return in_array($this->attributes['tipo'], ["lp_bn", "lp_bnhq", "lp_rot_bn"]);
|
return in_array($this->attributes['tipo'], ["lp_bn", "lp_bnhq", "lp_rot_bn"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isImpresionInteriorPlana():bool
|
||||||
|
{
|
||||||
|
return in_array($this->attributes['tipo'], ["lp_bn", "lp_bnhq", "lp_colorhq","lp_color"]);
|
||||||
|
}
|
||||||
public function tinta(): string
|
public function tinta(): string
|
||||||
{
|
{
|
||||||
$tinta = "";
|
$tinta = "";
|
||||||
|
|||||||
@ -451,26 +451,33 @@ class ProductionService extends BaseService
|
|||||||
protected function storeTareaCorte(PresupuestoLineaEntity $pLinea): ?OrdenTrabajoTareaEntity
|
protected function storeTareaCorte(PresupuestoLineaEntity $pLinea): ?OrdenTrabajoTareaEntity
|
||||||
{
|
{
|
||||||
$otCorte = null;
|
$otCorte = null;
|
||||||
|
$presupuestoTipo = $this->presupuesto->tipo_presupuesto()->codigo;
|
||||||
|
$isRusticaFresado = str_contains($presupuestoTipo, "Fresado");
|
||||||
$data = [
|
$data = [
|
||||||
'orden_trabajo_id' => $this->ot->id,
|
'orden_trabajo_id' => $this->ot->id,
|
||||||
'presupuesto_linea_id' => $pLinea->id,
|
'presupuesto_linea_id' => $pLinea->id,
|
||||||
'nombre' => 'Corte',
|
'nombre' => 'Corte',
|
||||||
'maquina_id' => $this->guillotinaMaquinaId ?? 20,//!REMOVE LATER
|
'maquina_id' => $this->guillotinaMaquinaId,
|
||||||
'orden' => $pLinea->maquina()->orden_planning + 1,
|
'orden' => $pLinea->maquina()->orden_planning + 1,
|
||||||
'tiempo_estimado' => $pLinea->rotativa_tiempo_corte * 60,
|
'tiempo_estimado' => $pLinea->rotativa_tiempo_corte * 60,
|
||||||
'tiempo_real' => 0,
|
'tiempo_real' => 0,
|
||||||
'is_corte' => true,
|
'is_corte' => true,
|
||||||
'tipo_corte' => "guillotina",
|
'tipo_corte' => "prep",
|
||||||
];
|
];
|
||||||
if ($pLinea->isCubierta()) {
|
if ($pLinea->isCubierta()) {
|
||||||
$data['nombre'] = lang('Produccion.cover_cut');
|
$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');
|
$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;
|
return $otCorte;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1393,7 +1400,7 @@ class ProductionService extends BaseService
|
|||||||
public function tareaUpdateMaquinaCorte($orden_trabajo_id): bool
|
public function tareaUpdateMaquinaCorte($orden_trabajo_id): bool
|
||||||
{
|
{
|
||||||
$cvm = model(ConfigVariableModel::class);
|
$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";
|
$toggleCorte = "bobina";
|
||||||
if ($otTarea->tipo_corte == "bobina") {
|
if ($otTarea->tipo_corte == "bobina") {
|
||||||
$maquina_id = $cvm->where('name', "id_maquina_guillotina_corte_ot_tarea")->first()["value"];
|
$maquina_id = $cvm->where('name', "id_maquina_guillotina_corte_ot_tarea")->first()["value"];
|
||||||
|
|||||||
@ -76,10 +76,8 @@ $settings = $session->get('settings');
|
|||||||
</div>
|
</div>
|
||||||
<div class="row p-2">
|
<div class="row p-2">
|
||||||
<div class="col-3 h-100">
|
<div class="col-3 h-100">
|
||||||
<div class="row px-2 d-flex flex justify-content-between align-items-center">
|
<div class="row text-center">
|
||||||
<div class="col-6 w-100 text-center code-title">
|
<span id="fecha_encuadernado_at" class="fs-large fw-bold" style="color:<?= $colors["general"]["color"] ?>;"><?= $pedido->fecha_encuadernado ? Time::createFromFormat("Y-m-d H:i:s", $pedido->fecha_encuadernado)->format('d/m/Y') : "" ?></span>
|
||||||
<span id="fecha_encuadernado_at" class="code-title fw-bold" style="color:<?= $colors["general"]["color"] ?>;"><?= $pedido->fecha_encuadernado ? Time::createFromFormat("Y-m-d H:i:s", $pedido->fecha_encuadernado)->format('d/m/Y') : "" ?></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row px-2 mt-2 h-100">
|
<div class="row px-2 mt-2 h-100">
|
||||||
<table class="h-100 bg-white" style="font-size: small;">
|
<table class="h-100 bg-white" style="font-size: small;">
|
||||||
@ -210,25 +208,25 @@ $settings = $session->get('settings');
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div>
|
<div>
|
||||||
<table class="">
|
<table class="">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="t-header"><?= lang('Produccion.size') ?></th>
|
<th class="t-header"><?= lang('Produccion.size') ?></th>
|
||||||
<th class="t-header"><?= lang('Produccion.ejemplares') ?></th>
|
<th class="t-header"><?= lang('Produccion.ejemplares') ?></th>
|
||||||
<th class="t-header"><?= lang('Produccion.tipo') ?></th>
|
<th class="t-header"><?= lang('Produccion.tipo') ?></th>
|
||||||
<th class="t-header"><?= lang('Produccion.lomo') ?></th>
|
<th class="t-header"><?= lang('Produccion.lomo') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<?php if ($presupuesto->papel_formato_personalizado): ?>
|
<?php if ($presupuesto->papel_formato_personalizado): ?>
|
||||||
<td class="t-cell text-center"> <?= $presupuesto->papel_formato_ancho ?>x<?= $presupuesto->papel_formato_alto ?> </td>
|
<td class="t-cell text-center"> <?= $presupuesto->papel_formato_ancho ?>x<?= $presupuesto->papel_formato_alto ?> </td>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td class="t-cell text-center"> <?= $papel_formato->ancho ?>x<?= $papel_formato->alto ?> </td>
|
<td class="t-cell text-center"> <?= $papel_formato->ancho ?>x<?= $papel_formato->alto ?> </td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<td class="t-cell text-center"> 1 </td>
|
<td class="t-cell text-center"> 1 </td>
|
||||||
<td class="t-cell text-center"> <?= $presupuesto->tipo_presupuesto()?->codigo ?? "" ?> </td>
|
<td class="t-cell text-center"> <?= $presupuesto->tipo_presupuesto()?->codigo ?? "" ?> </td>
|
||||||
<td class="t-cell text-center"> <?= number_format($presupuesto->lomo_cubierta, 2, ',', '.') ?> </td>
|
<td class="t-cell text-center"> <?= number_format($presupuesto->lomo_cubierta, 2, ',', '.') ?> </td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="3" class="row-logo-impresion"><img src="<?= site_url($linea_impresion->get_impresion_logo()) ?>" width="35px" height="35px"></td>
|
<td rowspan="3" class="row-logo-impresion"><img src="<?= site_url($linea_impresion->get_impresion_logo()) ?>" width="35px" height="35px"></td>
|
||||||
|
|||||||
@ -77,10 +77,8 @@ $settings = $session->get('settings');
|
|||||||
|
|
||||||
<div class="row p-2">
|
<div class="row p-2">
|
||||||
<div class="col-3 h-100">
|
<div class="col-3 h-100">
|
||||||
<div class="row px-2 d-flex flex justify-content-between align-items-center">
|
<div class="row text-center">
|
||||||
<div class="col-6 w-100 text-center code-title">
|
<span id="fecha_encuadernado_at" class="fs-large fw-bold" style="color:<?= $colors["general"]["color"] ?>;"><?= $pedido->fecha_encuadernado ? Time::createFromFormat("Y-m-d H:i:s", $pedido->fecha_encuadernado)->format('d/m/Y') : "" ?></span>
|
||||||
<span id="fecha_encuadernado_at" class="code-title fw-bold" style="color:<?= $colors["general"]["color"] ?>;"><?= $pedido->fecha_encuadernado ? Time::createFromFormat("Y-m-d H:i:s", $pedido->fecha_encuadernado)->format('d/m/Y') : "" ?></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row px-2 mt-2 h-100">
|
<div class="row px-2 mt-2 h-100">
|
||||||
<table class="h-100 bg-white" style="font-size: small;">
|
<table class="h-100 bg-white" style="font-size: small;">
|
||||||
|
|||||||
@ -76,10 +76,8 @@ $settings = $session->get('settings');
|
|||||||
</div>
|
</div>
|
||||||
<div class="row p-2">
|
<div class="row p-2">
|
||||||
<div class="col-3 h-100">
|
<div class="col-3 h-100">
|
||||||
<div class="row px-2 d-flex flex justify-content-between align-items-center">
|
<div class="row text-center">
|
||||||
<div class="col-6 w-100 text-center code-title">
|
<span id="fecha_encuadernado_at" class="fs-large fw-bold" style="color:<?= $colors["general"]["color"] ?>;"><?= $pedido->fecha_encuadernado ? Time::createFromFormat("Y-m-d H:i:s", $pedido->fecha_encuadernado)->format('d/m/Y') : "" ?></span>
|
||||||
<span id="fecha_encuadernado_at" class="code-title fw-bold" style="color:<?= $colors["general"]["color"] ?>;"><?= $pedido->fecha_encuadernado ? Time::createFromFormat("Y-m-d H:i:s", $pedido->fecha_encuadernado)->format('d/m/Y') : "" ?></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row px-2 mt-2 h-100">
|
<div class="row px-2 mt-2 h-100">
|
||||||
<table class="h-100 bg-white" style="font-size: small;">
|
<table class="h-100 bg-white" style="font-size: small;">
|
||||||
|
|||||||
Reference in New Issue
Block a user