FIX: Fecha terreno

This commit is contained in:
Juan Pablo Vial
2025-01-16 19:30:11 -03:00
parent 44ea8acd39
commit 3262ef9a62
4 changed files with 24 additions and 11 deletions

View File

@ -53,4 +53,13 @@ class Nubox extends Ideal\Repository
{
return 'inmobiliaria_rut';
}
protected function getIndex(Define\Model $model): mixed
{
return $model->inmobiliaria->rut;
}
protected function setIndex(Define\Model &$model, mixed $value): Ideal\Repository
{
$model->inmobiliaria = $this->inmobiliariaRepository->fetchById($value);
return $this;
}
}

View File

@ -52,4 +52,9 @@ class Prorrateo extends Ideal\Repository
{
return array_intersect_key($data, array_flip(['prorrateo']));
}
protected function getIndex(Define\Model $model): mixed
{
return $model->unidad->id;
}
}