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\Controller\API\withJson;
|
||||||
use Incoviba\Repository;
|
use Incoviba\Repository;
|
||||||
|
|
||||||
class DAPs extends Ideal\Controller
|
class Depositos extends Ideal\Controller
|
||||||
{
|
{
|
||||||
use withJson;
|
use withJson;
|
||||||
|
|
@ -185,6 +185,9 @@ class Tesoreria extends Ideal\Service
|
|||||||
try {
|
try {
|
||||||
$depositos = $this->depositoRepository->fetchByCuenta($cuenta->id);
|
$depositos = $this->depositoRepository->fetchByCuenta($cuenta->id);
|
||||||
foreach ($depositos as $deposito) {
|
foreach ($depositos as $deposito) {
|
||||||
|
if ($deposito->termino < $fecha) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$data->deposito += $deposito->capital;
|
$data->deposito += $deposito->capital;
|
||||||
$this->addTotal(self::TOTAL_DAP, $deposito->capital);
|
$this->addTotal(self::TOTAL_DAP, $deposito->capital);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user