On supprime les bilans qui ne sont pas normaux pour ne pas les affichés
This commit is contained in:
parent
cc21c760a0
commit
404c3527d1
@ -94,8 +94,23 @@ $tabRatio = array(
|
||||
26 => array('titre'=>'RENDEMENT', 'stitre'=>'(Production sur 12mois / Effectif)', 'ratio'=>'r261', 'parent'=>21, 'position'=>'>' ),
|
||||
27 => array('titre'=>'PRODUCTIVITE', 'stitre'=>'(CA / Effectif)', 'ratio'=>'r267', 'parent'=>21, 'position'=>'>' ),
|
||||
);
|
||||
$typBil = array('C'=>'Consolidé', 'N'=>'', 'S'=>'Réel Simplifié', 'B'=> 'Banque', 'A'=>'Assurance');
|
||||
|
||||
$firephp->log($bilansInfos, 'bilansInfos');
|
||||
|
||||
$numBilanC = 0;
|
||||
$numBilanN = 0;
|
||||
if(count($bilansInfos)>0)
|
||||
{
|
||||
foreach($bilansInfos as $key => $item)
|
||||
{
|
||||
if($item['typeBilan']!='C') { $numBilanC++; }
|
||||
if($item['typeBilan']!='N') { $numBilanN++; }
|
||||
}
|
||||
}
|
||||
|
||||
//On supprime les bilans consolidés
|
||||
$typeBilan = 'N';
|
||||
if(count($bilansInfos)>0)
|
||||
{
|
||||
//En fonction du type de bilan sélectionné
|
||||
@ -105,11 +120,11 @@ if(count($bilansInfos)>0)
|
||||
{
|
||||
if($item['typeBilan']!=$typeBilan)
|
||||
{
|
||||
array_slice($bilansInfos, $index, 1);
|
||||
array_slice($ratiosInfos, $index, 1);
|
||||
array_slice($ratiosEntrep, $index, 1);
|
||||
array_slice($ratiosEntrepEvol, $index, 1);
|
||||
array_slice($ratiosSecteur, $index, 1);
|
||||
array_splice($bilansInfos, $index, 1);
|
||||
array_splice($ratiosInfos, $index, 1);
|
||||
array_splice($ratiosEntrep, $index, 1);
|
||||
array_splice($ratiosEntrepEvol, $index, 1);
|
||||
$index--;
|
||||
}
|
||||
$index++;
|
||||
}
|
||||
@ -120,16 +135,16 @@ if(count($bilansInfos)>0)
|
||||
<h1 class="titre">RATIOS</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="340" class="StyleInfoData"><?=substr($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="340" class="StyleInfoData"><?=$_SESSION['tabInfo']['entrep']['raisonSociale'];?></td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
@ -165,7 +180,19 @@ else
|
||||
foreach($bilansInfos as $bilanItem){
|
||||
if(isset($bilanItem['dateCloture'])) {
|
||||
?>
|
||||
<option value="<?php print $countBilans;?>"<?php if($bilan==$countBilans){ print 'selected="selected"';} ?>><?php print substr($bilanItem['dateCloture'],6,2).'/'.substr($bilanItem['dateCloture'],4,2).'/'.substr($bilanItem['dateCloture'],0,4);?></option>
|
||||
<option value="<?php print $countBilans;?>"<?php if($bilan==$countBilans){ print 'selected="selected"';} ?>>
|
||||
<?=substr($bilanItem['dateCloture'],6,2).'/'.substr($bilanItem['dateCloture'],4,2).'/'.substr($bilanItem['dateCloture'],0,4)?>
|
||||
<?php
|
||||
if( isset($typBil[$bilanItem['typeBilan']]) &&
|
||||
( isset($typBil[$bilanItem['typeBilan']])!='N' ||
|
||||
isset($typBil[$bilanItem['typeBilan']])!='') )
|
||||
{
|
||||
?>
|
||||
<?=$typBil[$bilanItem['typeBilan']]?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
$countBilans++;
|
||||
|
Loading…
Reference in New Issue
Block a user