Limpieza de input de valor y filtro de datos a nivel Repo

This commit is contained in:
Juan Pablo Vial
2024-07-03 15:13:13 -04:00
parent d5b9be0196
commit d68eba5697
28 changed files with 436 additions and 189 deletions

View File

@ -1,6 +1,7 @@
<?php
namespace Incoviba\Controller\Ventas;
use Exception;
use DateInterval;
use DateTimeImmutable;
use Psr\Http\Message\ResponseInterface;
@ -20,10 +21,14 @@ class Facturacion extends Ideal\Controller
}
return $view->render($response, 'ventas.facturacion', compact('proyectos'));
}
/**
* @throws Exception
*/
public function show(ServerRequestInterface $request, ResponseInterface $response, View $view,
Service\Venta $ventaService, Service\Proyecto\Terreno $terrenoService,
Service\IPC $ipcService, Service\UF $ufService,
int $venta_id): ResponseInterface
Service\Venta $ventaService, Service\Proyecto\Terreno $terrenoService,
Service\IPC $ipcService, Service\UF $ufService,
int $venta_id): ResponseInterface
{
$venta = $ventaService->getById($venta_id);
$uf = $ufService->get($venta->currentEstado()->fecha);