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-22 12:18:36 +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-10-02 09:59:26 +00:00
isset ( $_REQUEST [ 'type' ]) ? $typeBilan = $_REQUEST [ 'type' ] : $typeBilan = '' ;
2009-09-30 16:36:02 +00:00
2009-08-17 14:34:55 +00:00
require_once 'cache/cache.php' ;
require_once 'ratios/ratios.php' ;
2009-10-07 07:46:28 +00:00
require_once 'scoresws/scoresws.php' ;
2009-08-17 14:34:55 +00:00
2009-10-07 07:46:28 +00:00
$result = scoresws_bilans ( $siret , $siren , $idEntreprise );
$bilansInfos = $result [ 'bilansInfos' ];
$ratiosInfos = $result [ 'ratiosInfos' ];
$ratiosEntrep = $result [ 'ratiosEntrep' ];
$ratiosEntrepEvol = $result [ 'ratiosEntrepEvol' ];
$dataActif = $result [ 'dataActif' ];
$dataPassif = $result [ 'dataPassif' ];
$dataSIG = $result [ 'dataSIG' ];
2009-04-21 07:40:48 +00:00
2009-10-07 07:46:28 +00:00
if (( $siret * 1 ) == 0 || ( $siren * 1 ) < 100 ){ $fileName = $page . '-' . $idEntreprise ;
} else { $fileName = $page . '-' . $siren ; }
2009-08-17 14:34:55 +00:00
2009-10-02 09:59:26 +00:00
$numBilanC = 0 ;
$numBilanN = 0 ;
2009-09-30 16:36:02 +00:00
if ( count ( $bilansInfos ) > 0 )
{
2009-10-02 09:59:26 +00:00
foreach ( $bilansInfos as $key => $item )
{
2009-10-09 14:04:55 +00:00
if ( $item [ 'typeBilan' ] == 'C' ) { $numBilanC ++ ; }
if ( $item [ 'typeBilan' ] == 'N' ) { $numBilanN ++ ; }
2009-10-02 09:59:26 +00:00
}
}
2009-10-09 15:44:28 +00:00
$firephp -> log ( $bilansInfos , 'bilansInfos' );
2009-10-02 09:59:26 +00:00
if ( $typeBilan == '' )
{
if ( $numBilanN > 0 ){ $typeBilan = 'N' ; }
if ( $numBilanN == 0 && $numBilanC > 0 ){ $typeBilan = 'C' ; }
}
if ( count ( $bilansInfos ) > 0 )
{
2009-09-30 16:36:02 +00:00
//En fonction du type de bilan s<> lectionn<6E>
//on filtre les bilans avant de les envoyer sur l'affichage
$index = 0 ;
foreach ( $bilansInfos as $key => $item )
{
if ( $item [ 'typeBilan' ] != $typeBilan )
{
2009-10-07 07:46:28 +00:00
array_splice ( $bilansInfos , $index , 1 );
2009-10-02 09:59:26 +00:00
array_splice ( $ratiosEntrep , $index , 1 );
array_splice ( $ratiosEntrepEvol , $index , 1 );
array_splice ( $dataActif , $index , 1 );
array_splice ( $dataPassif , $index , 1 );
array_splice ( $dataSIG , $index , 1 );
$index -- ;
2009-09-30 16:36:02 +00:00
}
$index ++ ;
}
}
2009-10-02 09:59:26 +00:00
$firephp -> log ( $bilansInfos , 'bilansInfos' );
2009-08-17 14:34:55 +00:00
?>
2009-10-02 09:59:26 +00:00
< script type = " text/javascript " >
$ ( document ) . ready ( function ()
{
$ ( 'input[type=radio][name=typeBilan]' ) . change ( function (){
2009-10-07 07:46:28 +00:00
document . location . href = $ ( this ) . val ();
2009-10-02 09:59:26 +00:00
});
});
</ script >
2009-08-17 14:34:55 +00:00
< div id = " center " >
2009-09-08 11:58:05 +00:00
< h1 >& Eacute ; L & Eacute ; MENTS FINANCIERS - BILANS </ h1 >
2009-08-17 14:34:55 +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 >
2009-10-09 14:04:55 +00:00
< ? php
if ( count ( $bilansInfos ) > 0 ){
?>
2009-10-02 09:59:26 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Type de bilans </ td >
< td width = " 340 " class = " StyleInfoData " >
< ? php
if ( $numBilanN > 0 || $numBilanC > 0 )
{
$firephp -> log ( $typeBilan , 'typeBilan' );
?>
2009-10-09 15:44:28 +00:00
< ? php if ( $numBilanN > 0 && $numBilanC > 0 ){ ?> <input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=N" <?=($typeBilan=='N')? 'checked' : '';?>/><label>R<> el normal ou Simplifi<66> </label><?php }?>
< ? php if ( $numBilanN > 0 && $numBilanC > 0 ){ ?> <input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=C" <?=($typeBilan=='C')? 'checked' : '';?>/><label>Consolid<69> </label><?php }?>
< ? php if ( $numBilanN > 0 && $numBilanC == 0 ){ ?> R<EFBFBD> el normal ou Simplifi<66> <?php }?>
< ? php if ( $numBilanN == 0 && $numBilanC > 0 ){ ?> Consolid<EFBFBD> <?php }?>
2009-10-02 09:59:26 +00:00
< ? php
}
?>
</ td >
</ tr >
2009-10-09 14:04:55 +00:00
< ? php
}
?>
2009-08-17 14:34:55 +00:00
</ table >
< ? php
2009-10-09 14:04:55 +00:00
if ( count ( $bilansInfos ) == 0 ){
2009-08-17 14:34:55 +00:00
?>
< 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-17 14:34:55 +00:00
< h2 > Bilan actif - passif </ h2 >
< table class = " bilans " >
< thead >
2009-04-21 07:40:48 +00:00
< tr >
2009-08-17 14:34:55 +00:00
< th > ACTIF </ th >
2009-09-21 16:07:10 +00:00
< ? php
$nb_bilans = 5 ;
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
2009-08-17 14:34:55 +00:00
< th class = " date " >
2009-09-21 16:07:10 +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-17 14:34:55 +00:00
</ th >
2009-09-21 16:07:10 +00:00
< ? php
}
?>
2009-08-17 14:34:55 +00:00
< th >% T . B .</ th >
</ tr >
</ thead >
< tbody >
< tr class = " subhead " >
< td > Actif Immobilis<EFBFBD> Net </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r59' ); ?> </td>
< ? php
}
?>
2009-08-17 14:34:55 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r59' , 'r22' ) ?> </td>
2009-04-21 07:40:48 +00:00
</ tr >
< tr >
2009-08-17 14:34:55 +00:00
< td > Incorporelles </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r51' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r51' , 'r22' ) ?> </td>
2009-04-21 07:40:48 +00:00
</ tr >
2009-08-17 14:34:55 +00:00
< tr >
< td > Corporelles </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r52' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r52' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Financi<EFBFBD> res </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r53' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r53' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td > Actif Circulant Net </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r69' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r69' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Stock et encours </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r60' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r60' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Cr<EFBFBD> ances Clients </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r61' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r61' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Autres Cr<EFBFBD> ances </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r62' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r62' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +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-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r63' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r63' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td > TOTAL ACTIF </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r22' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r22' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >< td colspan = " 7 " class = " graph " >
2009-10-02 09:59:26 +00:00
< ? php print bilans_graph_actif ( $dataActif [ 0 ], $fileName . $typeBilan ); ?>
2009-08-17 14:34:55 +00:00
</ td ></ tr >
2009-06-22 06:56:42 +00:00
2009-08-17 14:34:55 +00:00
</ tbody >
</ table > <EFBFBD>
< br />< br />
2009-06-22 06:56:42 +00:00
2009-08-17 14:34:55 +00:00
< table class = " bilans " >
< thead >
< tr >
< th > PASSIF </ th >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
2009-08-17 14:34:55 +00:00
< th class = " date " >
2009-09-21 16:07:10 +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-17 14:34:55 +00:00
</ th >
2009-09-21 16:07:10 +00:00
< ? php
}
?>
2009-08-17 14:34:55 +00:00
< th >% T . B .</ th >
</ tr >
</ thead >
< tbody >
< tr class = " subhead " >
< td > Ressources Propres </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r79' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r79' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Fonds Propres </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r70' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r70' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Provisions Risques </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r71' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r71' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Comptes Courants </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r72' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r72' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td > Ressources Externes </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
2009-09-22 12:18:36 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r90' ); ?> </td>
2009-09-21 16:07:10 +00:00
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r90' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Dettes Financi<EFBFBD> res </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r83' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r83' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Dettes Fournisseurs </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r84' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r84' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Dettes Fiscales </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r85' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r85' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Autres Dettes </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r86' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r86' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td > Tr<EFBFBD> sorerie Passive </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r87' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r87' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td > TOTAL PASSIF </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r22' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r22' , 'r22' ) ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >< td colspan = " 7 " class = " graph " >
2009-10-02 09:59:26 +00:00
< ? php print bilans_graph_passif ( $dataPassif [ 0 ], $fileName . $typeBilan ); ?>
2009-08-17 14:34:55 +00:00
</ td ></ tr >
2009-06-22 06:56:42 +00:00
2009-08-17 14:34:55 +00:00
</ tbody >
</ table > <EFBFBD>
< br />< br />
2009-06-22 06:56:42 +00:00
2009-08-17 14:34:55 +00:00
< h2 > Soldes Interm & eacute ; diare de Gestion </ h2 >
2009-06-22 06:56:42 +00:00
2009-08-17 14:34:55 +00:00
< table class = " bilans " >
< thead >
< tr >
< th colspan = " 2 " > SOLDES INTERMEDIAIRES DE GESTION </ th >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
2009-08-17 14:34:55 +00:00
< th class = " date " >
2009-09-21 16:07:10 +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-17 14:34:55 +00:00
</ th >
2009-09-21 16:07:10 +00:00
< ? php
}
?>
2009-08-17 14:34:55 +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-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r101' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r101' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Achat de marchandises , de mati<EFBFBD> res premi<EFBFBD> res </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r102' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r102' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > MARGE COMMERCIALE </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r110' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r110' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > Production vendue </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r111' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r111' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > Production immobilis<EFBFBD> e et stock<EFBFBD> e </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r112' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r112' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > PRODUCTION DE L ' EXERCICE </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r120' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r120' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >& plusmn ; </ td >< td > Variation de stock de marchandises et mati<EFBFBD> res premi<EFBFBD> res </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r121' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r121' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > MARGE BRUTE </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r122' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r122' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Autres charges externes </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r123' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r123' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > VALEUR AJOUT<EFBFBD> E </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r130' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r130' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Charges de personnel </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r132' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r132' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Imp<EFBFBD> ts , taxes & versements assimil<EFBFBD> s </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r133' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r133' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > Subventions d ' exploitation </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r131' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r131' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > EXC<EFBFBD> DENT BRUT D ' EXPLOITATION ( EBE ) </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r140' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r140' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > Autres produits d ' exploitation </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r141' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r141' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Autres charges d ' exploitation </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r142' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r142' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > Reprise sur dotations & transferts de charges </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r143' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r143' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > 70 % Loyer de cr<EFBFBD> dit bail </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r144' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r144' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Dotations d 'exploitation & provisions d' exploitation </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r145' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r145' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > R<EFBFBD> SULTAT D ' EXPLOITATION </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r150' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r150' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > Produits financiers </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r151' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r151' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > 30 % Loyer de cr<EFBFBD> dit bail </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r152' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r152' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > Charges financi<EFBFBD> res </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r153' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r153' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > R<EFBFBD> SULTAT COURANT AVANT IMPOTS </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r170' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r170' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >+</ td >< td > Produits exceptionnels </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r171' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r171' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Charges exceptionnelles </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r172' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r172' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Imp<EFBFBD> ts sur les b<EFBFBD> n<EFBFBD> fices </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r181' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r181' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >
< td >-</ td >< td > Participation salariale </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r182' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r182' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > R<EFBFBD> SULTAT NET </ td >
2009-09-21 16:07:10 +00:00
< ? php
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
?>
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r199' ); ?> </td>
< ? php
}
?>
2009-09-22 14:17:25 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r199' , 'r101' ); ?> </td>
2009-08-17 14:34:55 +00:00
</ tr >
< tr >< td colspan = " 8 " class = " graph " >
2009-10-02 09:59:26 +00:00
< ? php print bilans_graph_sig ( $dataSIG [ 0 ], $fileName . $typeBilan ); ?>
2009-08-17 14:34:55 +00:00
</ td ></ tr >
</ tbody >
</ table > <EFBFBD>
2009-06-22 06:56:42 +00:00
< ? php
2009-08-17 14:34:55 +00:00
}
2009-04-21 07:40:48 +00:00
?>
2009-08-17 14:34:55 +00:00
</ div >