Company; $structure = new RapportFormat(); $structure->_CompanyIdentitie($config, $configNace); ?>
IDENTITÉ DE L\'ENTREPRISE'; echo ''; foreach($rapport->Company as $objs => $valeur) {?> Operations->IndustryCode) == true || isset($c->FinancialSummary) == true || isset($capital) == true || isset($c->Employees) == true) { print '

Activité(s) & Chiffre d\'affaire

'; print '
CompanyIdentitie->_selectFunction($objs, $valeur); ?>
'; if (isset($c->Operations->IndustryCode) == true) { $libelle = 'Activité(s)'; foreach (getArray($c->Operations->IndustryCode) as $t) { $desc = 'Nace '.$t->NaceCode; if ( isset($t->Description->_) == true) { $desc .= ' '.$t->Description->_; } dRow($libelle, $desc); $libelle = ''; } } if (isset($c->FinancialSummary) == true) { $tab = getArray($c->FinancialSummary); $date = 0; foreach ($tab as $t) { if ($t->SummaryDate->_ > $date && isset($t->AuthorizedCapital) == true) { $capital = $t->AuthorizedCapital->_; $date = $t->SummaryDate->_; } } } if (isset($capital) == false && isset($c->ShareCapital->AuthorizedCapital->_) == true && (isset($c->ShareCapital->AuthorizedCapital->currency) == false || $c->ShareCapital->AuthorizedCapital->currency == 'EUR')) { $capital = $c->ShareCapital->AuthorizedCapital->_; } if (isset($capital) == true) { dRow('Capital', $capital.' €'); } if (isset($c->Employees) == true) { $annee = 0; $total = 0; foreach (getArray($c->Employees) as $t) { if (isset($t->Period) == true) { if (isset($t->Period->StartDate->_) == true && $t->Period->StartDate->_ > $annee) { $annee = $t->Period->StartDate->_; $total = $t->TotalStaffEmployed + 0; } else if (isset($t->Period->EndDate->_) == true && $t->Period->EndDate->_ > $annee) { $annee = $t->Period->EndDate->_; $total = $t->TotalStaffEmployed + 0; } } else { $total = $t->TotalStaffEmployed + 0; } } if ($total > 0) { if ($annee > 0) { dRow('Effectif de l\'entreprise', $total.' salarié(s) en '.substr($annee, 0, 4)); } else { dRow('Effectif de l\'entreprise', $total.' salarié(s)'); } } } print '
'; } // --------------------------------------------------------------------------- // // Bilans // --------------------------------------------------------------------------- // if (isset($c->AnnualAccounts) == true) { print '

ÉLÉMENTS FINANCIERS - BILANS

'; print '
'; print ''; printAccountItem($c, 'ACTIF'); printAccountItem($c, 'PASSIF'); printAccountItem($c, 'COMPTE DE RÉSULTAT'); print '
'; print '
'; } // --------------------------------------------------------------------------- // // Etablissements // --------------------------------------------------------------------------- // if (isset($c->Branch) == true) { print '

Établissements

'; print ''; foreach (getArray($c->Branch) as $t) { if (isset($t->BranchName->_) == true) { $libelle = $t->BranchName->_; } else if (isset($t->BranchName) == true) { $libelle = $t->BranchName; } else if (isset($t->BranchId) == true) { $libelle = $t->BranchId; } dRow($libelle, $c->CompanyAddress->HouseNumber.' '. $c->CompanyAddress->Street.' '. $c->CompanyAddress->PostCode.' '. $c->CompanyAddress->City.' '. $c->CompanyAddress->Country); } print '
'; } // --------------------------------------------------------------------------- // // Paiements // --------------------------------------------------------------------------- // if (isset($c->PaymentBehaviour) == true) { print '

Paiements

'; print ''; $date = ''; if (isset($c->PaymentBehaviour->Period->StartDate) == true) { $date = pdate($c->PaymentBehaviour->Period->StartDate); } if (isset($c->PaymentBehaviour->Period->EndDate) == true) { $date .= ' -> '.pdate($c->PaymentBehaviour->Period->EndDate); } if (empty($date) == false) { dRow('Date', $date); } if (isset($c->PaymentBehaviour->DebtorDays) == true) { dRow('DebtorDays', $c->PaymentBehaviour->DebtorDays); } if (isset($c->PaymentBehaviour->CreditorDays) == true) { dRow('CreditorDays', $c->PaymentBehaviour->CreditorDays); } if (isset($c->PaymentBehaviour->LiquidityAssessment) == true) { $desc = $c->PaymentBehaviour->LiquidityAssessment->Qualification; if (isset($c->PaymentBehaviour->LiquidityAssessment ->AdditionalQualification) == true) { $desc .= ', '.$c->PaymentBehaviour->LiquidityAssessment ->AdditionalQualification->_; } dRow('LiquidityAssessment', $desc); } if (isset($c->PaymentBehaviour->PaymentQualification) == true) { $desc = $c->PaymentBehaviour->PaymentQualification->Qualification; if (isset($c->PaymentBehaviour->PaymentQualification ->AdditionalQualification) == true) { $desc .= ', '.$c->PaymentBehaviour->PaymentQualification ->AdditionalQualification->_; } dRow('PaymentQualification', $desc); } print '
'; if (isset($c->PaymentBehaviour->AnalysisByPeriod) == true) { $ap = $c->PaymentBehaviour->AnalysisByPeriod; $tab = array(); foreach ($ap->Category as $cat) { $trim = pdate($cat->Period->StartDate).' - '. pdate($cat->Period->EndDate); $total = 0; foreach (getArray($cat->DueDateExceeds) as $e) { if ($e->NrOfDaysExceeds->LowerLimit->_ >= 90) { $total += $e->Percentage; } else { $lab = $e->NrOfDaysExceeds->LowerLimit->_.' to '. $e->NrOfDaysExceeds->UpperLimit->_; $tab[$lab][$trim] = $e->Percentage; } } $tab['90-'][$trim] = $total; } ksort($tab); print '

