Cleanup logs, fixed add Venta, fixed search

This commit is contained in:
2024-01-19 23:10:20 -03:00
parent f55e4dbd5f
commit fa11f5b240
15 changed files with 238 additions and 91 deletions

View File

@ -19,8 +19,8 @@ class Venta extends Ideal\Model
public float $uf;
protected ?Pago $resciliacion;
public array $estados;
public Venta\EstadoVenta $currentEstado;
public ?array $estados;
public ?Venta\EstadoVenta $currentEstado;
public function propietario(): Venta\Propietario
{
@ -63,7 +63,7 @@ class Venta extends Ideal\Model
if (!isset($this->estados)) {
$this->estados = $this->runFactory('estados');
}
return $this->estados;
return $this->estados ?? [];
}
public function currentEstado(): ?Venta\EstadoVenta
{