FIX: Faltaba vigente en cierre
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user