[FIX] Variable $i is already declared

It was preventing displaying of the other accounts
This commit is contained in:
Cristian Torres 2019-02-19 11:37:46 -06:00 committed by Laurent Destailleur
parent 6cdf5c5673
commit 8ca6935f8b

View File

@ -301,7 +301,7 @@ if ($modecompta == 'BOOKKEEPING')
// Get cpts of category/group
$cpts = $AccCat->getCptsCat(0, $tmppredefinedgroupwhere);
foreach($cpts as $i => $cpt)
foreach($cpts as $j => $cpt)
{
$return = $AccCat->getSumDebitCredit($cpt['account_number'], $date_start, $date_end, $cpt['dc']);
if ($return < 0) {