diff --git a/www/pages/liasse.php b/www/pages/liasse.php index 339b9c90f..5dd940070 100644 --- a/www/pages/liasse.php +++ b/www/pages/liasse.php @@ -38,6 +38,20 @@ if( cache_exist() && !( preg_match('/saisie/i', $_SESSION['tabInfo']['droits']) try { $O = $client->getListeBilans($siren); $tabBilans = $O['result']; + //Tri du tableau + foreach($tabBilans as $key => $bilan) + { + $cle[$key] = $key[0].substr($key, -4); + $dateProvPartenaire[$key] = $bilan['dateProvPartenaire']; + $dateInsert[$key] = $bilan['dateInsert']; + $dureeExercice[$key] = $bilan['dureeExercice']; + $dateExercicePre[$key] = $bilan['dateExercicePre']; + $monnaie[$key] = $bilan['monnaie']; + $source[$key] = $bilan['source']; + + } + array_multisort($cle, SORT_DESC, $tabBilans); + cache_add('tabBilans', $tabBilans); if (isset($_REQUEST['mil'])) { $tabTmp = explode(',',$_REQUEST['mil']); @@ -52,6 +66,7 @@ if( cache_exist() && !( preg_match('/saisie/i', $_SESSION['tabInfo']['droits']) die(); } } +$firephp->log($tabBilans, 'tabBilan'); ?>

ÉLÉMENTS FINANCIERS - BILANS