tarifas acabado antes de meter lineas

This commit is contained in:
Jaime Jimenez
2023-06-12 18:35:42 +02:00
parent a3ded71afe
commit f814ec7e2c
12 changed files with 793 additions and 344 deletions

View File

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

View File

@ -1,33 +1,22 @@
<?php
namespace App\Entities\Tarifas;
namespace App\Entities\tarifas;
use CodeIgniter\Entity\Entity;
class TarifaacabadoEntity extends Entity
use CodeIgniter\Entity;
class TarifaacabadoEntity extends \CodeIgniter\Entity\Entity
{
protected $attributes = [
"id" => null,
"nombre" => null,
"tirada_min" => 0,
"precio_min" => 0,
"tirada_max" => 0,
"precio_max" => null,
"ajuste" => 0,
"formula_price" => null,
"user_created_id" => 1,
"user_update_id" => 1,
"deleted_at" => null,
"is_deleted" => 0,
"created_at" => null,
"updated_at" => null,
];
protected $casts = [
"tirada_min" => "int",
"precio_min" => "float",
"tirada_max" => "int",
"precio_max" => "float",
"ajuste" => "float",
"user_created_id" => "int",
"user_update_id" => "int",
"is_deleted" => "int",
];
}