FIX: cuotas en pie

This commit is contained in:
2023-12-20 15:37:47 -03:00
parent 06d5327934
commit 30277e6355
3 changed files with 13 additions and 1 deletions

View File

@ -73,6 +73,10 @@ class Cuota
}
return $cuotas_depositadas;
}
public function getByPie(int $pie_id): array
{
return $this->cuotaRepository->fetchByPie($pie_id);
}
public function getVigenteByPie(int $pie_id): array
{
return $this->cuotaRepository->fetchVigenteByPie($pie_id);

View File

@ -39,7 +39,7 @@ class Pie
protected function process(Model\Venta\Pie $pie): Model\Venta\Pie
{
$pie->cuotasArray = $this->cuotaService->getVigenteByPie($pie->id);
$pie->cuotasArray = $this->cuotaService->getByPie($pie->id);
try {
$pie->asociados = $this->pieRepository->fetchAsociados($pie->id);
} catch (EmptyResult) {}