modificaciones en tarifas: añadido margen, cambiado tirada por paginas y añadidas tarifas encuadernacion

This commit is contained in:
Jaime Jimenez
2023-07-21 18:07:46 +02:00
parent 2a30e2d8a2
commit 4d1fd30cb1
44 changed files with 2018 additions and 205 deletions

View File

@ -8,10 +8,11 @@ class TarifaAcabadoLinea extends \CodeIgniter\Entity\Entity
protected $attributes = [
"id" => null,
"tarifa_acabado_id" => 0,
"tirada_min" => 0,
"tirada_max" => 0,
"paginas_min" => 0,
"paginas_max" => 0,
"precio_min" => 0,
"precio_max" => 0,
"margen" => 0,
"user_created_id" => 0,
"user_updated_id" => 0,
"is_deleted" => 0,
@ -24,6 +25,7 @@ class TarifaAcabadoLinea extends \CodeIgniter\Entity\Entity
"tirada_max" => "int",
"precio_min" => "float",
"precio_max" => "float",
"margen" => "float",
"user_created_id" => "int",
"user_updated_id" => "int",
"is_deleted" => "int",

View File

@ -0,0 +1,28 @@
<?php
namespace App\Entities\Tarifas;
use CodeIgniter\Entity;
class TarifaEncuadernacionEntity extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"id" => null,
"nombre" => null,
"precio_min" => 0,
"importe_fijo" => 0,
"user_created_id" => 0,
"user_updated_id" => 0,
"is_deleted" => 0,
"deleted_at" => null,
"created_at" => null,
"updated_at" => null,
];
protected $casts = [
"precio_min" => "float",
"importe_fijo" => "float",
"user_created_id" => "int",
"user_updated_id" => "int",
"is_deleted" => "int",
];
}

View File

@ -0,0 +1,33 @@
<?php
namespace App\Entities\Tarifas;
use CodeIgniter\Entity;
class TarifaEncuadernacionLinea extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"id" => null,
"tarifa_encuadernacion_id" => 0,
"paginas_min" => 0,
"paginas_max" => 0,
"precio_min" => 0,
"precio_max" => 0,
"margen" => 0,
"user_created_id" => 0,
"user_updated_id" => 0,
"is_deleted" => 0,
"created_at" => null,
"updated_at" => null,
];
protected $casts = [
"tarifa_encuadernacion_id" => "int",
"paginas_min" => "float",
"paginas_max" => "float",
"precio_min" => "float",
"precio_max" => "float",
"margen" => "float",
"user_created_id" => "int",
"user_updated_id" => "int",
"is_deleted" => "int",
];
}

View File

@ -8,10 +8,11 @@ class TarifaManipuladoLinea extends \CodeIgniter\Entity\Entity
protected $attributes = [
"id" => null,
"tarifa_manipulado_id" => 0,
"tirada_min" => 0,
"tirada_max" => 0,
"paginas_min" => 0,
"paginas_max" => 0,
"precio_min" => 0,
"precio_max" => 0,
"margen" => 0,
"user_created_id" => 0,
"user_updated_id" => 0,
"is_deleted" => 0,
@ -20,10 +21,11 @@ class TarifaManipuladoLinea extends \CodeIgniter\Entity\Entity
];
protected $casts = [
"tarifa_manipulado_id" => "int",
"tirada_min" => "float",
"tirada_max" => "float",
"paginas_min" => "float",
"paginas_max" => "float",
"precio_min" => "float",
"precio_max" => "float",
"margen" => "float",
"user_created_id" => "int",
"user_updated_id" => "int",
"is_deleted" => "int",

View File

@ -8,9 +8,10 @@ class TarifapreimpresionEntity extends \CodeIgniter\Entity\Entity
protected $attributes = [
"id" => null,
"nombre" => null,
"precio" => null,
"precio_pagina" => null,
"precio_min" => 0,
"importe_fijo" => 0,
"margen" => 0,
"user_created_id" => 1,
"user_update_id" => 1,
"is_deleted" => 0,
@ -19,9 +20,10 @@ class TarifapreimpresionEntity extends \CodeIgniter\Entity\Entity
"updated_at" => null,
];
protected $casts = [
"precio" => "float",
"precio_pagina" => "float",
"precio_min" => "float",
"importe_fijo" => "float",
"margen" => "float",
"user_created_id" => "int",
"user_update_id" => "int",
"is_deleted" => "int",