mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
feat colors
This commit is contained in:
@ -43,9 +43,38 @@ class OrdenTrabajoDateEntity extends Entity
|
||||
'deleted_at',
|
||||
|
||||
];
|
||||
protected $casts = [
|
||||
];
|
||||
|
||||
|
||||
protected $casts = [];
|
||||
|
||||
public function sinImprimirStatus(): bool
|
||||
{
|
||||
return !(
|
||||
$this->attributes['interior_bn_at'] == null
|
||||
&& $this->attributes['interior_color_at'] == null
|
||||
&& $this->attributes['cubierta_at'] == null
|
||||
);
|
||||
}
|
||||
public function impresionInteriorStatus():bool
|
||||
{
|
||||
return $this->attributes['interior_bn_at']|| $this->attributes['interior_color_at'];
|
||||
}
|
||||
public function impresionCubiertaStatus():bool
|
||||
{
|
||||
return $this->attributes['cubierta_at'] != null;
|
||||
}
|
||||
public function plastificadoStatus():bool
|
||||
{
|
||||
return $this->attributes['plastificado_at'] != null;
|
||||
}
|
||||
public function encuadernadoStatus():bool
|
||||
{
|
||||
return $this->attributes['encuadernacion_at'] != null;
|
||||
}
|
||||
public function preparacionInterioresStatus():bool
|
||||
{
|
||||
return $this->attributes['preparacion_interiores_at'] != null;
|
||||
}
|
||||
public function corteStatus():bool
|
||||
{
|
||||
return $this->attributes['corte_at'] != null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user