RRG : mise en surveillance, libellé CS et test retour calcul indiscore

This commit is contained in:
Michael RICOIS 2015-01-26 15:47:53 +00:00
parent f254540d8c
commit 2c4fada7c4

View File

@ -167,7 +167,7 @@ if ( count($resultItem) == 0 ) {
if ( count($fileOptionsOut['header']) > 0 ) {
fputcsv($fp, $fileOptionsOut['header'], $fileOptionsOut['delimiter'], $fileOptionsOut['enclosure']);
}
$iDb = new WDB();
$row = 0;
// --- Content
@ -186,9 +186,9 @@ if ( count($resultItem) == 0 ) {
$DateCreaEn = '';
$BilanCA = '';
$BilanDateCloture = '';
if (/*true*/$item->indiScoreDate === null) {
if ($item->indiScoreDate === null) {
if ($opts->debug) { echo " - Calcul du score"; }
$evaluation = calculIndiScore($item->siren, 0, false, 0);
$evaluation = calculIndiScore($item->siren, 0, false, 0, false, 'scores', $iDb);
if ( $evaluation['DateCreaEt'] > 0 && $evaluation['DateCreaEt'] < $evaluation['DateCreaEn'] ) {
$DateCreaEn = $evaluation['DateCreaEt'];
} elseif ( $evaluation['DateCreaEn'] > 0 ) {
@ -234,7 +234,7 @@ if ( count($resultItem) == 0 ) {
if ( in_array($PaiementCS, array('0', 'I', 'P', 'D')) ) {
$iFacto = new MFacto($iDb);
$info = $iFacto->getLibInfoCS($PaiementCS);
$PaiementInfo = $info['libExt'];
$PaiementInfo = $info['LibCS'];
}
$values = array(