diff --git a/app/src/Controller/API/Contabilidad/DAPs.php b/app/src/Controller/API/Contabilidad/Depositos.php similarity index 100% rename from app/src/Controller/API/Contabilidad/DAPs.php rename to app/src/Controller/API/Contabilidad/Depositos.php diff --git a/app/src/Service/Contabilidad/Informe/Tesoreria.php b/app/src/Service/Contabilidad/Informe/Tesoreria.php index a8f9114..9bec6c3 100644 --- a/app/src/Service/Contabilidad/Informe/Tesoreria.php +++ b/app/src/Service/Contabilidad/Informe/Tesoreria.php @@ -185,6 +185,9 @@ class Tesoreria extends Ideal\Service try { $depositos = $this->depositoRepository->fetchByCuenta($cuenta->id); foreach ($depositos as $deposito) { + if ($deposito->termino < $fecha) { + continue; + } $data->deposito += $deposito->capital; $this->addTotal(self::TOTAL_DAP, $deposito->capital);