Merge branch 'dev/maquinas' into 'main'

falta funcionalidad tabla pivote. al pulsar isRotativa hay que añadir un...

See merge request jjimenez/safekat!28
This commit is contained in:
2023-07-09 22:18:58 +00:00
32 changed files with 3391 additions and 94 deletions

View File

@ -0,0 +1,65 @@
<?php
namespace App\Entities\Configuracion;
use CodeIgniter\Entity;
class Maquina extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"id" => null,
"nombre" => null,
"is_padre" => false,
"tipo" => null,
"velocidad" => 0.0,
"ancho" => null,
"alto" => null,
"ancho_impresion" => 0.0,
"alto_impresion" => 0.0,
"alto_click" => 0.0,
"padre_id" => null,
"min" => 1,
"max" => 1000000,
"duracion_jornada" => 8,
"orden_planning" => 1,
"is_rotativa" => false,
"precio_tinta_negro" => 0.0,
"is_tinta" => false,
"precio_tinta_color" => 0.0,
"velocidad_corte" => 0.0,
"precio_hora_corte" => 0.0,
"metrosxminuto" => null,
"forzar_num_formas_horizontales_portada" => null,
"forzar_num_formas_verticales_portada" => null,
"observaciones" => null,
"is_deleted" => 0,
"created_at" => null,
"updated_at" => null,
"user_created_id" => 0,
"user_updated_id" => 0,
];
protected $casts = [
"is_padre" => "boolean",
"velocidad" => "float",
"ancho" => "?float",
"alto" => "?float",
"ancho_impresion" => "float",
"alto_impresion" => "float",
"alto_click" => "float",
"padre_id" => "?int",
"min" => "int",
"max" => "int",
"duracion_jornada" => "int",
"orden_planning" => "int",
"is_rotativa" => "boolean",
"precio_tinta_negro" => "float",
"is_tinta" => "boolean",
"precio_tinta_color" => "float",
"velocidad_corte" => "float",
"precio_hora_corte" => "float",
"forzar_num_formas_horizontales_portada" => "?int",
"forzar_num_formas_verticales_portada" => "?int",
"is_deleted" => "int",
"user_created_id" => "int",
"user_updated_id" => "int",
];
}

View File

@ -0,0 +1,18 @@
<?php
namespace App\Entities\Configuracion;
use CodeIgniter\Entity;
class MaquinasPapelesImpresionEntity extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"maquina_id" => null,
"papel_impresion_id" => null,
"active" => null,
];
protected $casts = [
"maquina_id" => "int",
"papel_impresion_id" => "int",
"active" => "int",
];
}

View File

@ -0,0 +1,27 @@
<?php
namespace App\Entities\Configuracion;
use CodeIgniter\Entity;
class MaquinasTarifasImpresionEntity extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"id" => null,
"maquina_id" => null,
"tipo" => null,
"precio" => null,
"uso" => null,
"user_created_id" => 0,
"user_updated_id" => 0,
"is_deleted" => 0,
"created_at" => null,
"updated_at" => null,
];
protected $casts = [
"maquina_id" => "int",
"precio" => "float",
"user_created_id" => "int",
"user_updated_id" => "int",
"is_deleted" => "int",
];
}

View File

@ -22,8 +22,8 @@ class PapelImpresion extends \CodeIgniter\Entity\Entity
"precio_pliego" => null,
"bn" => true,
"color" => true,
"portada" => false,
"cubierta" => false,
"sobrecubierta" => false,
"rotativa" => false,
"is_deleted" => 0,
"created_at" => null,
@ -42,8 +42,8 @@ class PapelImpresion extends \CodeIgniter\Entity\Entity
"precio_pliego" => "float",
"bn" => "boolean",
"color" => "boolean",
"portada" => "boolean",
"cubierta" => "boolean",
"sobrecubierta" => "boolean",
"rotativa" => "boolean",
"is_deleted" => "int",
];