colores header pdf ot

This commit is contained in:
amazuecos
2025-04-16 09:14:16 +02:00
parent 5dbb40af1d
commit 7ee844fb0c
11 changed files with 326 additions and 77 deletions

View File

@ -74,6 +74,11 @@ class OrdenTrabajoEntity extends Entity
$m = model(OrdenTrabajoTarea::class);
return $m->where("orden_trabajo_id", $this->attributes["id"])->findAll();
}
public function tareas_impresion() : array
{
$m = model(OrdenTrabajoTarea::class);
return $m->where("orden_trabajo_id", $this->attributes["id"])->where("presupuesto_linea_id IS NOT NULL", NULL, FALSE)->findAll() ?? [];
}
/**
* Devuelve el pedido de la orden de trabajo
*