Implementacion agregar abono a escritura

This commit is contained in:
Juan Pablo Vial
2024-02-14 13:54:01 -03:00
parent 338f290539
commit 1621d6fe30
8 changed files with 257 additions and 11 deletions

View File

@ -4,6 +4,7 @@ namespace Incoviba\Controller\Ventas;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Incoviba\Common\Alias\View;
use Incoviba\Repository;
use Incoviba\Service;
class Escrituras
@ -20,4 +21,12 @@ class Escrituras
$venta = $ventaService->getById($venta_id);
return $view->render($response, 'ventas.escrituras.informe', compact('venta'));
}
public function add(ServerRequestInterface $request, ResponseInterface $response, View $view,
Service\Venta $ventaService, Repository\Banco $bancoRepository,
int $venta_id): ResponseInterface
{
$venta = $ventaService->getById($venta_id);
$bancos = $bancoRepository->fetchAll('nombre');
return $view->render($response, 'ventas.escrituras.add', compact('venta', 'bancos'));
}
}