2009-04-21 07:40:48 +00:00
< ? php
if ( ! $_SESSION [ 'connected' ]) die ();
$siret = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'siret' ]));
if ( strlen ( $siret ) <> 0 && strlen ( $siret ) <> 9 && strlen ( $siret ) <> 14 ) die ( 'Param<61> tres incorrects !' );
$idEntreprise = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'idEntreprise' ])) * 1 ; // Si id=0 alors non communiqu<71>
2009-09-24 16:05:13 +00:00
if (( $siret * 1 ) == 0 && $idEntreprise == 0 ) die ( 'Param<61> tres incorrects !' );
2009-04-21 07:40:48 +00:00
$siren = substr ( $siret , 0 , 9 );
2009-08-27 07:28:00 +00:00
require_once 'cache/cache.php' ;
require_once 'ratios/ratios.php' ;
$raisonSociale = $_SESSION [ 'tabInfo' ][ 'entrep' ][ 'raisonSociale' ];
2009-04-21 07:40:48 +00:00
2009-05-28 15:50:45 +00:00
if (( $siret * 1 ) == 0 || ( $siren * 1 ) < 100 ){ $fileName = $page2 . '-' . $idEntreprise ;
2009-06-22 06:56:42 +00:00
} else { $fileName = $page2 . '-' . $siret ; }
2009-08-27 07:28:00 +00:00
cache_filename ( $fileName );
2009-04-21 07:40:48 +00:00
2009-08-27 07:28:00 +00:00
if ( cache_exist () && ! ( preg_match ( '/saisie/i' , $_SESSION [ 'tabInfo' ][ 'droits' ]) || $_SESSION [ 'tabInfo' ][ 'mode_edition' ] == 1 ) )
{
$bilansInfos = cache_get ( 'bilansInfos' );
$ratiosInfos = cache_get ( 'ratiosInfos' );
$ratiosEntrep = cache_get ( 'ratiosEntrep' );
$ratiosEntrepEvol = cache_get ( 'ratiosEntrepEvol' );
$dataActif = cache_get ( 'dataActif' );
$dataPassif = cache_get ( 'dataPassif' );
$dataSIG = cache_get ( 'dataSIG' );
2009-04-21 07:40:48 +00:00
}
2009-08-27 07:28:00 +00:00
else
{
2009-05-28 15:50:45 +00:00
try {
$O = $client -> getRatios ( $siren , 'bilan' );
$bilansInfos = $O [ 'result' ][ 'BilansInfos' ];
$ratiosInfos = $O [ 'result' ][ 'RatiosInfos' ];
$ratiosEntrep = $O [ 'result' ][ 'RatiosEntrep' ];
$ratiosEntrepEvol = $O [ 'result' ][ 'RatiosEntrepEvol' ];
2009-06-22 06:56:42 +00:00
2009-08-10 13:03:12 +00:00
//Affichage des dates dans l'ordre d<> croissant
2009-08-10 12:59:42 +00:00
//Tri des tableaux
foreach ( $bilansInfos as $key => $row ) {
$bilansInfos [ $key ][ 'cle' ] = $key ;
$date [ $key ] = $row [ 'dateCloture' ];
$duree [ $key ] = $row [ 'duree' ];
$devise [ $key ] = $row [ 'devise' ];
$unite [ $key ] = $row [ 'unite' ];
$cle [ $key ] = $row [ 'cle' ];
}
array_multisort ( $date , SORT_DESC , $duree , SORT_DESC , $devise , SORT_DESC , $unite , SORT_DESC , $cle , SORT_DESC , $bilansInfos );
//Tri des autres tableaux
$tempRatiosEntrep = $ratiosEntrep ;
$tempRatiosEntrepEvol = $ratiosEntrepEvol ;
$tempRatiosSecteur = $ratiosSecteur ;
$i = 0 ;
foreach ( $bilansInfos as $row ){
$ratiosEntrep [ $i ] = $tempRatiosEntrep [ $row [ 'cle' ]];
$ratiosEntrepEvol [ $i ] = $tempRatiosEntrepEvol [ $row [ 'cle' ]];
$ratiosSecteur [ $i ] = $tempRatiosSecteur [ $row [ 'cle' ]];
$i ++ ;
}
2009-08-10 13:03:12 +00:00
//Fin de tri des tableaux
2009-08-10 12:59:42 +00:00
2009-05-28 15:50:45 +00:00
$dataActif = array ( graphPercent ( 'r51' , 'r22' ),
graphPercent ( 'r52' , 'r22' ),
graphPercent ( 'r53' , 'r22' ),
graphPercent ( 'r60' , 'r22' ),
graphPercent ( 'r61' , 'r22' ),
graphPercent ( 'r62' , 'r22' ),
graphPercent ( 'r63' , 'r22' ),
);
2009-06-22 06:56:42 +00:00
2009-05-28 15:50:45 +00:00
$dataPassif = array ( graphPercent ( 'r70' , 'r22' ),
graphPercent ( 'r71' , 'r22' ),
graphPercent ( 'r72' , 'r22' ),
graphPercent ( 'r83' , 'r22' ),
graphPercent ( 'r84' , 'r22' ),
graphPercent ( 'r85' , 'r22' ),
graphPercent ( 'r86' , 'r22' ),
graphPercent ( 'r87' , 'r22' ),
2009-06-22 06:56:42 +00:00
);
2009-05-28 15:50:45 +00:00
$dataSIG = array ( graphPercent ( 'r101' , 'r101' ) - graphPercent ( 'r122' , 'r101' ),
graphPercent ( 'r122' , 'r101' ) - graphPercent ( 'r130' , 'r101' ),
graphPercent ( 'r130' , 'r101' ) - graphPercent ( 'r140' , 'r101' ),
graphPercent ( 'r140' , 'r101' ) - graphPercent ( 'r150' , 'r101' ),
graphPercent ( 'r150' , 'r101' ) - graphPercent ( 'r170' , 'r101' ),
graphPercent ( 'r170' , 'r101' ) - graphPercent ( 'r199' , 'r101' ),
graphPercent ( 'r199' , 'r101' ),
2009-06-22 06:56:42 +00:00
);
2009-04-21 07:40:48 +00:00
2009-08-27 07:28:00 +00:00
cache_delete ();
cache_add ( 'bilansInfos' , $bilansInfos );
cache_add ( 'ratiosInfos' , $ratiosInfos );
cache_add ( 'ratiosEntrep' , $ratiosEntrep );
cache_add ( 'ratiosEntrepEvol' , $ratiosEntrepEvol );
cache_add ( 'dataActif' , $dataActif );
cache_add ( 'dataPassif' , $dataPassif );
cache_add ( 'dataSIG' , $dataSIG );
2009-05-28 15:50:45 +00:00
} catch ( SoapFault $fault ) {
require_once 'soaperror.php' ;
2009-08-27 07:28:00 +00:00
processSoapFault ( $client , $fault , $_SESSION [ 'tabInfo' ]);
2009-05-28 15:50:45 +00:00
die ();
2009-04-21 07:40:48 +00:00
}
2009-08-27 07:28:00 +00:00
}
?>
< div id = " center " >
2009-09-10 15:31:37 +00:00
< h1 >& Eacute ; L & Eacute ; MENTS FINANCIERS - BILANS </ h1 >
2009-08-27 07:28:00 +00:00
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Num & eacute ; ro identifiant Siren </ td >
< td width = " 340 " class = " StyleInfoData " >< ? = substr ( $siren , 0 , 3 ) . ' ' . substr ( $siren , 3 , 3 ) . ' ' . substr ( $siren , 6 , 3 ) ?> </td>
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Raison Sociale </ td >
< td width = " 340 " class = " StyleInfoData " >< ? = $_SESSION [ 'tabInfo' ][ 'entrep' ][ 'raisonSociale' ] ?> </td>
</ tr >
</ table >
< ? php
if ( count ( $ratiosEntrep ) == 0 || ! isset ( $ratiosEntrep )){
?>
< table >
< tr >< td width = " 30 " >& nbsp ; </ td >< td >< b > Aucun bilan disponible pour cette entreprise !</ b ></ td ></ tr >
</ table >
< ? php
} else {
?>
2009-08-10 16:54:43 +00:00
2009-08-27 07:28:00 +00:00
< h2 > Bilan actif - passif </ h2 >
< table class = " bilans " >
< thead >
2009-04-21 07:40:48 +00:00
< tr >
2009-08-27 07:28:00 +00:00
< th > ACTIF </ th >
2009-09-24 16:05:13 +00:00
< ? php
$nb_bilans = 5 ;
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
2009-08-27 07:28:00 +00:00
< th class = " date " >
2009-09-24 16:05:13 +00:00
< ? php
if ( isset ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[$nb_bilans-$i]['duree']; ?> mois
< ? php
} else { print '-' ; } ?>
2009-08-27 07:28:00 +00:00
</ th >
2009-09-24 16:05:13 +00:00
< ? php
}
?>
2009-08-27 07:28:00 +00:00
< th >% T . B .</ th >
</ tr >
</ thead >
< tbody >
< tr class = " subhead " >
< td > Actif Immobilis<EFBFBD> Net </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r59' ); ?> </td>
< ? php
}
?>
2009-08-27 07:28:00 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r59' , 'r22' ) ?> </td>
2009-04-21 07:40:48 +00:00
</ tr >
< tr >
2009-08-27 07:28:00 +00:00
< td > Incorporelles </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r51' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r51' , 'r22' ) ?> </td>
2009-04-21 07:40:48 +00:00
</ tr >
2009-08-27 07:28:00 +00:00
< tr >
< td > Corporelles </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r52' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r52' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Financi<EFBFBD> res </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r53' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r53' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td > Actif Circulant Net </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r69' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r69' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Stock et encours </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r60' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r60' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Cr<EFBFBD> ances Clients </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r61' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r61' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Autres Cr<EFBFBD> ances </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r62' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r62' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >& nbsp ; </ td >
< td ></ td >
< td ></ td >
< td ></ td >
< td ></ td >
< td ></ td >
< td ></ td >
</ tr >
< tr >
< td > Tr<EFBFBD> sorerie Active </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r63' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r63' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td > TOTAL ACTIF </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r22' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r22' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >< td colspan = " 7 " class = " graph " >
< ? php print bilans_graph_actif ( $dataActif , $fileName ); ?>
</ td ></ tr >
2009-06-22 06:56:42 +00:00
2009-08-27 07:28:00 +00:00
</ tbody >
</ table > <EFBFBD>
< br />< br />
2009-06-22 06:56:42 +00:00
2009-08-27 07:28:00 +00:00
< table class = " bilans " >
< thead >
< tr >
< th > PASSIF </ th >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
2009-08-27 07:28:00 +00:00
< th class = " date " >
2009-09-24 16:05:13 +00:00
< ? php
if ( isset ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[$nb_bilans-$i]['duree']; ?> mois
< ? php
} else { print '-' ; } ?>
2009-08-27 07:28:00 +00:00
</ th >
2009-09-24 16:05:13 +00:00
< ? php
}
?>
2009-08-27 07:28:00 +00:00
< th >% T . B .</ th >
</ tr >
</ thead >
< tbody >
< tr class = " subhead " >
< td > Ressources Propres </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r79' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r79' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Fonds Propres </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r70' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r70' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Provisions Risques </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r71' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r71' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Comptes Courants </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r72' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r72' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td > Ressources Externes </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r90' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r90' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Dettes Financi<EFBFBD> res </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r83' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r83' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Dettes Fournisseurs </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r84' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r84' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Dettes Fiscales </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r85' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r85' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Autres Dettes </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r86' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r86' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td > Tr<EFBFBD> sorerie Passive </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r87' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r87' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td > TOTAL PASSIF </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r22' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r22' , 'r22' ) ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >< td colspan = " 7 " class = " graph " >
< ? php print bilans_graph_passif ( $dataPassif , $fileName ); ?>
</ td ></ tr >
2009-06-22 06:56:42 +00:00
2009-08-27 07:28:00 +00:00
</ tbody >
</ table > <EFBFBD>
< br />< br />
2009-06-22 06:56:42 +00:00
2009-08-27 07:28:00 +00:00
< h2 > Soldes Interm & eacute ; diare de Gestion </ h2 >
2009-06-22 06:56:42 +00:00
2009-08-27 07:28:00 +00:00
< table class = " bilans " >
< thead >
< tr >
< th colspan = " 2 " > SOLDES INTERMEDIAIRES DE GESTION </ th >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
2009-08-27 07:28:00 +00:00
< th class = " date " >
2009-09-24 16:05:13 +00:00
< ? php
if ( isset ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[$nb_bilans-$i]['duree']; ?> mois
< ? php
} else { print '-' ; } ?>
2009-08-27 07:28:00 +00:00
</ th >
2009-09-24 16:05:13 +00:00
< ? php
}
?>
2009-08-27 07:28:00 +00:00
< th >% C . A .</ th >
</ tr >
</ thead >
< tbody >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > CHIFFRE D ' AFFAIRES HORS TAXE </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r101' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r101' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Achat de marchandises , de mati<EFBFBD> res premi<EFBFBD> res </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r102' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r102' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > MARGE COMMERCIALE </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r110' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r110' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > Production vendue </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r111' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r111' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > Production immobilis<EFBFBD> e et stock<EFBFBD> e </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r112' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r112' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > PRODUCTION DE L ' EXERCICE </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r120' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r120' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >& plusmn ; </ td >< td > Variation de stock de marchandises et mati<EFBFBD> res premi<EFBFBD> res </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r121' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r121' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > MARGE BRUTE </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r122' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r122' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Autres charges externes </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r123' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r123' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > VALEUR AJOUT<EFBFBD> E </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r130' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r130' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Charges de personnel </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r132' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r132' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Imp<EFBFBD> ts , taxes & versements assimil<EFBFBD> s </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r133' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r133' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > Subventions d ' exploitation </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r131' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r131' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > EXC<EFBFBD> DENT BRUT D ' EXPLOITATION ( EBE ) </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r140' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r140' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > Autres produits d ' exploitation </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r141' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r141' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Autres charges d ' exploitation </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r142' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r142' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > Reprise sur dotations & transferts de charges </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r143' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r143' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > 70 % Loyer de cr<EFBFBD> dit bail </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r144' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r144' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Dotations d 'exploitation & provisions d' exploitation </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r145' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r145' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > R<EFBFBD> SULTAT D ' EXPLOITATION </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r150' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r150' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > Produits financiers </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r151' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r151' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > 30 % Loyer de cr<EFBFBD> dit bail </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r152' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r152' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > Charges financi<EFBFBD> res </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r153' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r153' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > R<EFBFBD> SULTAT COURANT AVANT IMPOTS </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r170' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r170' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >+</ td >< td > Produits exceptionnels </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r171' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r171' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Charges exceptionnelles </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r172' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r172' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Imp<EFBFBD> ts sur les b<EFBFBD> n<EFBFBD> fices </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r181' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r181' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >
< td >-</ td >< td > Participation salariale </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r182' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r182' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > R<EFBFBD> SULTAT NET </ td >
2009-09-24 16:05:13 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r199' ); ?> </td>
< ? php
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r199' , 'r101' ); ?> </td>
2009-08-27 07:28:00 +00:00
</ tr >
< tr >< td colspan = " 8 " class = " graph " >
< ? php print bilans_graph_sig ( $dataSIG , $fileName ); ?>
</ td ></ tr >
</ tbody >
</ table > <EFBFBD>
2009-06-22 06:56:42 +00:00
< ? php
2009-08-27 07:28:00 +00:00
}
2009-04-21 07:40:48 +00:00
?>
2009-08-27 07:28:00 +00:00
</ div >