'.$ap->Description->_.'

'; print ''; print ''; print ''; print ''; foreach ($tab as $tranche => $valeurs) { print ''; } print ''; foreach ($ap->Category as $cat) { $trim = pdate($cat->Period->StartDate).' - '. pdate($cat->Period->EndDate); print ''. ''. ''; foreach ($tab as $tranche => $valeurs) { if (isset($tab[$tranche][$trim]) == true) { print ''; } else { print ''; } } print ''; } print '
QuarterWithin term'.$tranche.'
'.$trim.''.$cat->PercentageWithinTerms.' %'.$tab[$tranche][$trim].' %0 %
'; } if (isset($c->PaymentBehaviour->AnalysisByAmount) == true) { $ap = $c->PaymentBehaviour->AnalysisByAmount; $tab = array(); foreach ($ap->Category as $cat) { $amount = ''; if ( isset($cat->AmountCategory->LowerLimit) == true) { $amount .= $cat->AmountCategory->LowerLimit->_; } $amount .= '-'; if ( isset($cat->AmountCategory->HigherLimit) == true) { $amount .= $cat->AmountCategory->HigherLimit->_; } $total = 0; foreach (getArray($cat->DueDateExceeds) as $e) { if ($e->NrOfDaysExceeds->LowerLimit->_ >= 90) { $total += $e->Percentage; } else { $lab = $e->NrOfDaysExceeds->LowerLimit->_.' to '. $e->NrOfDaysExceeds->UpperLimit->_; $tab[$lab][$amount] = $e->Percentage; } } $tab['90-'][$amount] = $total; } ksort($tab); print '

'.$ap->Description->_.'

'; print ''; print ''; print ''; print ''; foreach ($tab as $tranche => $valeurs) { print ''; } print ''; foreach ($ap->Category as $cat) { $amount = ''; if ( isset($cat->AmountCategory->LowerLimit) == true) { $amount .= $cat->AmountCategory->LowerLimit->_; } $amount .= '-'; if ( isset($cat->AmountCategory->HigherLimit) == true) { $amount .= $cat->AmountCategory->HigherLimit->_; } print ''. ''. ''; foreach ($tab as $tranche => $valeurs) { if (isset($tab[$tranche][$amount]) == true) { print ''; } else { print ''; } } print ''; } print '
AmountWithin term'.$tranche.'
'.$amount.''.$cat->PercentageWithinTerms.' %'.$tab[$tranche][$amount].' %0 %
'; } } // --------------------------------------------------------------------------- // // Score // --------------------------------------------------------------------------- // print '

Score

'; print ''; if (isset($c->CreditRecommendation->Date) == true) { dRow('Date', pdate($c->CreditRecommendation->Date)); } if (isset($c->CreditRecommendation->RiskClasses) == true) { foreach (getArray($c->CreditRecommendation ->RiskClasses->ProviderRiskClass) as $t) { if (isset($t->Description->_) == true) { $desc = '    '. ''; } else { $desc = ''; } dRow($t->RatingName->_.$desc, $t->RatingValue); } $t = $c->CreditRecommendation->RiskClasses->CommonRiskClass; if (isset($t->Description->_) == true) { $desc = '    '. ''; } else { $desc = ''; } dRow($t->RatingName->_.$desc, $t->RatingValue); } dRow('AmountAdvised', $c->CreditRecommendation->AmountAdvised->_.' '. $c->CreditRecommendation->AmountAdvised->currency); print '
'; // --------------------------------------------------------------------------- // // Ratios secteur // --------------------------------------------------------------------------- // /*if (isset($c->PeerGroup->FlexibleComparisonItems ->ComparisonItemsGroup[0]->FlexibleComparisonItem) == true) { print '

Ratios secteur

'; print ''; print ''; print ''; foreach ($c->PeerGroup->FlexibleComparisonItems->ComparisonItemsGroup as $group) { print ''; print ''; } print ''; foreach ($c->PeerGroup->FlexibleComparisonItems ->ComparisonItemsGroup[0]->FlexibleComparisonItem as $i => $item) { print ''; print ''; foreach ($c->PeerGroup->FlexibleComparisonItems->ComparisonItemsGroup as $group) { print ''; print ''; } print ''; } print '
'; print ''; print substr($group->Period->EndDate->_, 0, 4); print ''; print 'secteur'; print '
'; print $item->ItemName->_; print ''; print $group->FlexibleComparisonItem[$i]->SubjectValue; print ''; print $group->FlexibleComparisonItem[$i]->AverageValue; print '
'; } print '
';*/ ?>