Compare commits
2 Commits
82647a171d
...
712c70b34d
Author | SHA1 | Date | |
---|---|---|---|
712c70b34d | |||
35ab7e7e8b |
@ -9,7 +9,7 @@ use Incoviba\Common\Implement;
|
||||
use Incoviba\Controller\API\withJson;
|
||||
use Incoviba\Repository;
|
||||
|
||||
class DAPs extends Ideal\Controller
|
||||
class Depositos extends Ideal\Controller
|
||||
{
|
||||
use withJson;
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user