Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop
This commit is contained in:
@ -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