Merge branch 'dev/maquinas_defecto' into 'main'

Añadida funcionalidad maquinas por defecto

See merge request jjimenez/safekat!30
This commit is contained in:
2023-07-13 10:10:24 +00:00
30 changed files with 1172 additions and 37 deletions

View File

@ -0,0 +1,36 @@
<?php
namespace App\Entities\Configuracion;
use CodeIgniter\Entity;
class MaquinasDefectoEntity extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"id" => null,
"tipo" => null,
"ancho_min" => 0.0,
"ancho_max" => 0.0,
"alto_min" => 0.0,
"alto_max" => 0.0,
"tirada_min" => 1,
"tirada_max" => 10000,
"maquina_id" => null,
"user_created_id" => 0,
"user_updated_id" => 0,
"is_deleted" => 0,
"created_at" => null,
"updated_at" => null,
];
protected $casts = [
"ancho_min" => "float",
"ancho_max" => "float",
"alto_min" => "float",
"alto_max" => "float",
"tirada_min" => "int",
"tirada_max" => "int",
"maquina_id" => "int",
"user_created_id" => "int",
"user_updated_id" => "int",
"is_deleted" => "int",
];
}

View File

@ -10,14 +10,14 @@ class TarifaManipuladoEntity extends \CodeIgniter\Entity\Entity
"id" => null,
"nombre" => null,
"user_created_id" => 0,
"user_update_id" => 0,
"user_updated_id" => 0,
"is_deleted" => 0,
"created_at" => null,
"updated_at" => null,
];
protected $casts = [
"user_created_id" => "int",
"user_update_id" => "int",
"user_updated_id" => "int",
"is_deleted" => "int",
];
}

View File

@ -11,14 +11,14 @@ class TarifaacabadoEntity extends \CodeIgniter\Entity\Entity
"precio_min" => 0,
"importe_fijo" => 0,
"user_created_id" => 0,
"user_update_id" => 0,
"user_updated_id" => 0,
"is_deleted" => 0,
"created_at" => null,
"updated_at" => null,
];
protected $casts = [
"user_created_id" => "int",
"user_update_id" => "int",
"user_updated_id" => "int",
"is_deleted" => "int",
];
}

View File

@ -10,7 +10,7 @@ class TarifapreimpresionEntity extends \CodeIgniter\Entity\Entity
"nombre" => null,
"precio" => null,
"user_created_id" => 1,
"user_update_id" => 1,
"user_updated_id" => 1,
"deleted_at" => null,
"is_deleted" => 0,
"created_at" => null,
@ -19,6 +19,6 @@ class TarifapreimpresionEntity extends \CodeIgniter\Entity\Entity
protected $casts = [
"precio" => "float",
"user_created_id" => "int",
"user_update_id" => "int",
"user_updated_id" => "int",
];
}