imposiciones

This commit is contained in:
amazuecos
2025-04-12 23:53:48 +02:00
parent 41159d1588
commit ba9c4dc339
19 changed files with 293 additions and 453 deletions

View File

@ -134,4 +134,18 @@ class OrdenTrabajoEntity extends Entity
{
return $this->pedidoEsperaBy();
}
public function getPortadaPath(): ?string
{
helper('filesystem');
$path = $this->attributes["portada_path"];
$portada_path = null;
if($path){
if(file_exists($path)){
$portada_path = $path;
}else{
$portada_path = null;
}
}
return $portada_path;
}
}