Cleanup logs, fixed add Venta, fixed search
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user