Cuota abono en venta
This commit is contained in:
@ -16,6 +16,7 @@ class FormaPago extends Ideal\Service
|
||||
protected Credito $creditoService,
|
||||
protected Repository\Venta\Escritura $escrituraRepository,
|
||||
protected Subsidio $subsidioService,
|
||||
protected Repository\Venta\Abono\Cuota $cuotaRepository,
|
||||
protected Pago $pagoService,
|
||||
protected Valor $valorService)
|
||||
{
|
||||
@ -43,6 +44,9 @@ class FormaPago extends Ideal\Service
|
||||
try {
|
||||
$formaPago->devolucion = $this->pagoService->getDevolucionByVenta($venta_id);
|
||||
} catch (Implement\Exception\EmptyResult) {}
|
||||
try {
|
||||
$formaPago->cuotasAbono = $this->cuotaRepository->fetchByVenta($venta_id);
|
||||
} catch (Implement\Exception\EmptyResult) {}
|
||||
|
||||
return $formaPago;
|
||||
}
|
||||
|
Reference in New Issue
Block a user