FIX: Faltaba vigente en cierre

This commit is contained in:
2021-03-26 13:59:18 -03:00
parent 0ee3bc9661
commit 016bc51eb5

View File

@ -136,6 +136,12 @@ class Cierre extends Model
} }
return $estado; return $estado;
} }
public function isVigente(): bool {
if ($this->estado()->tipo()->vigente == 1) {
return true;
}
return false;
}
public function new(\DateTime $fecha) public function new(\DateTime $fecha)
{ {
$this->save(); $this->save();