Cuotas con detalle de UF y de Pies asociados

This commit is contained in:
Juan Pablo Vial
2024-03-26 13:21:47 -03:00
parent bef0a22758
commit c10f2e5912
7 changed files with 55 additions and 8 deletions

View File

@ -2,6 +2,7 @@
namespace Incoviba\Service\Venta;
use Incoviba\Common\Implement\Exception\EmptyResult;
use Incoviba\Common\Implement\Repository\Factory;
use Incoviba\Repository;
use Incoviba\Model;
@ -47,6 +48,9 @@ class Pie
try {
$pie->asociados = $this->pieRepository->fetchAsociados($pie->id);
} catch (EmptyResult) {}
if (isset($pie->asociado)) {
$pie->asociado = $this->getById($pie->asociado->id);
}
return $pie;
}
}