Auth, Login, Home, Venta->Listados->Precios

This commit is contained in:
Juan Pablo Vial
2023-07-24 20:55:26 -04:00
parent d9d5a15376
commit 1a7b10ce3c
130 changed files with 4302 additions and 0 deletions

View 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
]);
}
}