feature/cierres #30

Merged
aldarien merged 460 commits from feature/cierres into develop 2025-09-11 15:16:17 -03:00
235 changed files with 721 additions and 8312 deletions
Showing only changes of commit 148d08089d - Show all commits

View File

@ -19,6 +19,15 @@ class Cuota extends Model
public ?Pago $pago;
public ?int $numero;
public function isPagada(): bool
{
return $this->pago->isPagado();
}
public function isAbonada(): bool
{
return $this->pago->isAbonado();
}
public function jsonSerialize(): mixed
{
return array_merge(parent::jsonSerialize(), [

View File

@ -51,6 +51,15 @@ class Pago extends Model
return null;
}
public function isPagado(): bool
{
return in_array($this->currentEstado->tipoEstadoPago->descripcion, ['depositado', 'abonado']);
}
public function isAbonado(): bool
{
return $this->currentEstado->tipoEstadoPago->descripcion === 'abonado';
}
public function jsonSerialize(): mixed
{
return array_merge(parent::jsonSerialize(), [