Auth, Login, Home, Venta->Listados->Precios
This commit is contained in:
23
app/src/Model/Venta/Precio.php
Normal file
23
app/src/Model/Venta/Precio.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Incoviba\Model\Venta;
|
||||
|
||||
use Incoviba\Common\Ideal;
|
||||
|
||||
class Precio extends Ideal\Model
|
||||
{
|
||||
public Unidad $unidad;
|
||||
public float $valor;
|
||||
|
||||
public array $estados;
|
||||
public EstadoPrecio $current;
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return array_merge(parent::jsonSerialize(), [
|
||||
'unidad' => $this->unidad,
|
||||
'valor' => $this->valor,
|
||||
'estado_precio' => $this->current ?? [],
|
||||
'estados' => $this->estados ?? null
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user