dates users ot

This commit is contained in:
amazuecos
2025-04-13 09:43:15 +02:00
parent f5d01e520a
commit 08a91294b4
9 changed files with 278 additions and 169 deletions

View File

@ -17,25 +17,29 @@ class OrdenTrabajoDate extends Model
protected $allowedFields = [
"orden_trabajo_id",
"fecha_entrada_at",
"fecha_entrega_at",
"fecha_entrega_real_at",
"fecha_entrega_change_at",
"fecha_impresion_at",
"fecha_encuadernado_at",
"fecha_externo_at",
"pendiente_ferro_at",
"ferro_en_cliente_at",
"ferro_ok_at",
//IMPRESION
"interior_bn_at",
"interior_color_at",
"preparacion_interiores_at",
"cubierta_at",
//ACABADO
"plastificado_at",
"encuadernacion_at",
"corte_at",
"preparacion_interiores_at",
"entrada_manipulado_at",
//FERRO
"pendiente_ferro_at",
"ferro_en_cliente_at",
"ferro_ok_at",
//ENVIO
"embalaje_at",
"envio_at",
"entrada_manipulado_at"
//PREIMPRESION
"pre_formato_at",
"pre_lomo_at",
"pre_solapa_at",
"pre_codbarras_at",
"pre_imposicion_at"
];
protected bool $allowEmptyInserts = false;

View File

@ -3,6 +3,7 @@
namespace App\Models\OrdenTrabajo;
use App\Entities\Produccion\OrdenTrabajoUserEntity;
use App\Models\Usuarios\UserModel;
use CodeIgniter\Database\MySQLi\Builder;
use CodeIgniter\Model;
@ -18,28 +19,35 @@ class OrdenTrabajoUser extends Model
"orden_trabajo_id",
"user_created_id",
"user_update_id",
"inaplazable_revised_change_user_id",
"ferro_disponible_hecho_user_id",
"ferro_disponible_ok_user_id",
"ferro_entregado_user_id",
"pendiente_ferro_user_id",
"ferro_en_cliente_user_id",
"ferro_ok_user_id",
//IMPRESION
"interior_bn_user_id",
"interior_color_user_id",
"preparacion_interior_user_id",
"cubierta_user_id",
//ACABADO
"plastificado_user_id",
"encuadernacion_user_id",
"corte_user_id",
"embalaje_user_id",
"preparacion_interior_user_id",
"entrada_manipulado_user_id",
//FERRO
"pendiente_ferro_user_id",
"ferro_en_cliente_user_id",
"ferro_ok_user_id",
//ENVIO
"embalaje_user_id",
"envio_user_id",
//PREIMPRESION
"pre_formato_user_id",
"pre_lomo_user_id",
"pre_solapa_user_id",
"pre_codbarras_user_id",
"pre_imposicion_user_id",
"pre_imprimir_user_id"
//UNUSED
"inaplazable_revised_change_user_id",//!DELETE
"ferro_disponible_hecho_user_id",//!DELETE
"ferro_entregado_user_id",//!DELETE
"pre_imprimir_user_id", //!DELETE
"ferro_disponible_ok_user_id", //!DELETE
];
protected bool $allowEmptyInserts = false;
@ -72,6 +80,5 @@ class OrdenTrabajoUser extends Model
protected $beforeDelete = [];
protected $afterDelete = [];
}