[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 GitHub
parent 9298143f9d
commit 7128270a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {