Change class name
This commit is contained in:
parent
835fe60aa8
commit
d9559a652d
@ -551,7 +551,7 @@ function PROJEC($valeur, $nbAnnees)
|
||||
{
|
||||
global $tabRegX, $Y, $Yaff, $PROJECCOEF, $PROJECTAUX;
|
||||
require_once 'Metier/scores/classMProjection.php';
|
||||
$projec = new Projection();
|
||||
$projec = new Metier_Scores_Projection();
|
||||
$projec->tabRegX = $tabRegX;
|
||||
$result = $projec->calc($valeur, $nbAnnees);
|
||||
if ( $result !== false ) {
|
||||
@ -1018,7 +1018,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$BILANANNEE5 = $BILANANNEE + 5;
|
||||
|
||||
// --- Calcul des ratios
|
||||
$mRatios = new MRatios();
|
||||
$mRatios = new Metier_Scores_MRatios();
|
||||
$mRatios->setTrancheEffectif($efftr);
|
||||
$tabRatios = $mRatios->calcul($tabBilan);
|
||||
}
|
||||
@ -1913,7 +1913,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
/**
|
||||
* Solvabilité
|
||||
*/
|
||||
$isolv = new MSolvabilite(
|
||||
$isolv = new Metier_Scores_MSolvabilite(
|
||||
$siren,
|
||||
$naf,
|
||||
$tabIdentite['EffEnTr'],
|
||||
@ -2008,7 +2008,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$tabBilansA = $mBilA->listeBilans(false,2);
|
||||
$nbBilansA = count($tabBilansA);
|
||||
if ($nbBilansA > 0) {
|
||||
$mRatiosA = new MRatios();
|
||||
$mRatiosA = new Metier_Scores_MRatios();
|
||||
$mRatiosA->setTrancheEffectif($tabIdentiteA['EffEnTr']);
|
||||
$tabRatiosA = $mRatiosA->calcul($tabBilansA);
|
||||
$SITUACT=$tabRatiosA[0][19];
|
||||
@ -2088,7 +2088,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
}
|
||||
if ($numBil>2) break;
|
||||
|
||||
$icotation = new ICotation($item, true, $iDb);
|
||||
$icotation = new Metier_Scores_ICotation($item, true, $iDb);
|
||||
$secteur=$icotation->getSecteurActivite($isolv->getNaf4($naf));
|
||||
$libSecteur=$icotation->tabLibActivite[$secteur];
|
||||
$chiffeAffaire=$icotation->calculChiffreAffaires($isolv->getNaf4($naf));
|
||||
|
@ -1104,7 +1104,7 @@ class Metier_Scores_MSolvabilite
|
||||
else
|
||||
$nbPoints=5;
|
||||
elseif (strlen($this->naf)==5) {
|
||||
$iCotation = new ICotation(array(), true, $this->iDb);
|
||||
$iCotation = new Metier_Scores_ICotation(array(), true, $this->iDb);
|
||||
//print_r($iCotation->tabNaf21);
|
||||
//die();
|
||||
if (isset($iCotation->tabNaf21[$this->naf])) {
|
||||
@ -1134,7 +1134,7 @@ class Metier_Scores_MSolvabilite
|
||||
$naf5=$this->naf;
|
||||
|
||||
if (strlen($naf5)==5) {
|
||||
$iCotation = new ICotation(array(), true, $this->iDb);
|
||||
$iCotation = new Metier_Scores_ICotation(array(), true, $this->iDb);
|
||||
return $iCotation->tabNaf21[$naf5];
|
||||
}
|
||||
return $naf5;
|
||||
|
@ -59,7 +59,7 @@ class Metier_Scores_Projection
|
||||
return false;
|
||||
}
|
||||
|
||||
$oReg = new Regression($tabRegY, $this->tabRegX);
|
||||
$oReg = new Metier_Scores_Regression($tabRegY, $this->tabRegX);
|
||||
return $oReg->vCoefCorLin;
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ class Metier_Scores_Projection
|
||||
return false;
|
||||
}
|
||||
|
||||
$oReg = new Regression($tabRegY, $this->tabRegX);
|
||||
$oReg = new Metier_Scores_Regression($tabRegY, $this->tabRegX);
|
||||
$tab = $oReg->GetProjectionDebut($nbAnnees);
|
||||
|
||||
$this->Y = $this->Yaff = array();
|
||||
@ -111,7 +111,7 @@ class Metier_Scores_Projection
|
||||
return false;
|
||||
}
|
||||
|
||||
$oReg = new Regression($tabRegY, $this->tabRegX);
|
||||
$oReg = new Metier_Scores_Regression($tabRegY, $this->tabRegX);
|
||||
return $oReg->TauxProgression($nbAnnees);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user