FIX: cuentas

This commit is contained in:
2021-12-07 09:13:20 -03:00
parent f33bddfbea
commit 0e5714edc8
3 changed files with 17 additions and 4 deletions

View File

@ -89,4 +89,10 @@ class Categoria extends Model {
}
return $this->saldo;
}
public function toArray(): array {
$arr = parent::toArray();
$arr['tipo'] = $this->tipo()->toArray();
return $arr;
}
}