ws-2.0 : page bilans
This commit is contained in:
parent
c07ae3ad9f
commit
72ceda50b8
@ -60,19 +60,21 @@ $sig = array(101 => 'CHIFFRE D\'AFFAIRES HORS TAXE',
|
||||
// -------------------------------------------------------------------------- //
|
||||
function afficheDates($bilansInfos)
|
||||
{
|
||||
for ($i = 1; $i <= NB_BILANS; ++$i) {
|
||||
end($bilansInfos);
|
||||
while (($infos = current($bilansInfos))) {
|
||||
print '<th class="date">';
|
||||
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);
|
||||
if (isset($infos->dateCloture)) {
|
||||
print substr($infos->dateCloture, 6, 2).'/'.
|
||||
substr($infos->dateCloture, 4, 2).'/'.
|
||||
substr($infos->dateCloture, 0, 4);
|
||||
print '<br>';
|
||||
print $bilansInfos[NB_BILANS - $i]->duree;
|
||||
print $infos->duree;
|
||||
print 'mois';
|
||||
} else {
|
||||
print '-';
|
||||
}
|
||||
print '</th>';
|
||||
prev($bilansInfos);
|
||||
}
|
||||
}
|
||||
|
||||
@ -83,9 +85,11 @@ function afficheBilan($bilansInfos, $liste, $total)
|
||||
{
|
||||
foreach ($liste as $num => $label) {
|
||||
if ($num == 00) {
|
||||
print '<tr><td> </td>'.
|
||||
'<td></td><td></td><td></td>'.
|
||||
'<td></td><td></td><td></td></tr>';
|
||||
print '<tr><td> </td>';
|
||||
foreach ($bilansInfos as $b) {
|
||||
print '<td></td>';
|
||||
}
|
||||
print '<td></td></tr>';
|
||||
continue;
|
||||
}
|
||||
if ($num == 101 || $num == 110 || $num == 120 ||
|
||||
@ -113,15 +117,18 @@ function afficheBilan($bilansInfos, $liste, $total)
|
||||
print '<td>';
|
||||
}
|
||||
print $label.'</td>';
|
||||
for ($i = 1; $i <= NB_BILANS; ++$i) {
|
||||
end($bilansInfos);
|
||||
while (($infos = current($bilansInfos))) {
|
||||
print '<td class="right">';
|
||||
if (isset($bilansInfos[NB_BILANS - $i])){
|
||||
$ratiosEntrep = formatRatios($bilansInfos[NB_BILANS - $i]->RatiosEntrep->item);
|
||||
if (isset($infos)){
|
||||
$ratiosEntrep = formatRatios($infos->RatiosEntrep->item);
|
||||
print dRatio($ratiosEntrep,'r'.$num);
|
||||
}
|
||||
print '</td>';
|
||||
prev($bilansInfos);
|
||||
}
|
||||
print '<td class="right">'.dPercent($ratiosEntrep,0,'r'.$num,'r'.$total).'</td>';
|
||||
print '<td class="right">'.
|
||||
dPercent($ratiosEntrep, 0, 'r'.$num,'r'.$total).'</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
@ -42,6 +42,7 @@ list($bilansInfos, $ratiosSecteur, $dataActif, $dataPassif, $dataSIG) =
|
||||
$dataSIG,
|
||||
$typeBilan);
|
||||
|
||||
$ratiosInfos = formatRatiosInfos($ratiosInfos);
|
||||
require_once 'ratios/bilans.php';
|
||||
|
||||
// -------------------------------------------------------------------------- //
|
||||
|
Loading…
Reference in New Issue
Block a user