mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Version 1.0
This commit is contained in:
@ -51,21 +51,28 @@ class CatalogoLibroEntity extends Entity
|
||||
'negro_papel' => null,
|
||||
'negro_papel_id' => null,
|
||||
'negro_gramaje' => null,
|
||||
'negro_pod_papel_id' => null,
|
||||
'negro_pod_gramaje' => null,
|
||||
'color_paginas' => null,
|
||||
'color_papel' => null,
|
||||
'color_papel_id' => null,
|
||||
'color_gramaje' => null,
|
||||
'color_pod_papel_id' => null,
|
||||
'color_pod_gramaje' => null,
|
||||
'cubierta_paginas' => null,
|
||||
'cubierta_papel' => null,
|
||||
'cubierta_papel_id' => null,
|
||||
'cubierta_gramaje' => null,
|
||||
'cubierta_acabado' => null,
|
||||
'cubierta_pod_papel_id' => null,
|
||||
'cubierta_pod_gramaje' => null,
|
||||
'sobrecubierta_paginas' => null,
|
||||
'sobrecubierta_papel' => null,
|
||||
'sobrecubierta_papel_id' => null,
|
||||
'sobrecubierta_gramaje' => null,
|
||||
'sobrecubierta_acabado' => null,
|
||||
'encuardenacion' => '',
|
||||
'sobrecubierta_pod_papel_id' => null,
|
||||
'sobrecubierta_pod_gramaje' => null,
|
||||
'encuardenacion_id' => 'null',
|
||||
'ubicacion' => null,
|
||||
'created_at' => null,
|
||||
@ -95,16 +102,26 @@ class CatalogoLibroEntity extends Entity
|
||||
'negro_paginas' => '?int',
|
||||
'negro_gramaje' => '?float',
|
||||
'negro_papel_id' => '?int',
|
||||
'negro_pod_papel_id' => '?int',
|
||||
'negro_pod_gramaje' => '?float',
|
||||
'color_paginas' => '?int',
|
||||
'color_gramaje' => '?float',
|
||||
'color_papel_id' => '?int',
|
||||
'color_pod_papel_id' => '?int',
|
||||
'color_pod_gramaje' => '?float',
|
||||
'cubierta_paginas' => '?int',
|
||||
'cubierta_gramaje' => '?float',
|
||||
'cubierta_papel_id' => '?int',
|
||||
'cubierta_pod_papel_id' => '?int',
|
||||
'cubierta_pod_gramaje' => '?float',
|
||||
'sobrecubierta_paginas' => '?int',
|
||||
'sobrecubierta_gramaje' => '?float',
|
||||
'sobrecubierta_papel_id' => '?int',
|
||||
|
||||
'sobrecubierta_pod_papel_id' => '?int',
|
||||
'sobrecubierta_pod_gramaje' => '?float',
|
||||
'fecha_disponibilidad' => 'datetime',
|
||||
'fecha_public' => 'datetime',
|
||||
|
||||
];
|
||||
|
||||
public function getClienteName()
|
||||
@ -156,6 +173,16 @@ class CatalogoLibroEntity extends Entity
|
||||
return $papel?->nombre ?? null;
|
||||
}
|
||||
|
||||
public function getNegroPodPapelName()
|
||||
{
|
||||
if (!$this->negro_pod_papel_id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$papel = model(PapelGenericoModel::class)->asObject()->find($this->negro_pod_papel_id);
|
||||
return $papel?->nombre ?? null;
|
||||
}
|
||||
|
||||
public function getColorPapelName()
|
||||
{
|
||||
if (!$this->color_papel_id) {
|
||||
@ -166,6 +193,16 @@ class CatalogoLibroEntity extends Entity
|
||||
return $papel?->nombre ?? null;
|
||||
}
|
||||
|
||||
public function getColorPodPapelName()
|
||||
{
|
||||
if (!$this->color_pod_papel_id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$papel = model(PapelGenericoModel::class)->asObject()->find($this->color_pod_papel_id);
|
||||
return $papel?->nombre ?? null;
|
||||
}
|
||||
|
||||
public function getCubiertaPapelName()
|
||||
{
|
||||
if (!$this->cubierta_papel_id) {
|
||||
@ -176,6 +213,16 @@ class CatalogoLibroEntity extends Entity
|
||||
return $papel?->nombre ?? null;
|
||||
}
|
||||
|
||||
public function getCubiertaPodPapelName()
|
||||
{
|
||||
if (!$this->cubierta_pod_papel_id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$papel = model(PapelGenericoModel::class)->asObject()->find($this->cubierta_pod_papel_id);
|
||||
return $papel?->nombre ?? null;
|
||||
}
|
||||
|
||||
public function getSobrecubiertaPapelName()
|
||||
{
|
||||
if (!$this->sobrecubierta_papel_id) {
|
||||
@ -186,6 +233,16 @@ class CatalogoLibroEntity extends Entity
|
||||
return $papel?->nombre ?? null;
|
||||
}
|
||||
|
||||
public function getSobrecubiertaPodPapelName()
|
||||
{
|
||||
if (!$this->sobrecubierta_pod_papel_id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$papel = model(PapelGenericoModel::class)->asObject()->find($this->sobrecubierta_pod_papel_id);
|
||||
return $papel?->nombre ?? null;
|
||||
}
|
||||
|
||||
public function getCubiertaAcabadoName()
|
||||
{
|
||||
if (!$this->cubierta_acabado_id) {
|
||||
|
||||
Reference in New Issue
Block a user