Agregar Proveedor

This commit is contained in:
Juan Pablo Vial
2024-12-03 16:45:20 -03:00
parent 5b44260245
commit 42e1dcdff7
19 changed files with 473 additions and 283 deletions

View File

@ -31,7 +31,7 @@ class Sociedad extends Ideal\Repository
->register('contacto_rut', (new Implement\Repository\Mapper())
->setProperty('contacto')
->setFunction(function ($data) {
return $this->personaService->getByRut($data['contacto_rut']);
return $this->personaService->getById($data['contacto_rut']);
}));
return $this->parseData(new Model\Sociedad(), $data, $map);
}