diff --git a/www/pages/bilans.php b/www/pages/bilans.php index 8b4ac9f24..ed25341c6 100644 --- a/www/pages/bilans.php +++ b/www/pages/bilans.php @@ -13,7 +13,7 @@ $siren=substr($siret,0,9); $raisonSociale=$tabInfo['entrep']['raisonSociale']; if (($siret*1)==0 || ($siren*1)<100){ $fileName = $page2.'-'.$idEntreprise; -}else{ $fileName = $page2.'-'.$siret; } +}else{ $fileName = $page2.'-'.$siret; } require_once 'cache.php'; $cache = new Cache(); @@ -27,14 +27,14 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){ }else{ require_once 'ratios/functions.php'; - + try { $O = $client->getRatios($siren, 'bilan'); $bilansInfos = $O['result']['BilansInfos']; $ratiosInfos = $O['result']['RatiosInfos']; $ratiosEntrep = $O['result']['RatiosEntrep']; $ratiosEntrepEvol = $O['result']['RatiosEntrepEvol']; - + $dataActif = array( graphPercent('r51','r22'), graphPercent('r52','r22'), graphPercent('r53','r22'), @@ -43,7 +43,7 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){ graphPercent('r62','r22'), graphPercent('r63','r22'), ); - + $dataPassif = array( graphPercent('r70','r22'), graphPercent('r71','r22'), graphPercent('r72','r22'), @@ -52,8 +52,8 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){ graphPercent('r85','r22'), graphPercent('r86','r22'), graphPercent('r87','r22'), - ); - + ); + $dataSIG = array( graphPercent('r101','r101')-graphPercent('r122','r101'), graphPercent('r122','r101')-graphPercent('r130','r101'), graphPercent('r130','r101')-graphPercent('r140','r101'), @@ -61,20 +61,20 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){ graphPercent('r150','r101')-graphPercent('r170','r101'), graphPercent('r170','r101')-graphPercent('r199','r101'), graphPercent('r199','r101'), - ); + ); //Création fichier image $path = '../cache/'; file_put_contents($path.$fileName.'-graph-bilansactif.tmp', serialize($dataActif)); - file_put_contents($path.$fileName.'-graph-bilanspassif.tmp', serialize($dataPassif)); + file_put_contents($path.$fileName.'-graph-bilanspassif.tmp', serialize($dataPassif)); file_put_contents($path.$fileName.'-graph-bilanssig.tmp', serialize($dataSIG)); - + }catch (SoapFault $fault) { require_once 'soaperror.php'; processSoapFault($client,$fault,$tabInfo); die(); } - + ?>