Revision de la entidad de catalogo libros

This commit is contained in:
Ignacio Martinez Navajas
2025-05-05 18:53:44 +02:00
parent 75f06c44a1
commit bf146d4024

View File

@ -10,6 +10,7 @@ use App\Models\Tarifas\Acabados\ServicioAcabadoModel;
use App\Models\Clientes\ClienteModel; use App\Models\Clientes\ClienteModel;
class CatalogoLibroEntity extends Entity class CatalogoLibroEntity extends Entity
{ {
protected $attributes = [ protected $attributes = [
'id' => null, 'id' => null,
'cliente_id' => null, 'cliente_id' => null,
@ -44,8 +45,6 @@ class CatalogoLibroEntity extends Entity
'sello' => null, 'sello' => null,
'paginas' => 0, 'paginas' => 0,
'tipo_impresion' => null, 'tipo_impresion' => null,
'solapas_ancho' => 0.00,
'cubiertas_ancho' => 0.00,
'comentarios' => '', 'comentarios' => '',
'negro_paginas' => null, 'negro_paginas' => null,
'negro_papel' => null, 'negro_papel' => null,
@ -63,6 +62,8 @@ class CatalogoLibroEntity extends Entity
'cubierta_papel' => null, 'cubierta_papel' => null,
'cubierta_papel_id' => null, 'cubierta_papel_id' => null,
'cubierta_gramaje' => null, 'cubierta_gramaje' => null,
'cubierta_ancho_solapas' => 0.00,
'cubierta_acabado_id' => null,
'cubierta_acabado' => null, 'cubierta_acabado' => null,
'cubierta_pod_papel_id' => null, 'cubierta_pod_papel_id' => null,
'cubierta_pod_gramaje' => null, 'cubierta_pod_gramaje' => null,
@ -70,10 +71,12 @@ class CatalogoLibroEntity extends Entity
'sobrecubierta_papel' => null, 'sobrecubierta_papel' => null,
'sobrecubierta_papel_id' => null, 'sobrecubierta_papel_id' => null,
'sobrecubierta_gramaje' => null, 'sobrecubierta_gramaje' => null,
'sobrecubierta_acabado_id' => null,
'sobrecubierta_acabado' => null, 'sobrecubierta_acabado' => null,
'sobrecubierta_pod_papel_id' => null, 'sobrecubierta_pod_papel_id' => null,
'sobrecubierta_ancho_solapas' => 0.00,
'sobrecubierta_pod_gramaje' => null, 'sobrecubierta_pod_gramaje' => null,
'encuardenacion_id' => 'null', 'encuadernacion_id' => null,
'ubicacion' => null, 'ubicacion' => null,
'created_at' => null, 'created_at' => null,
'updated_at' => null, 'updated_at' => null,
@ -97,8 +100,6 @@ class CatalogoLibroEntity extends Entity
'num_ilustr_color' => '?int', 'num_ilustr_color' => '?int',
'num_ilustr_bn' => '?int', 'num_ilustr_bn' => '?int',
'paginas' => 'int', 'paginas' => 'int',
'solapas_ancho' => 'float',
'cubiertas_ancho' => 'float',
'negro_paginas' => '?int', 'negro_paginas' => '?int',
'negro_gramaje' => '?float', 'negro_gramaje' => '?float',
'negro_papel_id' => '?int', 'negro_papel_id' => '?int',
@ -113,15 +114,19 @@ class CatalogoLibroEntity extends Entity
'cubierta_gramaje' => '?float', 'cubierta_gramaje' => '?float',
'cubierta_papel_id' => '?int', 'cubierta_papel_id' => '?int',
'cubierta_pod_papel_id' => '?int', 'cubierta_pod_papel_id' => '?int',
'cubierta_ancho_solapas' => 'float',
'cubierta_pod_gramaje' => '?float', 'cubierta_pod_gramaje' => '?float',
'cubierta_acabado_id' => '?int',
'sobrecubierta_paginas' => '?int', 'sobrecubierta_paginas' => '?int',
'sobrecubierta_gramaje' => '?float', 'sobrecubierta_gramaje' => '?float',
'sobrecubierta_papel_id' => '?int', 'sobrecubierta_papel_id' => '?int',
'sobrecubierta_pod_papel_id' => '?int', 'sobrecubierta_pod_papel_id' => '?int',
'sobrecubierta_ancho_solapas' => 'float',
'sobrecubierta_pod_gramaje' => '?float', 'sobrecubierta_pod_gramaje' => '?float',
'sobrecubierta_acabado_id' => '?int',
'encuadernacion_id' => '?int',
'fecha_disponibilidad' => 'datetime', 'fecha_disponibilidad' => 'datetime',
'fecha_public' => 'datetime', 'fecha_public' => 'datetime',
]; ];
public function getClienteName() public function getClienteName()