mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
planning rot
This commit is contained in:
@ -37,28 +37,28 @@ class OrdenTrabajoDateEntity extends Entity
|
||||
'created_at',
|
||||
'updated_at',
|
||||
'deleted_at',
|
||||
'fecha_entrega_at',
|
||||
'fecha_entrega_change_at',
|
||||
'fecha_entrega_real_at',
|
||||
'fecha_entrega_real_warning',
|
||||
'fecha_impresion_at',
|
||||
'fecha_encuadernado_at',
|
||||
'fecha_externo_at',
|
||||
'fecha_entrega_warning',
|
||||
'fecha_entrega_warning_revised',
|
||||
'pendiente_ferro_at',
|
||||
'ferro_en_cliente_at',
|
||||
'ferro_ok_at',
|
||||
'interior_bn_at',
|
||||
'interior_color_at',
|
||||
'preparacion_interiores_at',
|
||||
'cubierta_at',
|
||||
'plastificado_at',
|
||||
'encuadernacion_at',
|
||||
'corte_at',
|
||||
'embalaje_at',
|
||||
'envio_at',
|
||||
'entrada_manipulado_at'
|
||||
// 'fecha_entrega_at',
|
||||
// 'fecha_entrega_change_at',
|
||||
// 'fecha_entrega_real_at',
|
||||
// 'fecha_entrega_real_warning',
|
||||
// 'fecha_impresion_at',
|
||||
// 'fecha_encuadernado_at',
|
||||
// 'fecha_externo_at',
|
||||
// 'fecha_entrega_warning',
|
||||
// 'fecha_entrega_warning_revised',
|
||||
// 'pendiente_ferro_at',
|
||||
// 'ferro_en_cliente_at',
|
||||
// 'ferro_ok_at',
|
||||
// 'interior_bn_at',
|
||||
// 'interior_color_at',
|
||||
// 'preparacion_interiores_at',
|
||||
// 'cubierta_at',
|
||||
// 'plastificado_at',
|
||||
// 'encuadernacion_at',
|
||||
// 'corte_at',
|
||||
// 'embalaje_at',
|
||||
// 'envio_at',
|
||||
// 'entrada_manipulado_at'
|
||||
];
|
||||
protected $casts = [
|
||||
// "fecha_entrada_at" => "?datetime",
|
||||
|
||||
@ -79,12 +79,12 @@ class OrdenTrabajoEntity extends Entity
|
||||
public function dates(): ?OrdenTrabajoDateEntity
|
||||
{
|
||||
$m = model(OrdenTrabajoDate::class);
|
||||
return $m->find($this->attributes["id"]);
|
||||
return $m->where('orden_trabajo_id',$this->attributes["id"])->first();
|
||||
}
|
||||
public function users(): ?OrdenTrabajoUserEntity
|
||||
{
|
||||
$m = model(OrdenTrabajoUser::class);
|
||||
return $m->find($this->attributes["id"]);
|
||||
return $m->where('orden_trabajo_id',$this->attributes["id"])->first();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -8,33 +8,7 @@ class OrdenTrabajoUserEntity extends Entity
|
||||
{
|
||||
protected $datamap = [];
|
||||
protected $dates = ['created_at', 'updated_at', 'deleted_at'];
|
||||
protected array $casts = [
|
||||
"orden_trabajo_id" => "integer",
|
||||
"user_created_id" => "?integer",
|
||||
"user_update_id" => "?integer",
|
||||
"inaplazable_revised_change_user_id" => "?integer",
|
||||
"ferro_disponible_hecho_user_id" => "?integer",
|
||||
"ferro_disponible_ok_user_id" => "?integer",
|
||||
"ferro_entregado_user_id" => "?integer",
|
||||
"pendiente_ferro_user_id" => "?integer",
|
||||
"ferro_en_cliente_user_id" => "?integer",
|
||||
"ferro_ok_user_id" => "?integer",
|
||||
"interior_bn_user_id" => "?integer",
|
||||
"interior_color_user_id" => "?integer",
|
||||
"preparacion_interior_user_id" => "?integer",
|
||||
"cubierta_user_id" => "?integer",
|
||||
"plastificado_user_id" => "?integer",
|
||||
"encuadernacion_user_id" => "?integer",
|
||||
"corte_user_id" => "?integer",
|
||||
"embalaje_user_id" => "?integer",
|
||||
"entrada_manipulado_user_id" => "?integer",
|
||||
"pre_formato_user_id" => "?integer",
|
||||
"pre_lomo_user_id" => "?integer",
|
||||
"pre_solapa_user_id" => "?integer",
|
||||
"pre_codbarras_user_id" => "?integer",
|
||||
"pre_imposicion_user_id" => "?integer",
|
||||
"pre_imprimir_user_id" => "?integer"
|
||||
];
|
||||
|
||||
protected $attributes = [
|
||||
"orden_trabajo_id"=> null,
|
||||
"user_created_id"=> null,
|
||||
@ -62,4 +36,31 @@ class OrdenTrabajoUserEntity extends Entity
|
||||
"pre_imposicion_user_id"=> null,
|
||||
"pre_imprimir_user_id" => null
|
||||
];
|
||||
// protected array $casts = [
|
||||
// "orden_trabajo_id" => "integer",
|
||||
// "user_created_id" => "?integer",
|
||||
// "user_update_id" => "?integer",
|
||||
// "inaplazable_revised_change_user_id" => "?integer",
|
||||
// "ferro_disponible_hecho_user_id" => "?integer",
|
||||
// "ferro_disponible_ok_user_id" => "?integer",
|
||||
// "ferro_entregado_user_id" => "?integer",
|
||||
// "pendiente_ferro_user_id" => "?integer",
|
||||
// "ferro_en_cliente_user_id" => "?integer",
|
||||
// "ferro_ok_user_id" => "?integer",
|
||||
// "interior_bn_user_id" => "?integer",
|
||||
// "interior_color_user_id" => "?integer",
|
||||
// "preparacion_interior_user_id" => "?integer",
|
||||
// "cubierta_user_id" => "?integer",
|
||||
// "plastificado_user_id" => "?integer",
|
||||
// "encuadernacion_user_id" => "?integer",
|
||||
// "corte_user_id" => "?integer",
|
||||
// "embalaje_user_id" => "?integer",
|
||||
// "entrada_manipulado_user_id" => "?integer",
|
||||
// "pre_formato_user_id" => "?integer",
|
||||
// "pre_lomo_user_id" => "?integer",
|
||||
// "pre_solapa_user_id" => "?integer",
|
||||
// "pre_codbarras_user_id" => "?integer",
|
||||
// "pre_imposicion_user_id" => "?integer",
|
||||
// "pre_imprimir_user_id" => "?integer"
|
||||
// ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user