Création des bilan, marchent bien reste le graphique a faire

+ correction de la synthese oublie de supprimer le exit.
This commit is contained in:
Damien LASSERRE 2011-05-03 15:31:32 +00:00
parent 292f3c102a
commit e969a5214c
8 changed files with 506 additions and 84 deletions

View File

@ -15,6 +15,10 @@ class FinanceController extends Zend_Controller_Action
public function init()
{
define('FIRST_POSITION', 0);
define('SECOND_POSITION', 1);
define('THREE_POSITION', 2);
$this->entreprise = new stdClass();
$this->dateFunction = new WDate();
$this->ws = new WsScores();
@ -24,13 +28,14 @@ class FinanceController extends Zend_Controller_Action
$this->entreprise->naf = $entreprise->getNaf();
$this->imageCachePath = APPLICATION_PATH. '/../cache/pages/imgcache/';
$this->idSC = $this->getRequest()->getParam('id');
$this->entreprise->siren = substr($this->getRequest()->getParam('siret'), 0, 9);
$this->entreprise->siren = substr($this->getRequest()->getParam('siret'), 0, 9);
$this->view->assign('dateFunction', $this->dateFunction);
$this->view->headLink()
->appendStylesheet('/themes/default/styles/finance.css', 'all');
$this->view->headScript()
->appendFile('/themes/default/scripts/finance.js', 'text/javascript');
}
@ -213,41 +218,54 @@ class FinanceController extends Zend_Controller_Action
self::getVal($id, $dataX[$id], $synthese);
}
echo '<pre>';
print_r($dataX);exit;
}
/* --------------------------------------------------------------------------------------------------- */
/* Gestion des bilans ACTIF/PASSIF/CR */
/* ----------------------------------------------------------------------------------------------------*/
protected function constructElementForBilan($bilan, $tableauDeReference, &$type, &$date)
{
protected function constructElementForBilan($bilan, $tableauDeReference, &$type, &$date, &$duree, $typebilan)
{
foreach($bilan->BilansInfos->item as $element) {
if (@count($date) < 6) {
if(!in_array($element->dateCloture, $date))
$date[] = $element->dateCloture;
if($element->typeBilan == $typebilan)
{
if($duree == EOF)
$duree = $element->duree;
if (@count($date) < 5) {
if(!in_array($element->dateCloture, $date))
$date[] = $element->dateCloture;
}
foreach($element->RatiosEntrep->item as $item) {
foreach($tableauDeReference as $id => $valeur) {
if ($item->id == $id) {
if (count($type[$id]['item']) < 5) {
if ($item->val > 0) {
$type[$id]['item'][$element->dateCloture] = $item->val / 1000;
}
else
$type[$id]['item'][$element->dateCloture] = 0;
}
}
}
}
}
foreach($element->RatiosEntrep->item as $item) {
foreach($tableauDeReference as $id => $valeur) {
if ($item->id == $id) {
if (count($type[$valeur]) < 6)
$type[$valeur][$element->dateCloture] = $item->val;
}
}
}
}
foreach ($type as $id => $valeur) {
$type[$id]['item'] = array_reverse($valeur['item']);
}
$date = array_reverse($date);
}
public function bilansAction()
public function bilanAction()
{
$actif = array();
$passif = array();
$SIG = array();
$date = array();
$referenceActif = array('r59' => 'Actif Immobilisé Net', 'r51' => 'Incorporelles',
'r52' => 'Corporelles', 'r53' => 'Financières',
$duree = EOF;
$listeBilan = array('actif', 'passif', 'sig');
$referenceActif = array('r52' => 'Corporelles', 'r51' => 'Incorporelles',
'r59' => 'Actif Immobilisé Net', 'r53' => 'Financières',
'r69' => 'Actif Circulant Net', 'r60' => 'Stock et encours',
'r61' => 'Créances Clients', 'r62' => 'Autres Créances',
'r00' => '', 'r63' => 'Trésorerie Active',
@ -262,29 +280,44 @@ class FinanceController extends Zend_Controller_Action
'r22' => 'TOTAL PASSIF'
);
$referenceSIG = array('r101' => 'CHIFFRE D\'AFFAIRES HORS TAXE', 'r102' => '-Achat de marchandises, de matières premières',
'r110' => 'MARGE COMMERCIALE', 'r111' => '+Production vendue',
'r112' => '+Production immobilisée et stockée', 'r120' => 'PRODUCTION DE L\'EXERCICE',
'r121' =>'Variation de stock de marchandises et matières premières', 'r122' => 'MARGE BRUTE', 'r123' => '-Autres charges externes',
'r130' => 'VALEUR AJOUTÉE', 'r132' => '-Charges de personnel', 'r133' => '-Impôts, taxes & versements assimilés', 'r131' => '+Subventions d\'exploitation',
'r110' => 'MARGE COMMERCIALE', 'r111' => '+Production vendue',
'r112' => '+Production immobilisée et stockée',
'r120' => 'PRODUCTION DE L\'EXERCICE',
'r121' => 'Variation de stock de marchandises et matières premières',
'r122' => 'MARGE BRUTE',
'r123' => '-Autres charges externes',
'r130' => 'VALEUR AJOUTÉE', 'r132' => 'Charges de personnel',
'r133' => '-Impôts, taxes & versements assimilés', 'r131' => '+Subventions d\'exploitation',
'r140' => 'EXCÉDENT BRUT D\'EXPLOITATION (EBE)', 'r141' => '+Autres produits d\'exploitation',
'r142' => '-Autres charges d\'exploitation', 'r143' => '+Reprise sur dotations & transferts de charges',
'r144' => '+70% Loyer de crédit bail', 'r145' => '-Dotations d\'exploitation & provisions d\'exploitation',
'r150' => 'RÉSULTAT D\'EXPLOITATION', 'r151' => '+Produits financiers',
'r152' => '+30% Loyer de crédit bail', 'r153' => '+Charges financières',
'r170' => 'RÉSULTAT COURANT AVANT IMPOTS', 'r171' => '+Produits exceptionnels',
'r172' => '-Charges exceptionnelles', 'r181' => '-Impôts sur les bénéfices',
'r182' => '-Participation salariale', 'r199' => 'RÉSULTAT NET'
'r182' => '-Participation salariale',
'r199' => 'RÉSULTAT NET'
);
$bilan = array();
$typeBilan = /*$this->getrequest()->getParam('typebilan')*/ 'N';
$typeBilan = /*$this->getrequest()->getParam('typebilan')*/ 'C';
$bilan = $this->ws->getRatios($this->entreprise->siren, 'ratios');
self::constructElementForBilan($bilan, $referenceActif, $actif, $date);
self::constructElementForBilan($bilan, $referencePassif, $passif, $date);
self::constructElementForBilan($bilan, $referenceSIG, $SIG, $date);
self::constructElementForBilan($bilan, $referenceActif, $actif, $date, $duree, $typeBilan);
self::constructElementForBilan($bilan, $referencePassif, $passif, $date, $duree, $typeBilan);
self::constructElementForBilan($bilan, $referenceSIG, $SIG, $date, $duree, $typeBilan);
$this->view->assign('listeBilan', $listeBilan);
$this->view->assign('date', $date);
$this->view->assign('duree', $duree);
$this->view->assign('actif', $actif);
$this->view->assign('passif', $passif);
$this->view->assign('sig', $SIG);

View File

@ -0,0 +1,15 @@
<div id="center">
<h1>Les bilans</h1>
<div class="paragraph">
<?php foreach ($this->listeBilan as $bilan):?>
<?php echo $this->partial('finance/bilansPartials/'.$bilan.'.partial.phtml',
array(
'date' => $this->date,
'duree' => $this->duree,
'dateFunction' => $this->dateFunction,
$bilan => $this->$bilan
));
?><br />
<?php endforeach;?>
</div>
</div>

View File

@ -1,50 +0,0 @@
<table>
<tr>
<td></td>
<?php foreach($this->date as $date):?>
<td><?php echo $date;?></td>
<?php endforeach;?>
</tr>
<?php foreach ($this->actif as $name => $actif):?>
<tr>
<td><?php echo $name;?></td>
<?php foreach ($actif as $element):?>
<td><?php echo $element?></td>
<?php endforeach;?>
</tr>
<?php endforeach;?>
</table>
<table>
<tr>
<td></td>
<?php foreach($this->date as $date):?>
<td><?php echo $date;?></td>
<?php endforeach;?>
</tr>
<?php foreach ($this->passif as $name => $passif):?>
<tr>
<td><?php echo $name;?></td>
<?php foreach ($passif as $element):?>
<td><?php echo $element?></td>
<?php endforeach;?>
</tr>
<?php endforeach;?>
</table>
<table>
<tr>
<td></td>
<?php foreach($this->date as $date):?>
<td><?php echo $date;?></td>
<?php endforeach;?>
</tr>
<?php foreach ($this->sig as $name => $sig):?>
<tr>
<td><?php echo $name;?></td>
<?php foreach ($sig as $element):?>
<td><?php echo $element?></td>
<?php endforeach;?>
</tr>
<?php endforeach;?>
</table>

View File

@ -0,0 +1,84 @@
<?php end($this->actif['r22']['item'])?>
<h2>Bilan actif - passif</h2>
<table class="bilans">
<thead>
<tr>
<th>Actif</th>
<?php foreach($this->date as $date):?>
<th class="date"><?php echo $this->dateFunction->dateT('Ymd', 'd/m/Y', $date);?><br />
<?php echo $this->duree;?> Mois</th>
<?php endforeach;?>
<th>% T.B.</th>
</tr>
</thead>
<tr class="subhead">
<td>Actif Immobilisé Net</td>
<?php foreach($this->actif['r59']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Incorporelles</td>
<?php foreach($this->actif['r51']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Corporelles</td>
<?php foreach($this->actif['r52']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Financières</td>
<?php foreach($this->actif['r53']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr class="subhead">
<td>Actif Circulant Net</td>
<?php foreach($this->actif['r69']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Stock et encours</td>
<?php foreach($this->actif['r60']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Créances Clients</td>
<?php foreach($this->actif['r61']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Autres Créances</td>
<?php foreach($this->actif['r62']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Trésorerie Active</td>
<?php foreach($this->actif['r63']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->actif['r22']['item'][key($this->actif['r22']['item'])],2);?></td>
</tr>
<tr class="subhead">
<td>TOTAL ACTIF</td>
<?php foreach($this->actif['r22']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$element,2);?></td>
</tr>
</table>

View File

@ -0,0 +1,90 @@
<?php end($this->passif['r22']['item'])?>
<table class="bilans">
<thead>
<tr>
<th>Passif</th>
<?php foreach($this->date as $date):?>
<th class="date"><?php echo $this->dateFunction->dateT('Ymd', 'd/m/Y', $date);?><br />
<?php echo $this->duree;?> Mois</th>
<?php endforeach;?>
<th>% T.B.</th>
</tr>
</thead>
<tr class="subhead">
<td>Ressources Propres</td>
<?php foreach($this->passif['r79']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Fonds Propres</td>
<?php foreach($this->passif['r70']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Provisions Risques</td>
<?php foreach($this->passif['r71']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Comptes Courants</td>
<?php foreach($this->passif['r72']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr class="subhead">
<td>Ressources Externes</td>
<?php foreach($this->passif['r90']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Dettes Financières</td>
<?php foreach($this->passif['r83']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Dettes Fournisseurs</td>
<?php foreach($this->passif['r84']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Dettes Fiscales</td>
<?php foreach($this->passif['r85']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Autres Dettes</td>
<?php foreach($this->passif['r86']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr>
<td>Trésorerie Passive</td>
<?php foreach($this->passif['r87']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$this->passif['r22']['item'][key($this->passif['r22']['item'])],2);?></td>
</tr>
<tr class="subhead">
<td>TOTAL PASSIF</td>
<?php foreach($this->passif['r22']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$element,2);?></td>
</tr>
</table>

View File

@ -0,0 +1,237 @@
<?php end($this->sig['r101']['item'])?>
<h2>Soldes Intermédiaire de Gestion</h2>
<table class="bilans">
<thead>
<tr>
<th colspan="2">SOLDES INTERMEDIAIRES DE GESTION</th>
<?php foreach($this->date as $date):?>
<th class="date"><?php echo $this->dateFunction->dateT('Ymd', 'd/m/Y', $date);?><br />
<?php echo $this->duree;?> Mois</th>
<?php endforeach;?>
<th>% C.A.</th>
</tr>
</thead>
<tr class="subhead">
<td colspan="2">CHIFFRE D'AFFAIRES HORS TAXE</td>
<?php foreach($this->sig['r101']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$element,2);$r101 = $element;?></td>
</tr>
<tr>
<td>-</td>
<td>Achat de marchandises, de matières premières</td>
<?php foreach($this->sig['r102']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr class="subhead">
<td colspan="2">MARGE COMMERCIALE</td>
<?php foreach($this->sig['r110']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>Production vendue</td>
<?php foreach($this->sig['r111']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>Production immobilisée et stockée</td>
<?php foreach($this->sig['r112']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr class="subhead">
<td colspan="2">PRODUCTION DE L'EXERCICE</td>
<?php foreach($this->sig['r120']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td style="text-decoration:underline">+</td>
<td>Variation de stock de marchandises et matières premières</td>
<?php foreach($this->sig['r121']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr class="subhead">
<td colspan="2">MARGE BRUTE</td>
<?php foreach($this->sig['r122']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>-</td>
<td>Autres charges externes</td>
<?php foreach($this->sig['r123']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr class="subhead">
<td colspan="2">VALEUR AJOUTÉE</td>
<?php foreach($this->sig['r130']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>-</td>
<td>Charges de personnel</td>
<?php foreach($this->sig['r132']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>-</td>
<td>Impôts, taxes & versements assimilés</td>
<?php foreach($this->sig['r133']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>Subventions d'exploitation</td>
<?php foreach($this->sig['r131']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr class="subhead">
<td colspan="2">EXCÉDENT BRUT D'EXPLOITATION (EBE)</td>
<?php foreach($this->sig['r140']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>Autres produits d'exploitation</td>
<?php foreach($this->sig['r141']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>-</td>
<td>Autres charges d'exploitation</td>
<?php foreach($this->sig['r142']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>Reprise sur dotations & transferts de charges</td>
<?php foreach($this->sig['r143']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>70% Loyer de crédit bail</td>
<?php foreach($this->sig['r144']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>-</td>
<td>Dotations d'exploitation & provisions d'exploitation</td>
<?php foreach($this->sig['r145']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr class="subhead">
<td colspan="2">RÉSULTAT D'EXPLOITATION</td>
<?php foreach($this->sig['r150']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>Produits financiers </td>
<?php foreach($this->sig['r151']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>30% Loyer de crédit bail</td>
<?php foreach($this->sig['r152']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td> Charges financières</td>
<?php foreach($this->sig['r153']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr class="subhead">
<td colspan="2">RÉSULTAT COURANT AVANT IMPOTS</td>
<?php foreach($this->sig['r170']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>+</td>
<td>Produits exceptionnels</td>
<?php foreach($this->sig['r171']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>-</td>
<td>Charges exceptionnelles</td>
<?php foreach($this->sig['r172']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>-</td>
<td>Impôts sur les bénéfices</td>
<?php foreach($this->sig['r181']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr>
<td>-</td>
<td>Participation salariale</td>
<?php foreach($this->sig['r182']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
<tr class="subhead">
<td colspan="2">RÉSULTAT NET</td>
<?php foreach($this->sig['r199']['item'] as $element): ?>
<td><?php echo number_format($element, 0, '', ' ') . ' K€'; ?></td>
<?php endforeach; ?>
<td><?php echo round($element*100/$r101,2);?></td>
</tr>
</table>

View File

@ -63,21 +63,21 @@
<?php foreach ($partials as $partial):?>
<div id="content_<?php echo $i;?>" class="content">
<?php if($this->champType == 'N' or $this->champType == 'S'):?>
<?php echo $this->partial('finance/partials/'.$partial.'.partial.phtml',
<?php echo $this->partial('finance/liassesPartials/'.$partial.'.partial.phtml',
array('liasse' => $this->liasse,
'dateCloture' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloture),
'dateCloturePre' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloturePre),
'dureesMois' => $this->dureesMois,
'dureesMoisPre'=> $this->dureesMois)).'<br />';?>
<?php elseif ($this->champType == 'B'):?>
<?php echo $this->partial('finance/partials/banque/'.$partial.'.partial.phtml',
<?php echo $this->partial('finance/liassesPartials/banque/'.$partial.'.partial.phtml',
array('liasse' => $this->liasse,
'dateCloture' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloture),
'dateCloturePre' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloturePre),
'dureesMois' => $this->dureesMois,
'dureesMoisPre'=> $this->dureesMois)).'<br />';?>
<?php elseif ($this->champType == 'A'):?>
<?php echo $this->partial('finance/partials/assurance/'.$partial.'.partial.phtml',
<?php echo $this->partial('finance/liassesPartials/assurance/'.$partial.'.partial.phtml',
array('liasse' => $this->liasse,
'dateCloture' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloture),
'dateCloturePre' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloturePre),

View File

@ -1,5 +1,18 @@
@CHARSET "UTF-8";
.bilans {font-family:"Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size:12px; margin: 10px 0 0 0; width:100%; text-align:left; border-collapse:collapse;}
.bilans th {padding:4px; font-weight:normal; font-size:11px; border:1px solid #000; color:#000; background:#b9c9fe; text-align:center; font-weight:bold;}
.bilans td {font-size:11px;padding:4px; border:1px solid #000; color:#000;}
.bilans td.graph {padding:0; margin:0;}
.bilans th.date {font-size:10px;}
.bilans td.right {text-align:right;}
.bilans td.center {text-align: center;}
.bilans td.italique {font-style:italic;}
.bilans tr.subhead td {font-size:11px;padding:4px; background:#b9c9fe; border: 1px solid #000; font-weight:bold; color:#000;}
.bilans tr.darkblue td {padding:4px; background:#00008c; border: 1px solid #000; font-weight:bold; color:#fff;}
.entete {margin:1px;}
.subentete {margin:2px;}
#ratios tr.subhead td
{
background: none repeat scroll 0 0 #B9C9FE;