test
This commit is contained in:
commit
ad90828c1b
@ -18,7 +18,7 @@ define('INDISCORE_DEBUG', false);
|
||||
function getIndiscoreHisto($siren)
|
||||
{
|
||||
if (intval($siren) < 1000) return false;
|
||||
|
||||
|
||||
$query="SELECT siren, actif, procol, naf, indiScore, indiScore20, encours, indiScoreDate, dateBilan, sourceModif, scoreSolv, scoreDir, scoreConf, scoreZ, scoreCH, scoreAfdcc1, scoreAfdcc2, scoreAfdcc2note, scoreAltman, scoreAltmanCote, scoreCCF, cs, csMoisMaj, csMoisFin, adresseDom, situFi, infoNote, noteStruct, noteFin, tendance, nbModifs, dateUpdate
|
||||
FROM jo.scores_surveillance
|
||||
WHERE siren=$siren
|
||||
@ -1311,7 +1311,8 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
|
||||
/** Divers éléments calculés **/
|
||||
$iInsee->AnnoncesLegalesVisu = true;
|
||||
$companyAnnonces = $iInsee->getAnnoncesLegales($siren);
|
||||
//$companyAnnonces = $iInsee->getAnnoncesLegales($siren);
|
||||
$companyAnnonces = array();
|
||||
$iInsee->AnnoncesLegalesVisu = false;
|
||||
|
||||
// Annonces de dépôt des comptes
|
||||
@ -1518,7 +1519,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
* 2725 Fusion/Absorption
|
||||
*/
|
||||
$tabDepotCpt = $iInsee->annoncesFilter($companyAnnonces, array(2700,2701,2702,2703,2710,2720,2721,2725,2726,2730,2740));
|
||||
if (is_array($tabDepotCpt) && count($tabDepotCpt) > 0){
|
||||
if (is_array($tabDepotCpt) && count($tabDepotCpt) > 0) {
|
||||
foreach ($tabDepotCpt as $iDep=>$depot) {
|
||||
if ($iDep == 0) {
|
||||
$ANNONCEFUSDATE = $depot['DateParution'];
|
||||
@ -2373,7 +2374,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$DIR2_TYPE='PP';
|
||||
}
|
||||
|
||||
$activeRechercheDir = true;
|
||||
$activeRechercheDir = false;
|
||||
if ($activeRechercheDir){
|
||||
$tabDir = $iInsee->rechercheDir($dir['Nom'], $dir['Prenom'], '', $dir['NaissDate'], '', 0, 200, 200);
|
||||
$tabDir = $tabDir['reponses'];
|
||||
@ -3017,7 +3018,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$tabTmp=$tabTmp[0];
|
||||
if ($tabTmp['nb']>0) $GRANDGROUPE=true;
|
||||
else $GRANDGROUPE=false;
|
||||
|
||||
|
||||
// NBNIC
|
||||
$tabTmp = $iDb->select('jo.etablissements', 'MAX(NIC) as NBNIC', "SIREN=$SIREN", INDISCORE_DEBUG, MYSQL_ASSOC);
|
||||
$NBNIC = $tabTmp[0]['NBNIC'];
|
||||
|
Loading…
Reference in New Issue
Block a user