Michael RICOIS 96548b180b Update
2016-07-18 15:57:47 +02:00

2674 lines
126 KiB
PHP
Raw Blame History

<?php
class Metier_Scores_ICotation
{
var $reTrtAuto;
public $tabBilan=array();
public $tabNotation=array();
public $tabLibActivite=array();
public $tabActivite=array();
public $tabR=array();
public $tabMedians=array();
public $tabNaf21=array();
public $risqueZbis='';
public $secteurAfdcc='';
public $noteAfdcc='';
public $tpe=true;
public $societeEnBourse=false;
public $valeurCCF=0;
protected $iDb;
function __construct($tabBilan, $retraitementAutomatique = true, $db = null)
{
if ( $db === null ) {
$this->iDb = new Metier_Util_Db();
} else {
$this->iDb = $db;
}
$this->reTrtAuto = $retraitementAutomatique;
$this->tabBilan = $tabBilan;
$this->tabNaf21['0162Z']='927C';
$this->tabNaf21['0210Z']='020A';
$this->tabNaf21['0220Z']='020B';
$this->tabNaf21['0240Z']='020D';
$this->tabNaf21['0311Z']='050A';
$this->tabNaf21['0321Z']='050C';
$this->tabNaf21['0322Z']='050C';
$this->tabNaf21['0510Z']='101Z';
$this->tabNaf21['0610Z']='111Z';
$this->tabNaf21['0620Z']='111Z';
$this->tabNaf21['0710Z']='131Z';
$this->tabNaf21['0721Z']='120Z';
$this->tabNaf21['0729Z']='132Z';
$this->tabNaf21['0811Z']='141E';
$this->tabNaf21['0812Z']='142C';
$this->tabNaf21['0891Z']='143Z';
$this->tabNaf21['0892Z']='103Z';
$this->tabNaf21['0893Z']='144Z';
$this->tabNaf21['0899Z']='145Z';
$this->tabNaf21['0910Z']='112Z';
$this->tabNaf21['0990Z']='131Z';
$this->tabNaf21['1011Z']='151A';
$this->tabNaf21['1012Z']='151C';
$this->tabNaf21['1013A']='151E';
$this->tabNaf21['1013B']='151F';
$this->tabNaf21['1020Z']='152Z';
$this->tabNaf21['1031Z']='153A';
$this->tabNaf21['1032Z']='153C';
$this->tabNaf21['1039A']='153E';
$this->tabNaf21['1039B']='153F';
$this->tabNaf21['1041A']='154A';
$this->tabNaf21['1041B']='154C';
$this->tabNaf21['1042Z']='154E';
$this->tabNaf21['1051A']='155A';
$this->tabNaf21['1051B']='155B';
$this->tabNaf21['1051C']='155C';
$this->tabNaf21['1051D']='155D';
$this->tabNaf21['1052Z']='155F';
$this->tabNaf21['1061A']='156A';
$this->tabNaf21['1061B']='156B';
$this->tabNaf21['1062Z']='156D';
$this->tabNaf21['1071A']='158A';
$this->tabNaf21['1071B']='158B';
$this->tabNaf21['1071C']='158C';
$this->tabNaf21['1071D']='158D';
$this->tabNaf21['1072Z']='158F';
$this->tabNaf21['1073Z']='158M';
$this->tabNaf21['1081Z']='158H';
$this->tabNaf21['1082Z']='158K';
$this->tabNaf21['1083Z']='158P';
$this->tabNaf21['1084Z']='158R';
$this->tabNaf21['1085Z']='151E';
$this->tabNaf21['1086Z']='158T';
$this->tabNaf21['1089Z']='158V';
$this->tabNaf21['1091Z']='157A';
$this->tabNaf21['1092Z']='157C';
$this->tabNaf21['1101Z']='159B';
$this->tabNaf21['1102A']='159F';
$this->tabNaf21['1102B']='159G';
$this->tabNaf21['1103Z']='159J';
$this->tabNaf21['1104Z']='159L';
$this->tabNaf21['1105Z']='159N';
$this->tabNaf21['1106Z']='159Q';
$this->tabNaf21['1107A']='159S';
$this->tabNaf21['1107B']='159T';
$this->tabNaf21['1200Z']='160Z';
$this->tabNaf21['1310Z']='171A';
$this->tabNaf21['1320Z']='172E';
$this->tabNaf21['1330Z']='173Z';
$this->tabNaf21['1391Z']='176Z';
$this->tabNaf21['1392Z']='174B';
$this->tabNaf21['1393Z']='175A';
$this->tabNaf21['1394Z']='175C';
$this->tabNaf21['1395Z']='175E';
$this->tabNaf21['1396Z']='175G';
$this->tabNaf21['1399Z']='175G';
$this->tabNaf21['1411Z']='181Z';
$this->tabNaf21['1412Z']='182A';
$this->tabNaf21['1413Z']='182C';
$this->tabNaf21['1414Z']='182G';
$this->tabNaf21['1419Z']='182J';
$this->tabNaf21['1420Z']='183Z';
$this->tabNaf21['1431Z']='177A';
$this->tabNaf21['1439Z']='177C';
$this->tabNaf21['1511Z']='191Z';
$this->tabNaf21['1512Z']='192Z';
$this->tabNaf21['1520Z']='193Z';
$this->tabNaf21['1610A']='201A';
$this->tabNaf21['1610B']='201B';
$this->tabNaf21['1621Z']='202Z';
$this->tabNaf21['1622Z']='203Z';
$this->tabNaf21['1623Z']='203Z';
$this->tabNaf21['1624Z']='204Z';
$this->tabNaf21['1629Z']='205C';
$this->tabNaf21['1711Z']='211A';
$this->tabNaf21['1712Z']='211C';
$this->tabNaf21['1721A']='212A';
$this->tabNaf21['1721B']='212B';
$this->tabNaf21['1721C']='212C';
$this->tabNaf21['1722Z']='212E';
$this->tabNaf21['1723Z']='212G';
$this->tabNaf21['1724Z']='212J';
$this->tabNaf21['1729Z']='212L';
$this->tabNaf21['1811Z']='222A';
$this->tabNaf21['1812Z']='222C';
$this->tabNaf21['1813Z']='222G';
$this->tabNaf21['1814Z']='222E';
$this->tabNaf21['1820Z']='223A';
$this->tabNaf21['1910Z']='231Z';
$this->tabNaf21['1920Z']='232Z';
$this->tabNaf21['2011Z']='241A';
$this->tabNaf21['2012Z']='241C';
$this->tabNaf21['2013A']='233Z';
$this->tabNaf21['2013B']='241E';
$this->tabNaf21['2014Z']='241G';
$this->tabNaf21['2015Z']='241J';
$this->tabNaf21['2016Z']='241L';
$this->tabNaf21['2017Z']='241N';
$this->tabNaf21['2020Z']='242Z';
$this->tabNaf21['2030Z']='243Z';
$this->tabNaf21['2041Z']='245A';
$this->tabNaf21['2042Z']='245C';
$this->tabNaf21['2051Z']='246A';
$this->tabNaf21['2052Z']='246C';
$this->tabNaf21['2053Z']='246E';
$this->tabNaf21['2059Z']='246G';
$this->tabNaf21['2060Z']='247Z';
$this->tabNaf21['2110Z']='244A';
$this->tabNaf21['2120Z']='244D';
$this->tabNaf21['2211Z']='251C';
$this->tabNaf21['2219Z']='251E';
$this->tabNaf21['2221Z']='252A';
$this->tabNaf21['2222Z']='252C';
$this->tabNaf21['2223Z']='252E';
$this->tabNaf21['2229A']='252H';
$this->tabNaf21['2229B']='252G';
$this->tabNaf21['2311Z']='261A';
$this->tabNaf21['2312Z']='261C';
$this->tabNaf21['2313Z']='261E';
$this->tabNaf21['2314Z']='261G';
$this->tabNaf21['2319Z']='261K';
$this->tabNaf21['2320Z']='262L';
$this->tabNaf21['2331Z']='263Z';
$this->tabNaf21['2332Z']='264B';
$this->tabNaf21['2341Z']='262A';
$this->tabNaf21['2342Z']='262C';
$this->tabNaf21['2343Z']='262E';
$this->tabNaf21['2344Z']='262G';
$this->tabNaf21['2349Z']='262J';
$this->tabNaf21['2351Z']='265A';
$this->tabNaf21['2352Z']='265C';
$this->tabNaf21['2361Z']='266A';
$this->tabNaf21['2362Z']='266C';
$this->tabNaf21['2363Z']='266E';
$this->tabNaf21['2364Z']='266G';
$this->tabNaf21['2365Z']='266J';
$this->tabNaf21['2369Z']='266L';
$this->tabNaf21['2370Z']='267Z';
$this->tabNaf21['2391Z']='268A';
$this->tabNaf21['2399Z']='268C';
$this->tabNaf21['2410Z']='271Y';
$this->tabNaf21['2420Z']='272C';
$this->tabNaf21['2431Z']='273A';
$this->tabNaf21['2432Z']='273C';
$this->tabNaf21['2433Z']='273E';
$this->tabNaf21['2434Z']='273G';
$this->tabNaf21['2441Z']='274A';
$this->tabNaf21['2442Z']='274C';
$this->tabNaf21['2443Z']='274F';
$this->tabNaf21['2444Z']='274J';
$this->tabNaf21['2445Z']='274M';
$this->tabNaf21['2446Z']='233Z';
$this->tabNaf21['2451Z']='272A';
$this->tabNaf21['2452Z']='275C';
$this->tabNaf21['2453Z']='275E';
$this->tabNaf21['2454Z']='275G';
$this->tabNaf21['2511Z']='281A';
$this->tabNaf21['2512Z']='281C';
$this->tabNaf21['2521Z']='282D';
$this->tabNaf21['2529Z']='282C';
$this->tabNaf21['2530Z']='283A';
$this->tabNaf21['2540Z']='296B';
$this->tabNaf21['2550A']='284A';
$this->tabNaf21['2550B']='284B';
$this->tabNaf21['2561Z']='285A';
$this->tabNaf21['2562A']='285C';
$this->tabNaf21['2562B']='285D';
$this->tabNaf21['2571Z']='286A';
$this->tabNaf21['2572Z']='286F';
$this->tabNaf21['2573A']='295N';
$this->tabNaf21['2573B']='286C';
$this->tabNaf21['2591Z']='287A';
$this->tabNaf21['2592Z']='287C';
$this->tabNaf21['2593Z']='287J';
$this->tabNaf21['2594Z']='287G';
$this->tabNaf21['2599A']='287L';
$this->tabNaf21['2599B']='287N';
$this->tabNaf21['2611Z']='321C';
$this->tabNaf21['2612Z']='321D';
$this->tabNaf21['2620Z']='300C';
$this->tabNaf21['2630Z']='322A';
$this->tabNaf21['2640Z']='323Z';
$this->tabNaf21['2651A']='332A';
$this->tabNaf21['2651B']='332B';
$this->tabNaf21['2652Z']='335Z';
$this->tabNaf21['2660Z']='331A';
$this->tabNaf21['2670Z']='334B';
$this->tabNaf21['2680Z']='246J';
$this->tabNaf21['2711Z']='311A';
$this->tabNaf21['2712Z']='312B';
$this->tabNaf21['2720Z']='314Z';
$this->tabNaf21['2731Z']='313Z';
$this->tabNaf21['2732Z']='313Z';
$this->tabNaf21['2733Z']='312A';
$this->tabNaf21['2740Z']='315A';
$this->tabNaf21['2751Z']='297A';
$this->tabNaf21['2752Z']='297C';
$this->tabNaf21['2790Z']='316C';
$this->tabNaf21['2811Z']='291A';
$this->tabNaf21['2812Z']='291D';
$this->tabNaf21['2813Z']='291B';
$this->tabNaf21['2814Z']='291F';
$this->tabNaf21['2815Z']='291H';
$this->tabNaf21['2821Z']='292A';
$this->tabNaf21['2822Z']='292D';
$this->tabNaf21['2823Z']='300A';
$this->tabNaf21['2824Z']='294C';
$this->tabNaf21['2825Z']='292F';
$this->tabNaf21['2829A']='292H';
$this->tabNaf21['2829B']='292L';
$this->tabNaf21['2830Z']='293D';
$this->tabNaf21['2841Z']='294A';
$this->tabNaf21['2849Z']='294E';
$this->tabNaf21['2891Z']='295A';
$this->tabNaf21['2892Z']='295B';
$this->tabNaf21['2893Z']='295E';
$this->tabNaf21['2894Z']='295G';
$this->tabNaf21['2895Z']='295J';
$this->tabNaf21['2896Z']='295M';
$this->tabNaf21['2899A']='295L';
$this->tabNaf21['2899B']='295Q';
$this->tabNaf21['2910Z']='341Z';
$this->tabNaf21['2920Z']='342B';
$this->tabNaf21['2931Z']='316A';
$this->tabNaf21['2932Z']='343Z';
$this->tabNaf21['3011Z']='351B';
$this->tabNaf21['3012Z']='351E';
$this->tabNaf21['3020Z']='352Z';
$this->tabNaf21['3030Z']='353C';
$this->tabNaf21['3040Z']='296A';
$this->tabNaf21['3091Z']='354A';
$this->tabNaf21['3092Z']='354C';
$this->tabNaf21['3099Z']='355Z';
$this->tabNaf21['3101Z']='361C';
$this->tabNaf21['3102Z']='361E';
$this->tabNaf21['3103Z']='361M';
$this->tabNaf21['3109A']='361A';
$this->tabNaf21['3109B']='361H';
$this->tabNaf21['3211Z']='362A';
$this->tabNaf21['3212Z']='362C';
$this->tabNaf21['3213Z']='366A';
$this->tabNaf21['3220Z']='363Z';
$this->tabNaf21['3230Z']='364Z';
$this->tabNaf21['3240Z']='365Z';
$this->tabNaf21['3250A']='331B';
$this->tabNaf21['3250B']='334A';
$this->tabNaf21['3291Z']='366C';
$this->tabNaf21['3299Z']='366E';
$this->tabNaf21['3311Z']='286D';
$this->tabNaf21['3312Z']='293C';
$this->tabNaf21['3313Z']='331A';
$this->tabNaf21['3314Z']='311C';
$this->tabNaf21['3315Z']='351C';
$this->tabNaf21['3316Z']='353B';
$this->tabNaf21['3317Z']='352Z';
$this->tabNaf21['3319Z']='363Z';
$this->tabNaf21['3320A']='283C';
$this->tabNaf21['3320B']='292F';
$this->tabNaf21['3320C']='333Z';
$this->tabNaf21['3320D']='322B';
$this->tabNaf21['3511Z']='401A';
$this->tabNaf21['3512Z']='401C';
$this->tabNaf21['3513Z']='401E';
$this->tabNaf21['3514Z']='401E';
$this->tabNaf21['3521Z']='402A';
$this->tabNaf21['3522Z']='402C';
$this->tabNaf21['3523Z']='402C';
$this->tabNaf21['3530Z']='403Z';
$this->tabNaf21['3600Z']='410Z';
$this->tabNaf21['3700Z']='900A';
$this->tabNaf21['3811Z']='900B';
$this->tabNaf21['3812Z']='900E';
$this->tabNaf21['3821Z']='900B';
$this->tabNaf21['3822Z']='900E';
$this->tabNaf21['3831Z']='371Z';
$this->tabNaf21['3832Z']='372Z';
$this->tabNaf21['3900Z']='900G';
$this->tabNaf21['4110A']='701A';
$this->tabNaf21['4110B']='701B';
$this->tabNaf21['4110C']='701C';
$this->tabNaf21['4110D']='701D';
$this->tabNaf21['4120A']='452A';
$this->tabNaf21['4120B']='452B';
$this->tabNaf21['4211Z']='452P';
$this->tabNaf21['4212Z']='452N';
$this->tabNaf21['4213A']='452C';
$this->tabNaf21['4213B']='452D';
$this->tabNaf21['4221Z']='452E';
$this->tabNaf21['4222Z']='452F';
$this->tabNaf21['4291Z']='452R';
$this->tabNaf21['4299Z']='701C';
$this->tabNaf21['4311Z']='451A';
$this->tabNaf21['4312A']='451A';
$this->tabNaf21['4312B']='451B';
$this->tabNaf21['4313Z']='451D';
$this->tabNaf21['4321A']='453A';
$this->tabNaf21['4321B']='453H';
$this->tabNaf21['4322A']='453E';
$this->tabNaf21['4322B']='453F';
$this->tabNaf21['4329A']='453C';
$this->tabNaf21['4329B']='453H';
$this->tabNaf21['4331Z']='454A';
$this->tabNaf21['4332A']='454C';
$this->tabNaf21['4332B']='454D';
$this->tabNaf21['4332C']='454L';
$this->tabNaf21['4333Z']='454F';
$this->tabNaf21['4334Z']='454J';
$this->tabNaf21['4339Z']='454M';
$this->tabNaf21['4391A']='452L';
$this->tabNaf21['4391B']='452J';
$this->tabNaf21['4399A']='452K';
$this->tabNaf21['4399B']='452T';
$this->tabNaf21['4399C']='452V';
$this->tabNaf21['4399D']='452U';
$this->tabNaf21['4399E']='455Z';
$this->tabNaf21['4511Z']='501Z';
$this->tabNaf21['4519Z']='501Z';
$this->tabNaf21['4520A']='502Z';
$this->tabNaf21['4520B']='502Z';
$this->tabNaf21['4531Z']='503A';
$this->tabNaf21['4532Z']='503B';
$this->tabNaf21['4540Z']='504Z';
$this->tabNaf21['4611Z']='511A';
$this->tabNaf21['4612A']='511U';
$this->tabNaf21['4612B']='511C';
$this->tabNaf21['4613Z']='511E';
$this->tabNaf21['4614Z']='511G';
$this->tabNaf21['4615Z']='511J';
$this->tabNaf21['4616Z']='511L';
$this->tabNaf21['4617A']='511P';
$this->tabNaf21['4617B']='511N';
$this->tabNaf21['4618Z']='511R';
$this->tabNaf21['4619A']='511U';
$this->tabNaf21['4619B']='511T';
$this->tabNaf21['4621Z']='512J';
$this->tabNaf21['4622Z']='512C';
$this->tabNaf21['4623Z']='512E';
$this->tabNaf21['4624Z']='512G';
$this->tabNaf21['4631Z']='513A';
$this->tabNaf21['4632A']='513C';
$this->tabNaf21['4632B']='513D';
$this->tabNaf21['4632C']='513E';
$this->tabNaf21['4633Z']='513G';
$this->tabNaf21['4634Z']='513J';
$this->tabNaf21['4635Z']='513L';
$this->tabNaf21['4636Z']='513N';
$this->tabNaf21['4637Z']='513Q';
$this->tabNaf21['4638A']='513S';
$this->tabNaf21['4638B']='513T';
$this->tabNaf21['4639A']='513V';
$this->tabNaf21['4639B']='513W';
$this->tabNaf21['4641Z']='514A';
$this->tabNaf21['4642Z']='514C';
$this->tabNaf21['4643Z']='514F';
$this->tabNaf21['4644Z']='514J';
$this->tabNaf21['4645Z']='514L';
$this->tabNaf21['4646Z']='514N';
$this->tabNaf21['4647Z']='514F';
$this->tabNaf21['4648Z']='514S';
$this->tabNaf21['4649Z']='514Q';
$this->tabNaf21['4651Z']='518G';
$this->tabNaf21['4652Z']='518J';
$this->tabNaf21['4661Z']='518P';
$this->tabNaf21['4662Z']='518A';
$this->tabNaf21['4663Z']='518C';
$this->tabNaf21['4664Z']='518E';
$this->tabNaf21['4665Z']='518H';
$this->tabNaf21['4666Z']='518H';
$this->tabNaf21['4669A']='518L';
$this->tabNaf21['4669B']='518M';
$this->tabNaf21['4669C']='518N';
$this->tabNaf21['4671Z']='515A';
$this->tabNaf21['4672Z']='515C';
$this->tabNaf21['4673A']='515E';
$this->tabNaf21['4673B']='515F';
$this->tabNaf21['4674A']='515H';
$this->tabNaf21['4674B']='515J';
$this->tabNaf21['4675Z']='515L';
$this->tabNaf21['4676Z']='515N';
$this->tabNaf21['4677Z']='515Q';
$this->tabNaf21['4690Z']='519B';
$this->tabNaf21['4711A']='521A';
$this->tabNaf21['4711B']='521B';
$this->tabNaf21['4711C']='521C';
$this->tabNaf21['4711D']='521D';
$this->tabNaf21['4711E']='521E';
$this->tabNaf21['4711F']='521F';
$this->tabNaf21['4719A']='521H';
$this->tabNaf21['4719B']='521J';
$this->tabNaf21['4721Z']='522A';
$this->tabNaf21['4722Z']='522C';
$this->tabNaf21['4723Z']='522E';
$this->tabNaf21['4724Z']='522G';
$this->tabNaf21['4725Z']='522J';
$this->tabNaf21['4726Z']='522L';
$this->tabNaf21['4729Z']='522N';
$this->tabNaf21['4730Z']='505Z';
$this->tabNaf21['4741Z']='524Z';
$this->tabNaf21['4742Z']='524Z';
$this->tabNaf21['4743Z']='524L';
$this->tabNaf21['4751Z']='524A';
$this->tabNaf21['4752A']='524N';
$this->tabNaf21['4752B']='524P';
$this->tabNaf21['4753Z']='524U';
$this->tabNaf21['4754Z']='524L';
$this->tabNaf21['4759A']='524H';
$this->tabNaf21['4759B']='524J';
$this->tabNaf21['4761Z']='524R';
$this->tabNaf21['4762Z']='524R';
$this->tabNaf21['4763Z']='524L';
$this->tabNaf21['4764Z']='524W';
$this->tabNaf21['4765Z']='524Z';
$this->tabNaf21['4771Z']='524C';
$this->tabNaf21['4772A']='524E';
$this->tabNaf21['4772B']='524F';
$this->tabNaf21['4773Z']='523A';
$this->tabNaf21['4774Z']='523C';
$this->tabNaf21['4775Z']='523E';
$this->tabNaf21['4776Z']='524X';
$this->tabNaf21['4777Z']='524V';
$this->tabNaf21['4778A']='524T';
$this->tabNaf21['4778B']='524Y';
$this->tabNaf21['4778C']='524Z';
$this->tabNaf21['4779Z']='525Z';
$this->tabNaf21['4781Z']='526D';
$this->tabNaf21['4782Z']='526E';
$this->tabNaf21['4789Z']='526E';
$this->tabNaf21['4791A']='526A';
$this->tabNaf21['4791B']='526B';
$this->tabNaf21['4799A']='526G';
$this->tabNaf21['4799B']='526H';
$this->tabNaf21['4910Z']='601Z';
$this->tabNaf21['4920Z']='601Z';
$this->tabNaf21['4931Z']='602A';
$this->tabNaf21['4932Z']='602E';
$this->tabNaf21['4939A']='602B';
$this->tabNaf21['4939B']='602G';
$this->tabNaf21['4939C']='602C';
$this->tabNaf21['4941A']='602M';
$this->tabNaf21['4941B']='602L';
$this->tabNaf21['4941C']='602P';
$this->tabNaf21['4942Z']='602N';
$this->tabNaf21['4950Z']='603Z';
$this->tabNaf21['5010Z']='611B';
$this->tabNaf21['5020Z']='611A';
$this->tabNaf21['5030Z']='612Z';
$this->tabNaf21['5040Z']='612Z';
$this->tabNaf21['5110Z']='621Z';
$this->tabNaf21['5121Z']='622Z';
$this->tabNaf21['5122Z']='623Z';
$this->tabNaf21['5210A']='631D';
$this->tabNaf21['5210B']='631E';
$this->tabNaf21['5221Z']='632A';
$this->tabNaf21['5222Z']='632C';
$this->tabNaf21['5223Z']='632E';
$this->tabNaf21['5224A']='631A';
$this->tabNaf21['5224B']='631B';
$this->tabNaf21['5229A']='634A';
$this->tabNaf21['5229B']='634B';
$this->tabNaf21['5310Z']='641A';
$this->tabNaf21['5320Z']='641C';
$this->tabNaf21['5510Z']='551C';
$this->tabNaf21['5520Z']='552E';
$this->tabNaf21['5530Z']='552C';
$this->tabNaf21['5590Z']='552F';
$this->tabNaf21['5610A']='553A';
$this->tabNaf21['5610B']='553A';
$this->tabNaf21['5610C']='553B';
$this->tabNaf21['5621Z']='555D';
$this->tabNaf21['5629A']='555C';
$this->tabNaf21['5629B']='555A';
$this->tabNaf21['5630Z']='554A';
$this->tabNaf21['5811Z']='221A';
$this->tabNaf21['5812Z']='724Z';
$this->tabNaf21['5813Z']='221C';
$this->tabNaf21['5814Z']='221E';
$this->tabNaf21['5819Z']='221J';
$this->tabNaf21['5821Z']='722A';
$this->tabNaf21['5829A']='722A';
$this->tabNaf21['5829B']='722A';
$this->tabNaf21['5829C']='722A';
$this->tabNaf21['5911A']='921A';
$this->tabNaf21['5911B']='921B';
$this->tabNaf21['5911C']='921C';
$this->tabNaf21['5912Z']='921D';
$this->tabNaf21['5913A']='921F';
$this->tabNaf21['5913B']='921G';
$this->tabNaf21['5914Z']='921J';
$this->tabNaf21['5920Z']='221G';
$this->tabNaf21['6010Z']='922A';
$this->tabNaf21['6020A']='922D';
$this->tabNaf21['6020B']='922E';
$this->tabNaf21['6110Z']='642D';
$this->tabNaf21['6120Z']='642C';
$this->tabNaf21['6130Z']='922F';
$this->tabNaf21['6190Z']='642C';
$this->tabNaf21['6201Z']='722C';
$this->tabNaf21['6202A']='721Z';
$this->tabNaf21['6202B']='722C';
$this->tabNaf21['6203Z']='723Z';
$this->tabNaf21['6209Z']='726Z';
$this->tabNaf21['6311Z']='723Z';
$this->tabNaf21['6312Z']='724Z';
$this->tabNaf21['6321Z']='924Z';
$this->tabNaf21['6399Z']='748K';
$this->tabNaf21['6411Z']='651A';
$this->tabNaf21['6419Z']='651E';
$this->tabNaf21['6420Z']='741J';
$this->tabNaf21['6430Z']='652E';
$this->tabNaf21['6491Z']='652A';
$this->tabNaf21['6492Z']='652C';
$this->tabNaf21['6499Z']='652F';
$this->tabNaf21['6511Z']='660A';
$this->tabNaf21['6512Z']='660E';
$this->tabNaf21['6520Z']='660F';
$this->tabNaf21['6530Z']='660C';
$this->tabNaf21['6611Z']='671A';
$this->tabNaf21['6612Z']='671C';
$this->tabNaf21['6619A']='703E';
$this->tabNaf21['6619B']='671E';
$this->tabNaf21['6621Z']='672Z';
$this->tabNaf21['6622Z']='672Z';
$this->tabNaf21['6629Z']='672Z';
$this->tabNaf21['6630Z']='671C';
$this->tabNaf21['6810Z']='701F';
$this->tabNaf21['6820A']='702A';
$this->tabNaf21['6820B']='702B';
$this->tabNaf21['6831Z']='703A';
$this->tabNaf21['6832A']='703C';
$this->tabNaf21['6832B']='703E';
$this->tabNaf21['6910Z']='741A';
$this->tabNaf21['6920Z']='741C';
$this->tabNaf21['7010Z']='741J';
$this->tabNaf21['7021Z']='741G';
$this->tabNaf21['7022Z']='741G';
$this->tabNaf21['7111Z']='742A';
$this->tabNaf21['7112A']='742B';
$this->tabNaf21['7112B']='742C';
$this->tabNaf21['7120A']='743A';
$this->tabNaf21['7120B']='743B';
$this->tabNaf21['7211Z']='731Z';
$this->tabNaf21['7219Z']='731Z';
$this->tabNaf21['7220Z']='732Z';
$this->tabNaf21['7311Z']='744B';
$this->tabNaf21['7312Z']='744A';
$this->tabNaf21['7320Z']='741E';
$this->tabNaf21['7410Z']='748K';
$this->tabNaf21['7420Z']='748B';
$this->tabNaf21['7430Z']='748F';
$this->tabNaf21['7490A']='742B';
$this->tabNaf21['7490B']='742C';
$this->tabNaf21['7500Z']='852Z';
$this->tabNaf21['7711A']='711A';
$this->tabNaf21['7711B']='711B';
$this->tabNaf21['7712Z']='712A';
$this->tabNaf21['7721Z']='714B';
$this->tabNaf21['7722Z']='714B';
$this->tabNaf21['7729Z']='714A';
$this->tabNaf21['7731Z']='713A';
$this->tabNaf21['7732Z']='713C';
$this->tabNaf21['7733Z']='713E';
$this->tabNaf21['7734Z']='712C';
$this->tabNaf21['7735Z']='712E';
$this->tabNaf21['7739Z']='713G';
$this->tabNaf21['7740Z']='748K';
$this->tabNaf21['7810Z']='745A';
$this->tabNaf21['7820Z']='745B';
$this->tabNaf21['7830Z']='745A';
$this->tabNaf21['7911Z']='633Z';
$this->tabNaf21['7912Z']='633Z';
$this->tabNaf21['7990Z']='633Z';
$this->tabNaf21['8010Z']='746Z';
$this->tabNaf21['8020Z']='746Z';
$this->tabNaf21['8030Z']='746Z';
$this->tabNaf21['8110Z']='703D';
$this->tabNaf21['8121Z']='747Z';
$this->tabNaf21['8122Z']='747Z';
$this->tabNaf21['8129A']='747Z';
$this->tabNaf21['8129B']='900G';
$this->tabNaf21['8211Z']='748F';
$this->tabNaf21['8219Z']='748G';
$this->tabNaf21['8220Z']='748H';
$this->tabNaf21['8230Z']='748J';
$this->tabNaf21['8291Z']='748K';
$this->tabNaf21['8292Z']='748D';
$this->tabNaf21['8299Z']='748K';
$this->tabNaf21['8411Z']='751A';
$this->tabNaf21['8412Z']='751C';
$this->tabNaf21['8413Z']='751E';
$this->tabNaf21['8421Z']='752A';
$this->tabNaf21['8422Z']='752C';
$this->tabNaf21['8423Z']='752E';
$this->tabNaf21['8425Z']='752J';
$this->tabNaf21['8430A']='753A';
$this->tabNaf21['8430B']='753B';
$this->tabNaf21['8510Z']='801Z';
$this->tabNaf21['8520Z']='801Z';
$this->tabNaf21['8531Z']='802A';
$this->tabNaf21['8532Z']='802C';
$this->tabNaf21['8541Z']='803Z';
$this->tabNaf21['8542Z']='803Z';
$this->tabNaf21['8551Z']='926C';
$this->tabNaf21['8552Z']='804D';
$this->tabNaf21['8553Z']='804A';
$this->tabNaf21['8559A']='804C';
$this->tabNaf21['8559B']='804D';
$this->tabNaf21['8560Z']='741G';
$this->tabNaf21['8610Z']='851A';
$this->tabNaf21['8621Z']='851C';
$this->tabNaf21['8622A']='851C';
$this->tabNaf21['8622B']='851C';
$this->tabNaf21['8622C']='851C';
$this->tabNaf21['8623Z']='851E';
$this->tabNaf21['8690A']='851J';
$this->tabNaf21['8690B']='851K';
$this->tabNaf21['8690C']='851L';
$this->tabNaf21['8690D']='851G';
$this->tabNaf21['8690E']='851G';
$this->tabNaf21['8690F']='851G';
$this->tabNaf21['8710A']='851G';
$this->tabNaf21['8710B']='853A';
$this->tabNaf21['8710C']='851G';
$this->tabNaf21['8720A']='851G';
$this->tabNaf21['8720B']='851A';
$this->tabNaf21['8730A']='853D';
$this->tabNaf21['8730B']='851G';
$this->tabNaf21['8790A']='853B';
$this->tabNaf21['8790B']='853E';
$this->tabNaf21['8810A']='853J';
$this->tabNaf21['8810B']='853J';
$this->tabNaf21['8810C']='853H';
$this->tabNaf21['8891A']='853G';
$this->tabNaf21['8891B']='853A';
$this->tabNaf21['8899A']='853B';
$this->tabNaf21['8899B']='853K';
$this->tabNaf21['9001Z']='923K';
$this->tabNaf21['9002Z']='923B';
$this->tabNaf21['9003A']='923A';
$this->tabNaf21['9003B']='923A';
$this->tabNaf21['9004Z']='923D';
$this->tabNaf21['9101Z']='925A';
$this->tabNaf21['9102Z']='925C';
$this->tabNaf21['9103Z']='925C';
$this->tabNaf21['9104Z']='925E';
$this->tabNaf21['9200Z']='927A';
$this->tabNaf21['9311Z']='926A';
$this->tabNaf21['9312Z']='926C';
$this->tabNaf21['9313Z']='930L';
$this->tabNaf21['9319Z']='926C';
$this->tabNaf21['9321Z']='923F';
$this->tabNaf21['9329Z']='923K';
$this->tabNaf21['9411Z']='911A';
$this->tabNaf21['9412Z']='911C';
$this->tabNaf21['9420Z']='912Z';
$this->tabNaf21['9491Z']='913A';
$this->tabNaf21['9492Z']='913C';
$this->tabNaf21['9499Z']='913E';
$this->tabNaf21['9511Z']='725Z';
$this->tabNaf21['9512Z']='323Z';
$this->tabNaf21['9521Z']='527C';
$this->tabNaf21['9522Z']='527D';
$this->tabNaf21['9523Z']='527A';
$this->tabNaf21['9524Z']='361A';
$this->tabNaf21['9525Z']='527F';
$this->tabNaf21['9529Z']='527H';
$this->tabNaf21['9601A']='930A';
$this->tabNaf21['9601B']='930B';
$this->tabNaf21['9602A']='930D';
$this->tabNaf21['9602B']='930E';
$this->tabNaf21['9603Z']='930G';
$this->tabNaf21['9604Z']='930K';
$this->tabNaf21['9609Z']='930N';
$this->tabNaf21['9900Z']='990Z';
/** Tableau des CA moyens / Salariés, Pondérations et effectifs moyens
**/
$this->tabMedians=array('000Z'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>22),
'011A'=>array('CAm'=>240, 'Coef'=>15, 'YPm'=>7),
'011C'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>16),
'011D'=>array('CAm'=>60, 'Coef'=>15, 'YPm'=>14),
'011F'=>array('CAm'=>50, 'Coef'=>15, 'YPm'=>19),
'011G'=>array('CAm'=>30, 'Coef'=>15, 'YPm'=>8),
'012A'=>array('CAm'=>250, 'Coef'=>-50, 'YPm'=>91),
'012C'=>array('CAm'=>40, 'Coef'=>15, 'YPm'=>2),
'012E'=>array('CAm'=>80, 'Coef'=>15, 'YPm'=>4),
'012G'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>21),
'012J'=>array('CAm'=>60, 'Coef'=>15, 'YPm'=>6),
'013Z'=>array('CAm'=>140, 'Coef'=>15, 'YPm'=>3),
'014A'=>array('CAm'=>110, 'Coef'=>15, 'YPm'=>3),
'014B'=>array('CAm'=>30, 'Coef'=>0, 'YPm'=>7),
'014D'=>array('CAm'=>120, 'Coef'=>-50, 'YPm'=>12),
'015Z'=>array('CAm'=>30, 'Coef'=>15, 'YPm'=>1),
'020A'=>array('CAm'=>340, 'Coef'=>0, 'YPm'=>5),
'020B'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>5),
'020D'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>3),
'050A'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>9),
'050C'=>array('CAm'=>50, 'Coef'=>0, 'YPm'=>7),
'101Z'=>array('CAm'=>30, 'Coef'=>0, 'YPm'=>984),
'103Z'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>11),
'111Z'=>array('CAm'=>150, 'Coef'=>30, 'YPm'=>73),
'112Z'=>array('CAm'=>230, 'Coef'=>30, 'YPm'=>11),
'120Z'=>array('CAm'=>1050, 'Coef'=>50, 'YPm'=>3),
'131Z'=>array('CAm'=>20, 'Coef'=>50, 'YPm'=>1),
'132Z'=>array('CAm'=>220, 'Coef'=>50, 'YPm'=>20),
'141A'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>10),
'141C'=>array('CAm'=>280, 'Coef'=>0, 'YPm'=>29),
'141E'=>array('CAm'=>150, 'Coef'=>0, 'YPm'=>64),
'142A'=>array('CAm'=>190, 'Coef'=>30, 'YPm'=>20),
'142C'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>75),
'143Z'=>array('CAm'=>210, 'Coef'=>30, 'YPm'=>8),
'144Z'=>array('CAm'=>180, 'Coef'=>30, 'YPm'=>76),
'145Z'=>array('CAm'=>760, 'Coef'=>30, 'YPm'=>30),
'151A'=>array('CAm'=>650, 'Coef'=>-50, 'YPm'=>70),
'151C'=>array('CAm'=>2310, 'Coef'=>30, 'YPm'=>114),
'151E'=>array('CAm'=>11690, 'Coef'=>-50, 'YPm'=>34),
'151F'=>array('CAm'=>910, 'Coef'=>0, 'YPm'=>5),
'152Z'=>array('CAm'=>970, 'Coef'=>0, 'YPm'=>43),
'153A'=>array('CAm'=>670, 'Coef'=>0, 'YPm'=>26),
'153C'=>array('CAm'=>530, 'Coef'=>0, 'YPm'=>20),
'153E'=>array('CAm'=>390, 'Coef'=>0, 'YPm'=>98),
'153F'=>array('CAm'=>640, 'Coef'=>0, 'YPm'=>23),
'154A'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>19),
'154C'=>array('CAm'=>200, 'Coef'=>0, 'YPm'=>46),
'154E'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>0),
'155A'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>154),
'155B'=>array('CAm'=>2310, 'Coef'=>0, 'YPm'=>114),
'155C'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>68),
'155D'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>66),
'155F'=>array('CAm'=>1600, 'Coef'=>0, 'YPm'=>35),
'156A'=>array('CAm'=>3010, 'Coef'=>30, 'YPm'=>17),
'156B'=>array('CAm'=>240, 'Coef'=>30, 'YPm'=>51),
'156D'=>array('CAm'=>270, 'Coef'=>30, 'YPm'=>282),
'157A'=>array('CAm'=>660, 'Coef'=>-50, 'YPm'=>34),
'157C'=>array('CAm'=>520, 'Coef'=>30, 'YPm'=>78),
'158A'=>array('CAm'=>2350, 'Coef'=>0, 'YPm'=>55),
'158B'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>5),
'158C'=>array('CAm'=>230, 'Coef'=>0, 'YPm'=>6),
'158D'=>array('CAm'=>450, 'Coef'=>0, 'YPm'=>6),
'158F'=>array('CAm'=>90, 'Coef'=>30, 'YPm'=>53),
'158H'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>260),
'158K'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>36),
'158M'=>array('CAm'=>310, 'Coef'=>30, 'YPm'=>30),
'158P'=>array('CAm'=>300, 'Coef'=>0, 'YPm'=>17),
'158R'=>array('CAm'=>520, 'Coef'=>0, 'YPm'=>57),
'158T'=>array('CAm'=>620, 'Coef'=>0, 'YPm'=>84),
'158V'=>array('CAm'=>2470, 'Coef'=>0, 'YPm'=>29),
'159A'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>17),
'159B'=>array('CAm'=>230, 'Coef'=>0, 'YPm'=>46),
'159D'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>16),
'159F'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>26),
'159G'=>array('CAm'=>530, 'Coef'=>15, 'YPm'=>10),
'159J'=>array('CAm'=>1060, 'Coef'=>0, 'YPm'=>14),
'159L'=>array('CAm'=>1250, 'Coef'=>0, 'YPm'=>22),
'159N'=>array('CAm'=>1180, 'Coef'=>0, 'YPm'=>53),
'159Q'=>array('CAm'=>1090, 'Coef'=>30, 'YPm'=>101),
'159S'=>array('CAm'=>1040, 'Coef'=>0, 'YPm'=>64),
'159T'=>array('CAm'=>950, 'Coef'=>0, 'YPm'=>116),
'160Z'=>array('CAm'=>490, 'Coef'=>0, 'YPm'=>714),
'171A'=>array('CAm'=>580, 'Coef'=>0, 'YPm'=>41),
'171C'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>17),
'171E'=>array('CAm'=>310, 'Coef'=>0, 'YPm'=>12),
'171F'=>array('CAm'=>340, 'Coef'=>0, 'YPm'=>71),
'171H'=>array('CAm'=>300, 'Coef'=>0, 'YPm'=>33),
'171K'=>array('CAm'=>540, 'Coef'=>0, 'YPm'=>37),
'171M'=>array('CAm'=>510, 'Coef'=>0, 'YPm'=>82),
'171P'=>array('CAm'=>690, 'Coef'=>0, 'YPm'=>8),
'172A'=>array('CAm'=>160, 'Coef'=>0, 'YPm'=>27),
'172C'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>105),
'172E'=>array('CAm'=>200, 'Coef'=>0, 'YPm'=>179),
'172G'=>array('CAm'=>560, 'Coef'=>0, 'YPm'=>26),
'172J'=>array('CAm'=>160, 'Coef'=>0, 'YPm'=>41),
'173Z'=>array('CAm'=>790, 'Coef'=>0, 'YPm'=>29),
'174A'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>19),
'174B'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>34),
'174C'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>15),
'175A'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>130),
'175C'=>array('CAm'=>350, 'Coef'=>0, 'YPm'=>19),
'175E'=>array('CAm'=>18550, 'Coef'=>0, 'YPm'=>99),
'175G'=>array('CAm'=>50, 'Coef'=>0, 'YPm'=>35),
'176Z'=>array('CAm'=>6030, 'Coef'=>0, 'YPm'=>21),
'177A'=>array('CAm'=>1630, 'Coef'=>0, 'YPm'=>209),
'177C'=>array('CAm'=>550, 'Coef'=>0, 'YPm'=>28),
'181Z'=>array('CAm'=>1300, 'Coef'=>0, 'YPm'=>10),
'182A'=>array('CAm'=>740, 'Coef'=>0, 'YPm'=>26),
'182C'=>array('CAm'=>1650, 'Coef'=>0, 'YPm'=>8),
'182D'=>array('CAm'=>900, 'Coef'=>0, 'YPm'=>21),
'182E'=>array('CAm'=>270, 'Coef'=>0, 'YPm'=>17),
'182G'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>58),
'182J'=>array('CAm'=>1230, 'Coef'=>0, 'YPm'=>20),
'183Z'=>array('CAm'=>370, 'Coef'=>0, 'YPm'=>7),
'191Z'=>array('CAm'=>1090, 'Coef'=>0, 'YPm'=>21),
'192Z'=>array('CAm'=>400, 'Coef'=>0, 'YPm'=>33),
'193Z'=>array('CAm'=>600, 'Coef'=>0, 'YPm'=>52),
'201A'=>array('CAm'=>1980, 'Coef'=>30, 'YPm'=>13),
'201B'=>array('CAm'=>1450, 'Coef'=>30, 'YPm'=>9),
'202Z'=>array('CAm'=>1160, 'Coef'=>0, 'YPm'=>67),
'203Z'=>array('CAm'=>970, 'Coef'=>30, 'YPm'=>21),
'204Z'=>array('CAm'=>1220, 'Coef'=>30, 'YPm'=>23),
'205A'=>array('CAm'=>1330, 'Coef'=>30, 'YPm'=>10),
'205C'=>array('CAm'=>430, 'Coef'=>0, 'YPm'=>17),
'211A'=>array('CAm'=>820, 'Coef'=>0, 'YPm'=>200),
'211C'=>array('CAm'=>1290, 'Coef'=>0, 'YPm'=>168),
'212A'=>array('CAm'=>500, 'Coef'=>0, 'YPm'=>90),
'212B'=>array('CAm'=>370, 'Coef'=>0, 'YPm'=>37),
'212C'=>array('CAm'=>440, 'Coef'=>0, 'YPm'=>43),
'212E'=>array('CAm'=>560, 'Coef'=>0, 'YPm'=>288),
'212G'=>array('CAm'=>770, 'Coef'=>0, 'YPm'=>33),
'212J'=>array('CAm'=>700, 'Coef'=>0, 'YPm'=>95),
'212L'=>array('CAm'=>570, 'Coef'=>0, 'YPm'=>23),
'221A'=>array('CAm'=>870, 'Coef'=>0, 'YPm'=>10),
'221C'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>48),
'221E'=>array('CAm'=>510, 'Coef'=>0, 'YPm'=>17),
'221G'=>array('CAm'=>330, 'Coef'=>0, 'YPm'=>4),
'221J'=>array('CAm'=>280, 'Coef'=>0, 'YPm'=>5),
'222A'=>array('CAm'=>320, 'Coef'=>0, 'YPm'=>39),
'222C'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>15),
'222E'=>array('CAm'=>34070, 'Coef'=>0, 'YPm'=>24),
'222G'=>array('CAm'=>810, 'Coef'=>0, 'YPm'=>7),
'222J'=>array('CAm'=>1390, 'Coef'=>0, 'YPm'=>4),
'223A'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>7),
'223C'=>array('CAm'=>950, 'Coef'=>0, 'YPm'=>14),
'223E'=>array('CAm'=>860, 'Coef'=>0, 'YPm'=>3),
'231Z'=>array('CAm'=>600, 'Coef'=>0, 'YPm'=>64),
'232Z'=>array('CAm'=>3800, 'Coef'=>30, 'YPm'=>200),
'233Z'=>array('CAm'=>1480, 'Coef'=>30, 'YPm'=>186),
'241A'=>array('CAm'=>1710, 'Coef'=>30, 'YPm'=>362),
'241C'=>array('CAm'=>820, 'Coef'=>30, 'YPm'=>123),
'241E'=>array('CAm'=>5570, 'Coef'=>30, 'YPm'=>55),
'241G'=>array('CAm'=>550, 'Coef'=>30, 'YPm'=>163),
'241J'=>array('CAm'=>400, 'Coef'=>30, 'YPm'=>38),
'241L'=>array('CAm'=>380, 'Coef'=>30, 'YPm'=>103),
'241N'=>array('CAm'=>660, 'Coef'=>30, 'YPm'=>120),
'242Z'=>array('CAm'=>3200, 'Coef'=>30, 'YPm'=>74),
'243Z'=>array('CAm'=>750, 'Coef'=>30, 'YPm'=>59),
'244A'=>array('CAm'=>680, 'Coef'=>30, 'YPm'=>202),
'244C'=>array('CAm'=>1210, 'Coef'=>0, 'YPm'=>323),
'244D'=>array('CAm'=>450, 'Coef'=>0, 'YPm'=>105),
'245A'=>array('CAm'=>1520, 'Coef'=>30, 'YPm'=>47),
'245C'=>array('CAm'=>640, 'Coef'=>30, 'YPm'=>94),
'246A'=>array('CAm'=>710, 'Coef'=>30, 'YPm'=>168),
'246C'=>array('CAm'=>1050, 'Coef'=>30, 'YPm'=>125),
'246E'=>array('CAm'=>1050, 'Coef'=>30, 'YPm'=>40),
'246G'=>array('CAm'=>710, 'Coef'=>30, 'YPm'=>149),
'246J'=>array('CAm'=>740, 'Coef'=>0, 'YPm'=>22),
'246L'=>array('CAm'=>870, 'Coef'=>30, 'YPm'=>59),
'247Z'=>array('CAm'=>950, 'Coef'=>0, 'YPm'=>148),
'251A'=>array('CAm'=>770, 'Coef'=>0, 'YPm'=>1529),
'251C'=>array('CAm'=>650, 'Coef'=>0, 'YPm'=>8),
'251E'=>array('CAm'=>510, 'Coef'=>0, 'YPm'=>93),
'252A'=>array('CAm'=>490, 'Coef'=>0, 'YPm'=>55),
'252C'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>65),
'252E'=>array('CAm'=>500, 'Coef'=>0, 'YPm'=>42),
'252G'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>20),
'252H'=>array('CAm'=>730, 'Coef'=>0, 'YPm'=>56),
'261A'=>array('CAm'=>230, 'Coef'=>0, 'YPm'=>159),
'261C'=>array('CAm'=>340, 'Coef'=>30, 'YPm'=>35),
'261E'=>array('CAm'=>300, 'Coef'=>30, 'YPm'=>229),
'261G'=>array('CAm'=>440, 'Coef'=>0, 'YPm'=>241),
'261J'=>array('CAm'=>190, 'Coef'=>30, 'YPm'=>21),
'261K'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>33),
'262A'=>array('CAm'=>140, 'Coef'=>30, 'YPm'=>15),
'262C'=>array('CAm'=>50, 'Coef'=>0, 'YPm'=>307),
'262E'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>59),
'262G'=>array('CAm'=>280, 'Coef'=>0, 'YPm'=>28),
'262J'=>array('CAm'=>490, 'Coef'=>30, 'YPm'=>21),
'262L'=>array('CAm'=>1990, 'Coef'=>30, 'YPm'=>104),
'263Z'=>array('CAm'=>1010, 'Coef'=>0, 'YPm'=>69),
'264A'=>array('CAm'=>940, 'Coef'=>0, 'YPm'=>32),
'264B'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>20),
'264C'=>array('CAm'=>840, 'Coef'=>30, 'YPm'=>8),
'265A'=>array('CAm'=>1580, 'Coef'=>0, 'YPm'=>436),
'265C'=>array('CAm'=>290, 'Coef'=>30, 'YPm'=>31),
'265E'=>array('CAm'=>460, 'Coef'=>0, 'YPm'=>15),
'266A'=>array('CAm'=>70, 'Coef'=>30, 'YPm'=>40),
'266C'=>array('CAm'=>1060, 'Coef'=>30, 'YPm'=>157),
'266E'=>array('CAm'=>850, 'Coef'=>30, 'YPm'=>26),
'266G'=>array('CAm'=>2310, 'Coef'=>0, 'YPm'=>89),
'266J'=>array('CAm'=>680, 'Coef'=>0, 'YPm'=>90),
'266L'=>array('CAm'=>200, 'Coef'=>30, 'YPm'=>9),
'267Z'=>array('CAm'=>1370, 'Coef'=>30, 'YPm'=>8),
'268A'=>array('CAm'=>240, 'Coef'=>30, 'YPm'=>104),
'268C'=>array('CAm'=>280, 'Coef'=>0, 'YPm'=>19),
'271Z'=>array('CAm'=>810, 'Coef'=>50, 'YPm'=>420),
'272A'=>array('CAm'=>300, 'Coef'=>0, 'YPm'=>1264),
'272C'=>array('CAm'=>300, 'Coef'=>50, 'YPm'=>186),
'273A'=>array('CAm'=>190, 'Coef'=>50, 'YPm'=>46),
'273C'=>array('CAm'=>660, 'Coef'=>50, 'YPm'=>85),
'273E'=>array('CAm'=>530, 'Coef'=>50, 'YPm'=>48),
'273G'=>array('CAm'=>120, 'Coef'=>50, 'YPm'=>85),
'273J'=>array('CAm'=>230, 'Coef'=>30, 'YPm'=>0),
'274A'=>array('CAm'=>970, 'Coef'=>30, 'YPm'=>19),
'274C'=>array('CAm'=>320, 'Coef'=>30, 'YPm'=>240),
'274D'=>array('CAm'=>800, 'Coef'=>30, 'YPm'=>117),
'274F'=>array('CAm'=>2890, 'Coef'=>30, 'YPm'=>29),
'274G'=>array('CAm'=>100, 'Coef'=>30, 'YPm'=>198),
'274J'=>array('CAm'=>1320, 'Coef'=>0, 'YPm'=>51),
'274K'=>array('CAm'=>220, 'Coef'=>30, 'YPm'=>131),
'274M'=>array('CAm'=>310, 'Coef'=>30, 'YPm'=>83),
'275A'=>array('CAm'=>820, 'Coef'=>0, 'YPm'=>121),
'275C'=>array('CAm'=>640, 'Coef'=>0, 'YPm'=>189),
'275E'=>array('CAm'=>520, 'Coef'=>0, 'YPm'=>116),
'275G'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>28),
'281A'=>array('CAm'=>1350, 'Coef'=>0, 'YPm'=>27),
'281C'=>array('CAm'=>1290, 'Coef'=>0, 'YPm'=>14),
'282A'=>array('CAm'=>50, 'Coef'=>0, 'YPm'=>0),
'282B'=>array('CAm'=>50, 'Coef'=>0, 'YPm'=>0),
'282C'=>array('CAm'=>930, 'Coef'=>0, 'YPm'=>40),
'282D'=>array('CAm'=>660, 'Coef'=>0, 'YPm'=>87),
'283A'=>array('CAm'=>1050, 'Coef'=>0, 'YPm'=>69),
'283B'=>array('CAm'=>860, 'Coef'=>0, 'YPm'=>409),
'283C'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>18),
'284A'=>array('CAm'=>440, 'Coef'=>0, 'YPm'=>48),
'284B'=>array('CAm'=>1320, 'Coef'=>0, 'YPm'=>38),
'284C'=>array('CAm'=>1730, 'Coef'=>0, 'YPm'=>126),
'285A'=>array('CAm'=>650, 'Coef'=>0, 'YPm'=>18),
'285C'=>array('CAm'=>560, 'Coef'=>0, 'YPm'=>22),
'285D'=>array('CAm'=>1340, 'Coef'=>0, 'YPm'=>14),
'286A'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>19),
'286C'=>array('CAm'=>870, 'Coef'=>0, 'YPm'=>35),
'286D'=>array('CAm'=>440, 'Coef'=>0, 'YPm'=>17),
'286F'=>array('CAm'=>670, 'Coef'=>0, 'YPm'=>35),
'287A'=>array('CAm'=>520, 'Coef'=>0, 'YPm'=>51),
'287C'=>array('CAm'=>690, 'Coef'=>0, 'YPm'=>232),
'287E'=>array('CAm'=>600, 'Coef'=>0, 'YPm'=>38),
'287G'=>array('CAm'=>1530, 'Coef'=>0, 'YPm'=>80),
'287H'=>array('CAm'=>550, 'Coef'=>0, 'YPm'=>42),
'287J'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>42),
'287L'=>array('CAm'=>420, 'Coef'=>0, 'YPm'=>65),
'287M'=>array('CAm'=>310, 'Coef'=>0, 'YPm'=>19),
'287N'=>array('CAm'=>270, 'Coef'=>0, 'YPm'=>28),
'287P'=>array('CAm'=>420, 'Coef'=>0, 'YPm'=>33),
'291A'=>array('CAm'=>190, 'Coef'=>0, 'YPm'=>65),
'291C'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>18),
'291D'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>121),
'291F'=>array('CAm'=>110, 'Coef'=>0, 'YPm'=>71),
'291H'=>array('CAm'=>120, 'Coef'=>0, 'YPm'=>683),
'291J'=>array('CAm'=>950, 'Coef'=>0, 'YPm'=>51),
'292A'=>array('CAm'=>3880, 'Coef'=>0, 'YPm'=>52),
'292C'=>array('CAm'=>3610, 'Coef'=>0, 'YPm'=>103),
'292D'=>array('CAm'=>110, 'Coef'=>0, 'YPm'=>42),
'292F'=>array('CAm'=>2930, 'Coef'=>0, 'YPm'=>22),
'292H'=>array('CAm'=>270, 'Coef'=>0, 'YPm'=>31),
'292J'=>array('CAm'=>2260, 'Coef'=>0, 'YPm'=>18),
'292K'=>array('CAm'=>50, 'Coef'=>0, 'YPm'=>0),
'292L'=>array('CAm'=>90, 'Coef'=>0, 'YPm'=>35),
'292M'=>array('CAm'=>4530, 'Coef'=>0, 'YPm'=>28),
'293A'=>array('CAm'=>600, 'Coef'=>0, 'YPm'=>130),
'293C'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>13),
'293D'=>array('CAm'=>8510, 'Coef'=>0, 'YPm'=>25),
'294A'=>array('CAm'=>1510, 'Coef'=>0, 'YPm'=>21),
'294B'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>16),
'294C'=>array('CAm'=>1400, 'Coef'=>0, 'YPm'=>24),
'294D'=>array('CAm'=>210, 'Coef'=>0, 'YPm'=>46),
'294E'=>array('CAm'=>2970, 'Coef'=>0, 'YPm'=>13),
'295A'=>array('CAm'=>970, 'Coef'=>0, 'YPm'=>50),
'295B'=>array('CAm'=>1200, 'Coef'=>0, 'YPm'=>58),
'295C'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>0),
'295D'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>51),
'295E'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>25),
'295G'=>array('CAm'=>120, 'Coef'=>0, 'YPm'=>39),
'295J'=>array('CAm'=>2590, 'Coef'=>0, 'YPm'=>40),
'295L'=>array('CAm'=>540, 'Coef'=>0, 'YPm'=>35),
'295M'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>27),
'295N'=>array('CAm'=>2450, 'Coef'=>0, 'YPm'=>16),
'295P'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>0),
'295Q'=>array('CAm'=>30, 'Coef'=>0, 'YPm'=>60),
'295R'=>array('CAm'=>10, 'Coef'=>0, 'YPm'=>24),
'296A'=>array('CAm'=>1890, 'Coef'=>0, 'YPm'=>890),
'296B'=>array('CAm'=>140, 'Coef'=>0, 'YPm'=>17),
'297A'=>array('CAm'=>330, 'Coef'=>0, 'YPm'=>183),
'297C'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>86),
'300A'=>array('CAm'=>860, 'Coef'=>0, 'YPm'=>112),
'300C'=>array('CAm'=>370, 'Coef'=>0, 'YPm'=>97),
'311A'=>array('CAm'=>13040, 'Coef'=>0, 'YPm'=>73),
'311B'=>array('CAm'=>90, 'Coef'=>0, 'YPm'=>67),
'311C'=>array('CAm'=>510, 'Coef'=>0, 'YPm'=>13),
'312A'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>123),
'312B'=>array('CAm'=>580, 'Coef'=>0, 'YPm'=>49),
'313Z'=>array('CAm'=>940, 'Coef'=>0, 'YPm'=>105),
'314Z'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>256),
'315A'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>16),
'315B'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>38),
'315C'=>array('CAm'=>200, 'Coef'=>0, 'YPm'=>21),
'316A'=>array('CAm'=>390, 'Coef'=>0, 'YPm'=>383),
'316C'=>array('CAm'=>790, 'Coef'=>0, 'YPm'=>68),
'316D'=>array('CAm'=>350, 'Coef'=>0, 'YPm'=>21),
'321A'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>43),
'321B'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>0),
'321C'=>array('CAm'=>420, 'Coef'=>0, 'YPm'=>157),
'321D'=>array('CAm'=>720, 'Coef'=>0, 'YPm'=>63),
'322A'=>array('CAm'=>190, 'Coef'=>0, 'YPm'=>75),
'322B'=>array('CAm'=>120, 'Coef'=>0, 'YPm'=>51),
'323Z'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>77),
'331A'=>array('CAm'=>160, 'Coef'=>0, 'YPm'=>40),
'331B'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>12),
'332A'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>139),
'332B'=>array('CAm'=>110, 'Coef'=>0, 'YPm'=>30),
'333Z'=>array('CAm'=>210, 'Coef'=>0, 'YPm'=>17),
'334A'=>array('CAm'=>90, 'Coef'=>0, 'YPm'=>37),
'334B'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>14),
'335Z'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>25),
'341Z'=>array('CAm'=>230, 'Coef'=>-30, 'YPm'=>673),
'342A'=>array('CAm'=>6690, 'Coef'=>-30, 'YPm'=>28),
'342B'=>array('CAm'=>7640, 'Coef'=>-30, 'YPm'=>39),
'343Z'=>array('CAm'=>1650, 'Coef'=>-30, 'YPm'=>221),
'351A'=>array('CAm'=>1010, 'Coef'=>0, 'YPm'=>647),
'351B'=>array('CAm'=>230, 'Coef'=>0, 'YPm'=>45),
'351C'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>12),
'351E'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>23),
'352Z'=>array('CAm'=>110, 'Coef'=>-30, 'YPm'=>233),
'353A'=>array('CAm'=>580, 'Coef'=>0, 'YPm'=>324),
'353B'=>array('CAm'=>1230, 'Coef'=>0, 'YPm'=>205),
'353C'=>array('CAm'=>7530, 'Coef'=>0, 'YPm'=>890),
'354A'=>array('CAm'=>2190, 'Coef'=>0, 'YPm'=>92),
'354C'=>array('CAm'=>780, 'Coef'=>-30, 'YPm'=>44),
'354E'=>array('CAm'=>3360, 'Coef'=>0, 'YPm'=>39),
'355Z'=>array('CAm'=>2690, 'Coef'=>0, 'YPm'=>18),
'361A'=>array('CAm'=>530, 'Coef'=>0, 'YPm'=>74),
'361C'=>array('CAm'=>7540, 'Coef'=>0, 'YPm'=>25),
'361E'=>array('CAm'=>1530, 'Coef'=>0, 'YPm'=>22),
'361G'=>array('CAm'=>1030, 'Coef'=>0, 'YPm'=>8),
'361H'=>array('CAm'=>420, 'Coef'=>0, 'YPm'=>15),
'361J'=>array('CAm'=>390, 'Coef'=>0, 'YPm'=>27),
'361K'=>array('CAm'=>440, 'Coef'=>0, 'YPm'=>3),
'361M'=>array('CAm'=>2030, 'Coef'=>0, 'YPm'=>58),
'362A'=>array('CAm'=>220, 'Coef'=>0, 'YPm'=>18),
'362C'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>8),
'363Z'=>array('CAm'=>2380, 'Coef'=>0, 'YPm'=>14),
'364Z'=>array('CAm'=>310, 'Coef'=>0, 'YPm'=>24),
'365Z'=>array('CAm'=>500, 'Coef'=>0, 'YPm'=>24),
'366A'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>9),
'366C'=>array('CAm'=>320, 'Coef'=>0, 'YPm'=>37),
'366E'=>array('CAm'=>300, 'Coef'=>0, 'YPm'=>18),
'371Z'=>array('CAm'=>210, 'Coef'=>0, 'YPm'=>13),
'372Z'=>array('CAm'=>150, 'Coef'=>0, 'YPm'=>17),
'401A'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>6),
'401C'=>array('CAm'=>4730, 'Coef'=>0, 'YPm'=>3),
'401E'=>array('CAm'=>3000, 'Coef'=>0, 'YPm'=>61),
'401Z'=>array('CAm'=>110, 'Coef'=>0, 'YPm'=>0),
'402A'=>array('CAm'=>1500, 'Coef'=>0, 'YPm'=>241),
'402C'=>array('CAm'=>280, 'Coef'=>0, 'YPm'=>97),
'402Z'=>array('CAm'=>150, 'Coef'=>0, 'YPm'=>0),
'403Z'=>array('CAm'=>5690, 'Coef'=>0, 'YPm'=>80),
'410Z'=>array('CAm'=>1150, 'Coef'=>0, 'YPm'=>223),
'451A'=>array('CAm'=>5940, 'Coef'=>0, 'YPm'=>9),
'451B'=>array('CAm'=>2910, 'Coef'=>0, 'YPm'=>24),
'451D'=>array('CAm'=>2880, 'Coef'=>0, 'YPm'=>11),
'452A'=>array('CAm'=>790, 'Coef'=>0, 'YPm'=>9),
'452B'=>array('CAm'=>6340, 'Coef'=>0, 'YPm'=>36),
'452C'=>array('CAm'=>4630, 'Coef'=>0, 'YPm'=>143),
'452D'=>array('CAm'=>1450, 'Coef'=>0, 'YPm'=>107),
'452E'=>array('CAm'=>4240, 'Coef'=>0, 'YPm'=>59),
'452F'=>array('CAm'=>2020, 'Coef'=>0, 'YPm'=>77),
'452J'=>array('CAm'=>2300, 'Coef'=>0, 'YPm'=>7),
'452K'=>array('CAm'=>1880, 'Coef'=>0, 'YPm'=>14),
'452L'=>array('CAm'=>3310, 'Coef'=>0, 'YPm'=>7),
'452N'=>array('CAm'=>4440, 'Coef'=>0, 'YPm'=>99),
'452P'=>array('CAm'=>1530, 'Coef'=>0, 'YPm'=>93),
'452R'=>array('CAm'=>800, 'Coef'=>0, 'YPm'=>31),
'452T'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>14),
'452U'=>array('CAm'=>990, 'Coef'=>0, 'YPm'=>16),
'452V'=>array('CAm'=>4000, 'Coef'=>0, 'YPm'=>6),
'453A'=>array('CAm'=>400, 'Coef'=>0, 'YPm'=>13),
'453C'=>array('CAm'=>630, 'Coef'=>0, 'YPm'=>14),
'453E'=>array('CAm'=>330, 'Coef'=>0, 'YPm'=>7),
'453F'=>array('CAm'=>2850, 'Coef'=>0, 'YPm'=>12),
'453H'=>array('CAm'=>420, 'Coef'=>0, 'YPm'=>13),
'454A'=>array('CAm'=>500, 'Coef'=>0, 'YPm'=>7),
'454C'=>array('CAm'=>750, 'Coef'=>0, 'YPm'=>6),
'454D'=>array('CAm'=>1300, 'Coef'=>0, 'YPm'=>8),
'454F'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>6),
'454H'=>array('CAm'=>590, 'Coef'=>0, 'YPm'=>8),
'454J'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>9),
'454L'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>9),
'454M'=>array('CAm'=>2990, 'Coef'=>0, 'YPm'=>5),
'455Z'=>array('CAm'=>1130, 'Coef'=>0, 'YPm'=>17),
'501Z'=>array('CAm'=>290, 'Coef'=>20, 'YPm'=>14),
'502Z'=>array('CAm'=>4090, 'Coef'=>20, 'YPm'=>5),
'503A'=>array('CAm'=>610, 'Coef'=>20, 'YPm'=>21),
'503B'=>array('CAm'=>1010, 'Coef'=>20, 'YPm'=>12),
'504Z'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>4),
'505Z'=>array('CAm'=>1040, 'Coef'=>20, 'YPm'=>8),
'511A'=>array('CAm'=>1750, 'Coef'=>0, 'YPm'=>3),
'511C'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>9),
'511E'=>array('CAm'=>230, 'Coef'=>0, 'YPm'=>10),
'511G'=>array('CAm'=>1980, 'Coef'=>0, 'YPm'=>23),
'511J'=>array('CAm'=>480, 'Coef'=>0, 'YPm'=>3),
'511L'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>3),
'511N'=>array('CAm'=>400, 'Coef'=>0, 'YPm'=>6),
'511P'=>array('CAm'=>1090, 'Coef'=>0, 'YPm'=>125),
'511R'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>6),
'511T'=>array('CAm'=>540, 'Coef'=>0, 'YPm'=>3),
'511U'=>array('CAm'=>830, 'Coef'=>0, 'YPm'=>34),
'512A'=>array('CAm'=>540, 'Coef'=>0, 'YPm'=>18),
'512C'=>array('CAm'=>450, 'Coef'=>0, 'YPm'=>8),
'512E'=>array('CAm'=>510, 'Coef'=>-50, 'YPm'=>6),
'512G'=>array('CAm'=>180, 'Coef'=>30, 'YPm'=>7),
'512J'=>array('CAm'=>600, 'Coef'=>0, 'YPm'=>31),
'513A'=>array('CAm'=>180, 'Coef'=>20, 'YPm'=>16),
'513C'=>array('CAm'=>350, 'Coef'=>-50, 'YPm'=>13),
'513D'=>array('CAm'=>780, 'Coef'=>-50, 'YPm'=>13),
'513E'=>array('CAm'=>390, 'Coef'=>20, 'YPm'=>8),
'513G'=>array('CAm'=>270, 'Coef'=>20, 'YPm'=>23),
'513J'=>array('CAm'=>210, 'Coef'=>20, 'YPm'=>10),
'513L'=>array('CAm'=>380, 'Coef'=>20, 'YPm'=>81),
'513N'=>array('CAm'=>350, 'Coef'=>0, 'YPm'=>17),
'513Q'=>array('CAm'=>320, 'Coef'=>0, 'YPm'=>9),
'513S'=>array('CAm'=>2840, 'Coef'=>20, 'YPm'=>11),
'513T'=>array('CAm'=>710, 'Coef'=>0, 'YPm'=>10),
'513V'=>array('CAm'=>200, 'Coef'=>20, 'YPm'=>35),
'513W'=>array('CAm'=>260, 'Coef'=>20, 'YPm'=>44),
'514A'=>array('CAm'=>860, 'Coef'=>0, 'YPm'=>7),
'514C'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>8),
'514D'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>9),
'514F'=>array('CAm'=>220, 'Coef'=>0, 'YPm'=>23),
'514H'=>array('CAm'=>8480, 'Coef'=>20, 'YPm'=>14),
'514J'=>array('CAm'=>110, 'Coef'=>0, 'YPm'=>12),
'514L'=>array('CAm'=>1620, 'Coef'=>20, 'YPm'=>12),
'514N'=>array('CAm'=>460, 'Coef'=>20, 'YPm'=>24),
'514Q'=>array('CAm'=>530, 'Coef'=>0, 'YPm'=>22),
'514R'=>array('CAm'=>900, 'Coef'=>0, 'YPm'=>16),
'514S'=>array('CAm'=>250, 'Coef'=>20, 'YPm'=>9),
'515A'=>array('CAm'=>780, 'Coef'=>30, 'YPm'=>31),
'515C'=>array('CAm'=>150, 'Coef'=>30, 'YPm'=>32),
'515E'=>array('CAm'=>390, 'Coef'=>30, 'YPm'=>12),
'515F'=>array('CAm'=>160, 'Coef'=>0, 'YPm'=>20),
'515H'=>array('CAm'=>540, 'Coef'=>20, 'YPm'=>28),
'515J'=>array('CAm'=>7720, 'Coef'=>30, 'YPm'=>27),
'515L'=>array('CAm'=>670, 'Coef'=>30, 'YPm'=>15),
'515N'=>array('CAm'=>370, 'Coef'=>30, 'YPm'=>10),
'515Q'=>array('CAm'=>540, 'Coef'=>0, 'YPm'=>11),
'516A'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>0),
'516C'=>array('CAm'=>80, 'Coef'=>30, 'YPm'=>0),
'516E'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>0),
'516G'=>array('CAm'=>90, 'Coef'=>30, 'YPm'=>0),
'516J'=>array('CAm'=>110, 'Coef'=>20, 'YPm'=>0),
'516K'=>array('CAm'=>80, 'Coef'=>30, 'YPm'=>0),
'516L'=>array('CAm'=>80, 'Coef'=>30, 'YPm'=>0),
'516N'=>array('CAm'=>80, 'Coef'=>30, 'YPm'=>0),
'517Z'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>0),
'518A'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>8),
'518C'=>array('CAm'=>210, 'Coef'=>0, 'YPm'=>14),
'518E'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>6),
'518G'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>12),
'518H'=>array('CAm'=>30, 'Coef'=>0, 'YPm'=>15),
'518J'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>14),
'518L'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>18),
'518M'=>array('CAm'=>330, 'Coef'=>0, 'YPm'=>15),
'518N'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>9),
'518P'=>array('CAm'=>1200, 'Coef'=>0, 'YPm'=>13),
'519A'=>array('CAm'=>90, 'Coef'=>0, 'YPm'=>4),
'519B'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>3),
'521A'=>array('CAm'=>840, 'Coef'=>0, 'YPm'=>148),
'521B'=>array('CAm'=>380, 'Coef'=>20, 'YPm'=>3),
'521C'=>array('CAm'=>620, 'Coef'=>99, 'YPm'=>6),
'521D'=>array('CAm'=>120, 'Coef'=>99, 'YPm'=>40),
'521E'=>array('CAm'=>1430, 'Coef'=>30, 'YPm'=>279),
'521F'=>array('CAm'=>510, 'Coef'=>30, 'YPm'=>265),
'521H'=>array('CAm'=>140, 'Coef'=>30, 'YPm'=>822),
'521J'=>array('CAm'=>160, 'Coef'=>30, 'YPm'=>7),
'522A'=>array('CAm'=>1290, 'Coef'=>20, 'YPm'=>4),
'522C'=>array('CAm'=>1180, 'Coef'=>-50, 'YPm'=>6),
'522E'=>array('CAm'=>290, 'Coef'=>20, 'YPm'=>4),
'522G'=>array('CAm'=>430, 'Coef'=>0, 'YPm'=>4),
'522J'=>array('CAm'=>610, 'Coef'=>20, 'YPm'=>3),
'522L'=>array('CAm'=>440, 'Coef'=>0, 'YPm'=>6),
'522N'=>array('CAm'=>420, 'Coef'=>20, 'YPm'=>26),
'522P'=>array('CAm'=>460, 'Coef'=>20, 'YPm'=>3),
'523A'=>array('CAm'=>620, 'Coef'=>0, 'YPm'=>5),
'523C'=>array('CAm'=>430, 'Coef'=>0, 'YPm'=>6),
'523E'=>array('CAm'=>390, 'Coef'=>0, 'YPm'=>7),
'524A'=>array('CAm'=>1140, 'Coef'=>0, 'YPm'=>5),
'524C'=>array('CAm'=>300, 'Coef'=>0, 'YPm'=>7),
'524E'=>array('CAm'=>1960, 'Coef'=>0, 'YPm'=>8),
'524F'=>array('CAm'=>410, 'Coef'=>0, 'YPm'=>5),
'524H'=>array('CAm'=>410, 'Coef'=>0, 'YPm'=>13),
'524J'=>array('CAm'=>310, 'Coef'=>0, 'YPm'=>5),
'524L'=>array('CAm'=>530, 'Coef'=>0, 'YPm'=>9),
'524N'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>5),
'524P'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>17),
'524R'=>array('CAm'=>350, 'Coef'=>0, 'YPm'=>6),
'524T'=>array('CAm'=>400, 'Coef'=>0, 'YPm'=>6),
'524U'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>8),
'524V'=>array('CAm'=>220, 'Coef'=>0, 'YPm'=>6),
'524W'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>5),
'524X'=>array('CAm'=>220, 'Coef'=>0, 'YPm'=>6),
'524Y'=>array('CAm'=>320, 'Coef'=>0, 'YPm'=>6),
'524Z'=>array('CAm'=>200, 'Coef'=>0, 'YPm'=>5),
'525Z'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>2),
'526A'=>array('CAm'=>230, 'Coef'=>30, 'YPm'=>45),
'526B'=>array('CAm'=>210, 'Coef'=>0, 'YPm'=>19),
'526D'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>3),
'526E'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>3),
'526G'=>array('CAm'=>90, 'Coef'=>0, 'YPm'=>26),
'526H'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>8),
'527A'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>2),
'527C'=>array('CAm'=>30, 'Coef'=>0, 'YPm'=>4),
'527D'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>7),
'527F'=>array('CAm'=>1010, 'Coef'=>0, 'YPm'=>7),
'527H'=>array('CAm'=>1210, 'Coef'=>0, 'YPm'=>4),
'551A'=>array('CAm'=>730, 'Coef'=>0, 'YPm'=>10),
'551C'=>array('CAm'=>7840, 'Coef'=>0, 'YPm'=>4),
'551D'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'551E'=>array('CAm'=>760, 'Coef'=>0, 'YPm'=>1),
'552A'=>array('CAm'=>1110, 'Coef'=>0, 'YPm'=>2),
'552C'=>array('CAm'=>3350, 'Coef'=>0, 'YPm'=>3),
'552E'=>array('CAm'=>620, 'Coef'=>0, 'YPm'=>9),
'552F'=>array('CAm'=>450, 'Coef'=>0, 'YPm'=>4),
'553A'=>array('CAm'=>670, 'Coef'=>0, 'YPm'=>6),
'553B'=>array('CAm'=>670, 'Coef'=>0, 'YPm'=>8),
'554A'=>array('CAm'=>950, 'Coef'=>0, 'YPm'=>2),
'554B'=>array('CAm'=>860, 'Coef'=>0, 'YPm'=>2),
'554C'=>array('CAm'=>1430, 'Coef'=>0, 'YPm'=>6),
'555A'=>array('CAm'=>650, 'Coef'=>0, 'YPm'=>201),
'555C'=>array('CAm'=>710, 'Coef'=>0, 'YPm'=>265),
'555D'=>array('CAm'=>1440, 'Coef'=>0, 'YPm'=>9),
'601Z'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>387),
'602A'=>array('CAm'=>1110, 'Coef'=>0, 'YPm'=>189),
'602B'=>array('CAm'=>390, 'Coef'=>0, 'YPm'=>45),
'602C'=>array('CAm'=>710, 'Coef'=>0, 'YPm'=>57),
'602E'=>array('CAm'=>850, 'Coef'=>0, 'YPm'=>3),
'602G'=>array('CAm'=>700, 'Coef'=>0, 'YPm'=>16),
'602L'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>10),
'602M'=>array('CAm'=>830, 'Coef'=>0, 'YPm'=>22),
'602N'=>array('CAm'=>450, 'Coef'=>0, 'YPm'=>13),
'602P'=>array('CAm'=>1440, 'Coef'=>0, 'YPm'=>29),
'603Z'=>array('CAm'=>550, 'Coef'=>0, 'YPm'=>304),
'611A'=>array('CAm'=>870, 'Coef'=>0, 'YPm'=>87),
'611B'=>array('CAm'=>450, 'Coef'=>0, 'YPm'=>5),
'612Z'=>array('CAm'=>410, 'Coef'=>0, 'YPm'=>11),
'621Z'=>array('CAm'=>330, 'Coef'=>0, 'YPm'=>106),
'622Z'=>array('CAm'=>440, 'Coef'=>0, 'YPm'=>87),
'623Z'=>array('CAm'=>480, 'Coef'=>0, 'YPm'=>374),
'631A'=>array('CAm'=>310, 'Coef'=>0, 'YPm'=>44),
'631B'=>array('CAm'=>260, 'Coef'=>0, 'YPm'=>34),
'631D'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>28),
'631E'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>46),
'632A'=>array('CAm'=>370, 'Coef'=>0, 'YPm'=>81),
'632C'=>array('CAm'=>210, 'Coef'=>0, 'YPm'=>18),
'632E'=>array('CAm'=>260, 'Coef'=>0, 'YPm'=>136),
'633Z'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>13),
'634A'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>115),
'634B'=>array('CAm'=>220, 'Coef'=>0, 'YPm'=>29),
'634C'=>array('CAm'=>160, 'Coef'=>0, 'YPm'=>44),
'641A'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>14),
'641C'=>array('CAm'=>2530, 'Coef'=>0, 'YPm'=>11),
'642A'=>array('CAm'=>3570, 'Coef'=>0, 'YPm'=>0),
'642B'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>0),
'642C'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>62),
'642D'=>array('CAm'=>430, 'Coef'=>0, 'YPm'=>107),
'651A'=>array('CAm'=>76220, 'Coef'=>0, 'YPm'=>0),
'651C'=>array('CAm'=>37120, 'Coef'=>0, 'YPm'=>70),
'651D'=>array('CAm'=>810, 'Coef'=>0, 'YPm'=>80),
'651E'=>array('CAm'=>778830, 'Coef'=>0, 'YPm'=>333),
'651F'=>array('CAm'=>6630, 'Coef'=>0, 'YPm'=>5),
'652A'=>array('CAm'=>1570, 'Coef'=>0, 'YPm'=>24),
'652C'=>array('CAm'=>600, 'Coef'=>0, 'YPm'=>18),
'652E'=>array('CAm'=>1580, 'Coef'=>0, 'YPm'=>5),
'652F'=>array('CAm'=>420, 'Coef'=>0, 'YPm'=>12),
'660A'=>array('CAm'=>2340, 'Coef'=>0, 'YPm'=>44),
'660C'=>array('CAm'=>10, 'Coef'=>0, 'YPm'=>0),
'660E'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>71),
'660F'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>33),
'660G'=>array('CAm'=>230, 'Coef'=>0, 'YPm'=>10),
'671A'=>array('CAm'=>680, 'Coef'=>0, 'YPm'=>12),
'671C'=>array('CAm'=>1310, 'Coef'=>0, 'YPm'=>5),
'671E'=>array('CAm'=>230, 'Coef'=>0, 'YPm'=>6),
'672Z'=>array('CAm'=>1330, 'Coef'=>0, 'YPm'=>6),
'701A'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>4),
'701B'=>array('CAm'=>150, 'Coef'=>0, 'YPm'=>3),
'701C'=>array('CAm'=>2030, 'Coef'=>0, 'YPm'=>4),
'701D'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>6),
'701F'=>array('CAm'=>120, 'Coef'=>0, 'YPm'=>1),
'702A'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>12),
'702B'=>array('CAm'=>90, 'Coef'=>0, 'YPm'=>1),
'702C'=>array('CAm'=>50, 'Coef'=>-99, 'YPm'=>8),
'703A'=>array('CAm'=>120, 'Coef'=>0, 'YPm'=>4),
'703C'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>10),
'703D'=>array('CAm'=>190, 'Coef'=>0, 'YPm'=>14),
'703E'=>array('CAm'=>360, 'Coef'=>0, 'YPm'=>1),
'711A'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>14),
'711B'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>15),
'711Z'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>0),
'712A'=>array('CAm'=>150, 'Coef'=>0, 'YPm'=>10),
'712C'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>9),
'712E'=>array('CAm'=>140, 'Coef'=>0, 'YPm'=>6),
'713A'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>1),
'713C'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>13),
'713E'=>array('CAm'=>200, 'Coef'=>0, 'YPm'=>21),
'713G'=>array('CAm'=>540, 'Coef'=>0, 'YPm'=>8),
'714A'=>array('CAm'=>860, 'Coef'=>0, 'YPm'=>328),
'714B'=>array('CAm'=>540, 'Coef'=>0, 'YPm'=>5),
'721Z'=>array('CAm'=>140, 'Coef'=>0, 'YPm'=>19),
'722A'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>18),
'722C'=>array('CAm'=>220, 'Coef'=>0, 'YPm'=>14),
'722Z'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>0),
'723Z'=>array('CAm'=>200, 'Coef'=>-50, 'YPm'=>30),
'724Z'=>array('CAm'=>270, 'Coef'=>0, 'YPm'=>9),
'725Z'=>array('CAm'=>140, 'Coef'=>0, 'YPm'=>15),
'726Z'=>array('CAm'=>390, 'Coef'=>0, 'YPm'=>4),
'731Z'=>array('CAm'=>490, 'Coef'=>0, 'YPm'=>32),
'732Z'=>array('CAm'=>200, 'Coef'=>0, 'YPm'=>6),
'741A'=>array('CAm'=>150, 'Coef'=>0, 'YPm'=>12),
'741C'=>array('CAm'=>220, 'Coef'=>0, 'YPm'=>12),
'741E'=>array('CAm'=>920, 'Coef'=>0, 'YPm'=>13),
'741G'=>array('CAm'=>130, 'Coef'=>0, 'YPm'=>4),
'741J'=>array('CAm'=>160, 'Coef'=>0, 'YPm'=>11),
'742A'=>array('CAm'=>50, 'Coef'=>0, 'YPm'=>4),
'742B'=>array('CAm'=>110, 'Coef'=>0, 'YPm'=>7),
'742C'=>array('CAm'=>780, 'Coef'=>0, 'YPm'=>13),
'743A'=>array('CAm'=>1320, 'Coef'=>0, 'YPm'=>3),
'743B'=>array('CAm'=>1260, 'Coef'=>0, 'YPm'=>23),
'744A'=>array('CAm'=>2310, 'Coef'=>0, 'YPm'=>22),
'744B'=>array('CAm'=>7360, 'Coef'=>0, 'YPm'=>9),
'745A'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>19),
'745B'=>array('CAm'=>860, 'Coef'=>0, 'YPm'=>205),
'746Z'=>array('CAm'=>350, 'Coef'=>0, 'YPm'=>58),
'747Z'=>array('CAm'=>190, 'Coef'=>0, 'YPm'=>54),
'748A'=>array('CAm'=>7430, 'Coef'=>0, 'YPm'=>9),
'748B'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>9),
'748D'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>22),
'748F'=>array('CAm'=>200, 'Coef'=>0, 'YPm'=>4),
'748G'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>56),
'748H'=>array('CAm'=>2360, 'Coef'=>0, 'YPm'=>129),
'748J'=>array('CAm'=>650, 'Coef'=>0, 'YPm'=>6),
'748K'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>11),
'751A'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'751C'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'751E'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>78),
'751G'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'752A'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'752C'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'752E'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'752G'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'752J'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'753A'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'753B'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'753C'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'801Z'=>array('CAm'=>430, 'Coef'=>0, 'YPm'=>19),
'802A'=>array('CAm'=>490, 'Coef'=>0, 'YPm'=>25),
'802C'=>array('CAm'=>450, 'Coef'=>0, 'YPm'=>8),
'803Z'=>array('CAm'=>370, 'Coef'=>0, 'YPm'=>12),
'804A'=>array('CAm'=>580, 'Coef'=>0, 'YPm'=>4),
'804C'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>6),
'804D'=>array('CAm'=>320, 'Coef'=>0, 'YPm'=>8),
'851A'=>array('CAm'=>210, 'Coef'=>0, 'YPm'=>117),
'851C'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>4),
'851E'=>array('CAm'=>990, 'Coef'=>0, 'YPm'=>2),
'851G'=>array('CAm'=>550, 'Coef'=>0, 'YPm'=>7),
'851H'=>array('CAm'=>260, 'Coef'=>0, 'YPm'=>2),
'851J'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>10),
'851K'=>array('CAm'=>470, 'Coef'=>0, 'YPm'=>17),
'851L'=>array('CAm'=>270, 'Coef'=>0, 'YPm'=>34),
'852Z'=>array('CAm'=>260, 'Coef'=>0, 'YPm'=>3),
'853A'=>array('CAm'=>280, 'Coef'=>0, 'YPm'=>112),
'853B'=>array('CAm'=>140, 'Coef'=>0, 'YPm'=>7),
'853C'=>array('CAm'=>110, 'Coef'=>0, 'YPm'=>79),
'853D'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>27),
'853E'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>87),
'853G'=>array('CAm'=>30, 'Coef'=>0, 'YPm'=>6),
'853H'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>31),
'853J'=>array('CAm'=>860, 'Coef'=>0, 'YPm'=>13),
'853K'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>10),
'900A'=>array('CAm'=>80, 'Coef'=>0, 'YPm'=>26),
'900B'=>array('CAm'=>2800, 'Coef'=>0, 'YPm'=>123),
'900C'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>0),
'900E'=>array('CAm'=>270, 'Coef'=>0, 'YPm'=>33),
'900G'=>array('CAm'=>9440, 'Coef'=>0, 'YPm'=>25),
'911A'=>array('CAm'=>1410, 'Coef'=>0, 'YPm'=>12),
'911C'=>array('CAm'=>320, 'Coef'=>0, 'YPm'=>4),
'912Z'=>array('CAm'=>610, 'Coef'=>0, 'YPm'=>1752),
'913A'=>array('CAm'=>60, 'Coef'=>0, 'YPm'=>0),
'913C'=>array('CAm'=>680, 'Coef'=>0, 'YPm'=>4),
'913E'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>3),
'921A'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>4),
'921B'=>array('CAm'=>290, 'Coef'=>0, 'YPm'=>3),
'921C'=>array('CAm'=>140, 'Coef'=>0, 'YPm'=>3),
'921D'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>15),
'921F'=>array('CAm'=>380, 'Coef'=>0, 'YPm'=>6),
'921G'=>array('CAm'=>180, 'Coef'=>0, 'YPm'=>5),
'921J'=>array('CAm'=>140, 'Coef'=>0, 'YPm'=>14),
'922A'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>23),
'922B'=>array('CAm'=>230, 'Coef'=>0, 'YPm'=>8),
'922C'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>0),
'922D'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>790),
'922E'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>37),
'922F'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>11),
'923A'=>array('CAm'=>110, 'Coef'=>0, 'YPm'=>7),
'923B'=>array('CAm'=>100, 'Coef'=>0, 'YPm'=>4),
'923D'=>array('CAm'=>90, 'Coef'=>0, 'YPm'=>9),
'923F'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>10),
'923H'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'923J'=>array('CAm'=>20, 'Coef'=>0, 'YPm'=>0),
'923K'=>array('CAm'=>6900, 'Coef'=>0, 'YPm'=>5),
'924Z'=>array('CAm'=>50, 'Coef'=>0, 'YPm'=>8),
'925A'=>array('CAm'=>15110, 'Coef'=>0, 'YPm'=>2),
'925C'=>array('CAm'=>1990, 'Coef'=>0, 'YPm'=>10),
'925E'=>array('CAm'=>3170, 'Coef'=>0, 'YPm'=>10),
'926A'=>array('CAm'=>4000, 'Coef'=>0, 'YPm'=>9),
'926C'=>array('CAm'=>1840, 'Coef'=>0, 'YPm'=>5),
'927A'=>array('CAm'=>170, 'Coef'=>0, 'YPm'=>52),
'927C'=>array('CAm'=>5660, 'Coef'=>0, 'YPm'=>2),
'930A'=>array('CAm'=>70, 'Coef'=>0, 'YPm'=>18),
'930B'=>array('CAm'=>490, 'Coef'=>0, 'YPm'=>3),
'930D'=>array('CAm'=>240, 'Coef'=>0, 'YPm'=>4),
'930E'=>array('CAm'=>10, 'Coef'=>0, 'YPm'=>2),
'930G'=>array('CAm'=>1030, 'Coef'=>0, 'YPm'=>2),
'930H'=>array('CAm'=>400, 'Coef'=>0, 'YPm'=>12),
'930K'=>array('CAm'=>40, 'Coef'=>0, 'YPm'=>41),
'930L'=>array('CAm'=>250, 'Coef'=>0, 'YPm'=>2),
'930N'=>array('CAm'=>3670, 'Coef'=>0, 'YPm'=>4),
'950Z'=>array('CAm'=>10, 'Coef'=>0, 'YPm'=>0),
);
/** Situat° Remarque Notation Equiv. Grades Probabilité de
** financière BDF Moody's Grades S&P défaillance
**/
$this->tabNotation['A+']=array('Excellente', 'Exceptionnelle', 'A3++', 'Aaa', 'AAA' ,'0.001');
$this->tabNotation['A'] =array('Excellente', 'Excellente', 'A3+', 'Aa1 Aa2 Aa3', 'AA+ AA AA-','0.01');
$this->tabNotation['B+']=array('Excellente', 'Très bonne', '3++', 'A1', 'A+' ,'0.02');
$this->tabNotation['B'] =array('Bonne', 'Bonne', '3+', 'A2 A3', 'A A-' ,'0.04');
$this->tabNotation['C+']=array('Bonne', 'Relativement correcte', '3', 'Baa1', 'BBB+' ,'0.15');
$this->tabNotation['C'] =array('Bonne', 'Correcte', '3', 'Baa2', 'BBB' ,'0.30');
$this->tabNotation['C-']=array('Bonne', 'Moyenne', '3', 'Baa3', 'BBB-' ,'0.60');
$this->tabNotation['D+']=array('Moyenne', 'Passable', '4+', 'Ba1', 'BB+' ,'0.90');
$this->tabNotation['D'] =array('Moyenne', 'Médiocre', '4', 'Ba2', 'BB' ,'1.25');
$this->tabNotation['D-']=array('Moyenne', 'Très médiocre', '4', 'Ba3', 'BB-' ,'1.60');
$this->tabNotation['E+']=array('Mauvaise', 'Assez mauvaise', '5', 'B1 B2 B3', 'B+ B B-', '5.00');
$this->tabNotation['E'] =array('Mauvaise', 'Mauvaise', '6', 'Caa', 'CCC', '14.00');
$this->tabNotation['E-']=array('Mauvaise', 'Très mauvais', '8', 'Ca C', 'CC C', '17.00');
$this->tabNotation['F'] =array('Mauvaise', 'Signe de défaut', '8 9', 'D', 'D', 'En défaut');
$this->tabNotation['Z'] =array('Mauvaise', 'Signe de défaut', 'P', '', '', 'En défaut');
$this->tabLibActivite[0]='';
$this->tabLibActivite[15]='Industries Alimentaires : Collecte Appro';
$this->tabLibActivite[3]='Industries Alimentaires : Collecte et 1ère transformation';
$this->tabLibActivite[5]='Industries Alimentaires : Eaux de vie et Champagne';
$this->tabLibActivite[2]='Industries Alimentaires : Autres activités';
$this->tabLibActivite[6]='Industries extractives / Production Distribution : Énergie Eau';
$this->tabLibActivite[7]='Construction - BTP';
$this->tabLibActivite[1]='Industries Manufacturières';
$this->tabLibActivite[8]='Négoce';
$this->tabLibActivite[4]='Commerce de Gros';
$this->tabLibActivite[9]='Commerce Distribution';
$this->tabLibActivite[10]='Grande Distribution';
$this->tabLibActivite[12]='Transports';
$this->tabLibActivite[13]='Media Technologie de l\'information';
$this->tabLibActivite[14]='Services';
$this->tabLibActivite[11]='Hôtellerie et Loisirs / Activités immobilières';
$this->tabLibActivite[16]='Banques. Assurances. Activités financières';
$this->tabLibActivite[17]='Agriculture. Sylviculture. Pêche. Aquaculture';
$this->tabActivite[15]=array('512A');
$this->tabActivite[3]=array('151A','151C','152','153E','155','157','159G','159J','159N','159Q');
$this->tabActivite[5]=array('159A','159F');
$this->tabActivite[2]=array('151E','151F','153A','153C','153F','154','156','158','159B','159D','159L','159S','159T');
$this->tabActivite[6]=array('11','10','12','13','14','401','402','403','410');
$this->tabActivite[7]=array('451','452','453','454','455');
$this->tabActivite[1]=array('251','252','241','242','243','245','246','247','261','262','263','264','265','266','267','268','244','297','300','311','312','313','314','315','316','321','322','323','17','18','19','20','21','271','272','273','274','275','281','282','283','284','285','286','287','291','292','293','294','295','296','341','342','343','353','351','352','354','355','223','331','332','333','334','335','361','362','363','364','365','366','231','232','233','222','371','372');
$this->tabActivite[8]=array();
$this->tabActivite[4]=array('511A','511N','511P','512C','512E','512G','512J','513','511C','515A','515C','511E','511G','511J','511L','511R','511T','511U','514','515E','515F','515H','515J','515L','515N','515Q','516','517');
$this->tabActivite[9]=array('501','502','503','504','505','521A','521B','521C','521J','522','523','524A','524C','524E','524F','524H','524J','524L','524N','524R','524T','524U','524V','524W','524X','524Y','524Z','525','526');
$this->tabActivite[10]=array('521D','521E','521F','521H','524P');
$this->tabActivite[12]=array('621','622','623','611','612','602','603','631','632','634','634B','634C','634A','641');
$this->tabActivite[13]=array('221','722','721','723','724','725','726','924','642','922','921');
$this->tabActivite[14]=array('703','712E','711','712A','713','714','712C','741A','741C','741E','741G','742','743','741J','744','745','746','747','748','900','633','801','802','803','804','851','852','853','930','911','912','913','527','950');
$this->tabActivite[11]=array('923','925','926','927','551','552','553','554','555','702');
$this->tabActivite[16]=array('651','660','672','652E','652A','652C','652F','671');
$this->tabActivite[17]=array('751','990','752','990','701');
$this->tabR[1][0]=array();
$this->tabR[1][1]=array('0:15.5','15.5:21.7','21.7:25','25:29.1','29.1:33.4','33.4:37','37:40','40:42.6','42.6:44.9','44.9:100');
$this->tabR[1][2]=array('0:18.7','18.7:22.8','22.8:25','25:27.7','27.7:30.6','30.6:33','33:35','35:36.7','36.7:38.3','38.3:100');
$this->tabR[1][3]=array('0:18.7','18.7:22.8','22.8:25','25:27.7','27.7:30.6','30.6:33','33:35','35:36.7','36.7:38.3','38.3:100');
$this->tabR[1][4]=array('0:8.7','8.7:12.8','12.8:15','15:17.7','17.7:20.6','20.6:23','23:25','25:26.7','26.7:28.3','28.3:100');
$this->tabR[1][5]=array('0:18.7','18.7:22.8','22.8:25','25:27.7','27.7:30.6','30.6:33','33:35','35:36.7','36.7:38.3','38.3:100');
$this->tabR[1][6]=array('0:20.5','20.5:26.7','26.7:30','30:34.1','34.1:38.4','38.4:42','42:45','45:47.6','47.6:49.9','49.9:100');
$this->tabR[1][7]=array('0:13.7','13.7:17.8','17.8:20','20:22.7','22.7:25.6','25.6:28','28:30','30:31.7','31.7:33.3','33.3:100');
$this->tabR[1][8]=array('0:3.7','3.7:7.8','7.8:10','10:12.7','12.7:15.6','15.6:18','18:20','20:21.7','21.7:23.3','23.3:100');
$this->tabR[1][9]=array('0:13.7','13.7:17.8','17.8:20','20:22.7','22.7:25.6','25.6:28','28:30','30:31.7','31.7:33.3','33.3:100');
$this->tabR[1][10]=array('0:5.7','5.7:9.8','9.8:12','12:14.7','14.7:17.6','17.6:20','20:22','22:23.7','23.7:25.3','25.3:100');
$this->tabR[1][11]=array('0:18.7','18.7:22.8','22.8:25','25:27.7','27.7:30.6','30.6:33','33:35','35:36.7','36.7:38.3','38.3:100');
$this->tabR[1][12]=array('0:13.7','13.7:17.8','17.8:20','20:22.7','22.7:25.6','25.6:28','28:30','30:31.7','31.7:33.3','33.3:100');
$this->tabR[1][13]=array('0:23.7','23.7:27.8','27.8:30','30:32.7','32.7:35.6','35.6:38','38:40','40:41.7','41.7:43.3','43.3:100');
$this->tabR[1][14]=array('0:18.7','18.7:22.8','22.8:25','25:27.7','27.7:30.6','30.6:33','33:35','35:36.7','36.7:38.3','38.3:100');
$this->tabR[1][15]=array('0:15.5','15.5:21.7','21.7:25','25:29.1','29.1:33.4','33.4:37','37:40','40:42.6','42.6:44.9','44.9:100');
$this->tabR[1][16]=array('0:6.8','6.8:8.9','8.9:10','10:11.4','11.4:12.8','12.8:14','14:15','15:15.9','15.9:16.6','16.6:100');
$this->tabR[1][17]=array('0:18.7','18.7:22.8','22.8:25','25:27.7','27.7:30.6','30.6:33','33:35','35:36.7','36.7:38.3','38.3:100');
$this->tabR[2][0]=array();
$this->tabR[2][1]=array('1.8:','1.6:1.8','1.5:1.6','1.4:1,5','1.2:1.4','1.0:1.2','0.9:1.0','0.8:0,9','0.7:0,8','0:0.7');
$this->tabR[2][2]=array('2.2:','1.9:2.2','1.8:1.9','1.6:1.8','1.4:1.6','1.2:1.4','1.0:1.2','0.9:1.0','0.7:0.9','0:0.7');
$this->tabR[2][3]=array('2.2:','1.9:2.2','1.8:1.9','1.6:1.8','1.4:1.6','1.2:1.4','1.0:1.2','0.9:1.0','0.7:0.9','0:0.7');
$this->tabR[2][4]=array('3.0:','2.7:3.0','2.5:2.7','2.3:2.5','2.0:2.3','1.7:2.0','1.5:1.7','1.3:1.5','1.1:1.3','0:1.1');
$this->tabR[2][5]=array('2.6:','2.4:2.6','2.2:2.4','2.0:2.2','1.7:2.0','1.5:1.7','1.3:1.5','1.1:1.3','1.0:1.1','0:1');
$this->tabR[2][6]=array('1.7:','1.6:1.7','1.5:1.6','1.4:1.5','1.2:1.4','1.1:1.2','1.0:1.1','0.9:1.0','0.8:0.9','0:0.8');
$this->tabR[2][7]=array('1.5:','1.4:1.5','1.3:1.4','1.1:1.3','1.0:1.2','0.9:1.0','0.8:0.9','0.7:0.8','0.6:0.7','0:0.6');
$this->tabR[2][8]=array('10.1:','8.8:10.1','8:8.8','7:8','5.8:7','4.8:5.8','4:4.8','3.3:4','2.8:3.3','0:2.8');
$this->tabR[2][9]=array('3:','2.7:3','2.5:2.7','2.3:2.5','2:2.3','1.7:2','1.5:1.7','1.3:1.5','1.1:1.3','0:1.1');
$this->tabR[2][10]=array('3.8:','3.3:3.8','3.0:3.3','2.6:3.0','2.2:2.6','1.8:2.2','1.5:1.8','1.2:1.5','1.0:1.2','0:1');
$this->tabR[2][11]=array('2.3:','2.1:2.3','2:2.1','1.8:2','1.6:1.8','1.5:1.6','1.3:1.5','1.2:1.3','1:1.2','0:1');
$this->tabR[2][12]=array('2.3:','2.1:2.3','2:2.1','1.8:2','1.6:1.8','1.5:1.6','1.3:1.5','1.2:1.3','1:1.2','0:1');
$this->tabR[2][13]=array('1.8:','1.6:1.8','1.5:1.6','1.4:1.5','1.2:1.4','1:1.2','0.9:1','0.8:0.9','0.7:0.8','0:0.7');
$this->tabR[2][14]=array('1.8:','1.6:1.8','1.5:1.6','1.4:1.5','1.2:1.4','1:1.2','0.9:1','0.8:0.9','0.7:0.8','0:0.7');
$this->tabR[2][15]=array('2.2:','1.9:2.2','1.7:1.9','1.5:1.7','1.2:1.5','1.0:1.2','0.8:1.0','0.7:0.8','0.5:0.7','0:0.5');
$this->tabR[2][16]=array('10.1:','8.8:10.1','8:8.8','7:8','5.8:7','4.8:5.8','4:4.8','3.3:4','2.8:3.3','0:2.8');
$this->tabR[2][17]=array('2.2:','1.9:2.2','1.8:1.9','1.6:1.8','1.4:1.6','1.2:1.4','1:1.2','0.9:1','0.7:0.9','0:0.7');
$this->tabR[3][0]=array();
$this->tabR[3][1]=array('4.4:','4:4.4','3.8:4','3.5:3.8','3.1:3.5','2.8:3.1','2.5:2.8','2.2:2.5','2:2.2','0:2');
$this->tabR[3][2]=array('5.2:','4.7:5.2','4.5:4.7','4.1:4.5','3.7:4.1','3.3:3.7','3:3.3','2.7:3','2.4:2.7','0:2.4');
$this->tabR[3][3]=array('5.2:','4.7:5.2','4.5:4.7','4.1:4.5','3.7:4.1','3.3:3.7','3:3.3','2.7:3','2.4:2.7','0:2.4');
$this->tabR[3][4]=array('5.2:','4.7:5.2','4.5:4.7','4.1:4.5','3.7:4.1','3.3:3.7','3:3.3','2.7:3','2.4:2.7','0:2.4');
$this->tabR[3][5]=array('8.6:','7.9:8.6','7.5:7.9','6.9:7.5','6.2:6.9','5.6:6.2','5:5.6','4.5:5','4:4.5','0:4');
$this->tabR[3][6]=array('4.4:','4:4.4','3.8:4','3.5:3.8','3.1:3.5','2.8:3.1','2.5:2.8','2.2:2.5','2:2.2','0:2');
$this->tabR[3][7]=array('4.4:','4:4.4','3.8:4','3.5:3.8','3.1:3.5','2.8:3.1','2.5:2.8','2.2:2.5','2:2.2','0:2');
$this->tabR[3][8]=array('10.9:','9.7:10.9','9:9.7','8:9','6.8:8','5.8:6.8','5:5.8','4.3:5','3.7:4.3','0:3.7');
$this->tabR[3][9]=array('5.2:','4.7:5.2','4.5:4.7','4.1:4.5','3.7:4.1','3.3:3.7','3:3.3','2.7:3','2.4:2.7','0:2.4');
$this->tabR[3][10]=array('5.2:','4.7:5.2','4.5:4.7','4.1:4.5','3.7:4.1','3.3:3.7','3:3.3','2.7:3','2.4:2.7','0:2.4');
$this->tabR[3][11]=array('5.2:','4.7:5.2','4.5:4.7','4.1:4.5','3.7:4.1','3.3:3.7','3:3.3','2.7:3','2.4:2.7','0:2.4');
$this->tabR[3][12]=array('5.9:','5.4:5.9','5:5.4','4.5:5','3.9:4.5','3.4:3.9','3:3.4','2.6:3','2.3:2.6','0:2.3');
$this->tabR[3][13]=array('4.2:','3.8:4.2','3.5:3.8','3.1:3.5','2.7:3.1','2.3:2.7','2:2.3','1.7:2','1.5:1.7','0:1.5');
$this->tabR[3][14]=array('4.2:','3.8:4.2','3.5:3.8','3.1:3.5','2.7:3.1','2.3:2.7','2:2.3','1.7:2','1.5:1.7','0:1.5');
$this->tabR[3][15]=array('6.9:','6.3:6.9','6.0:6.3','5.5:6.0','5.0:5.5','4.5:5.0','4.0:4.5','3.6:4.0','3.2:3.6','0:3.2');
$this->tabR[3][16]=array('10.9:','9.7:10.9','9:9.7','8:9','6.8:8','5.8:6.8','5:5.8','4.3:5','3.7:4.3','0:3.7');
$this->tabR[3][17]=array('5.2:','4.7:5.2','4.5:4.7','4.1:4.5','3.7:4.1','3.3:3.7','3:3.3','2.7:3','2.4:2.7','0:2.4');
$this->tabR[4][0]=array();
$this->tabR[4][1]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][2]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][3]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][4]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][5]=array('0:1.36','1.36:1.44','1.44:1.5','1.5:1.58','1.58:1.71','1.71:1.85','1.85:2','2:2.16','2.16:2.33','2.33:');
$this->tabR[4][6]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][7]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][8]=array('0:1.1','1.1:1.2','1.2:1.3','1.3:1.4','1.4:1.6','1.6:1.8','1.8:2','2:2.2','2.2:2.5','2.5:');
$this->tabR[4][9]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][10]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][11]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][12]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[4][13]=array('0:2.4','2.4:2.7','2.7:3','3:3.4','3.4:4.1','4.1:5','5:6','6:7.2','7.2:8.7','8.7:');
$this->tabR[4][14]=array('0:2.4','2.4:2.7','2.7:3','3:3.4','3.4:4.1','4.1:5','5:6','6:7.2','7.2:8.7','8.7:');
$this->tabR[4][15]=array('0:2.9','2.9:3.4','3.4:3.7','3.7:4.3','4.3:5.2','5.2:6.2','6.2:7.5','7.5:9.1','9.1:10.9','10.9:');
$this->tabR[4][16]=array('0:1.1','1.1:1.2','1.2:1.3','1.3:1.4','1.4:1.6','1.6:1.8','1.8:2','2:2.2','2.2:2.5','2.5:');
$this->tabR[4][17]=array('0:2','2:2.3','2.3:2.5','2.5:2.9','2.9:3.5','3.5:4.2','4.2:5','5:6','6:7.2','7.2:');
$this->tabR[5][0]=array();
$this->tabR[5][1]=array('-99:-40','-40:-34','-34:-30','-30:-24','-24:-16','-16:-8','-8:0','0:8.1','8.1:16.1','16.1:');
$this->tabR[5][2]=array('-99:-40','-40:-34','-34:-30','-30:-24','-24:-16','-16:-8','-8:0','0:8.1','8.1:16.1','16.1:');
$this->tabR[5][3]=array('-99:-40','-40:-34','-34:-30','-30:-24','-24:-16','-16:-8','-8:0','0:8.1','8.1:16.1','16.1:');
$this->tabR[5][4]=array('-99:-16.7','-16.7:-12.7','-12.7:-10','-10:-6','-6:-0.7','-0.7:4.7','4.7:10','10:15.3','15.3:20.7','20.7:');
$this->tabR[5][5]=array('-999:-420','-420:-384','-384:-360','-360:-324','-324:-276','-276:-228','-228:-180','-180:-132','-132:-84','-84:');
$this->tabR[5][6]=array('-99:-40','-40:-34','-34:-30','-30:-24','-24:-16','-16:-8','-8:0','0:8.1','8.1:16.1','16.1:');
$this->tabR[5][7]=array('-99:-30','-30:-24','-24:-20','-20:-14','-14:-6','-6:2','2:10','10:18','18:26','26:');
$this->tabR[5][8]=array('-99:-41.7','-41.7:-34.7','-34.7:-30','-30:-23','-23:-13.7','-13.7:-4.3','-4.3:5','5:14.3','14.3:23.7','23.7:');
$this->tabR[5][9]=array('-99:-16.7','-16.7:-12.7','-12.7:-10','-10:-6','-6:-0.7','-0.7:4.7','4.7:10','10:15.3','15.3:20.7','20.7:');
$this->tabR[5][10]=array('-99:-5','-5:-2','-2:0','0:3','3:7','7:11','11:15','15:19','19:23','23:');
$this->tabR[5][11]=array('-99:-6.7','-6.7:-2.7','-2.7:0','0:4','4:9.3','9.3:14.7','14.7:20','20:25.3','25.3:30.7','30.7:');
$this->tabR[5][12]=array('-99:-6.7','-6.7:-2.7','-2.7:0','0:4','4:9.3','9.3:14.7','14.7:20','20:25.3','25.3:30.7','30.7:');
$this->tabR[5][13]=array('-99:-6.7','-6.7:-2.7','-2.7:0','0:4','4:9.3','9.3:14.7','14.7:20','20:25.3','25.3:30.7','30.7:');
$this->tabR[5][14]=array('-99:-6.7','-6.7:-2.7','-2.7:0','0:4','4:9.3','9.3:14.7','14.7:20','20:25.3','25.3:30.7','30.7:');
$this->tabR[5][15]=array('-99:-38.3','-38.3:-36.3','-36.3:-35.0','-35:-33','-33.0:-30','-30:-27.7','-27.7:-25.0','-25.0:-22.3','-22.3:-19.7','-19.7:');
$this->tabR[5][16]=array('-99:-41.7','-41.7:-34.7','-34.7:-30','-30:-23','-23:-13.7','-13.7:-4.3','-4.3:5','5:14.3','14.3:23.7','23.7:');
$this->tabR[5][17]=array(':-58.3','-58.3:53.3','-53.3:-50','-50:-45','-45:-38.3','-38.3:-31.7','-31.7:-25','-25:-18.3','-18.3:-11.7','-11.7:');
$this->tabR[6][0]=array();
$this->tabR[6][1]=array('0:6','6:6.6','6.6:7','7:7.6','7.6:8.4','8.4:9.2','9.2:10','10:10.8','10.8:11.6','11.6:');
$this->tabR[6][2]=array('0:6','6:6.6','6.6:7','7:7.6','7.6:8.4','8.4:9.2','9.2:10','10:10.8','10.8:11.6','11.6:');
$this->tabR[6][3]=array('0:1.5','1.5:2.1','2.1:2.5','2.5:3.1','3.1:3.9','3.9:4.7','4.7:5.5','5.5:6.3','6.3:7.1','7.1:');
$this->tabR[6][4]=array('0:1.8','1.8:2.2','2.2:2.5','2.5:2.9','2.9:3.4','3.4:4','4:4.5','4.5:5','5:5.6','5.6:');
$this->tabR[6][5]=array('0:6.7','6.7:7.5','7.5:8','8:8.8','8.8:9.9','9.9:10.9','10.9:12','12:13.1','13.1:14.1','14.1:');
$this->tabR[6][6]=array('0:7.7','7.7:8.5','8.5:9','9:9.8','9.8:10.9','10.9:11.9','11.9:13','13:14.1','14.1:15.1','15.1:');
$this->tabR[6][7]=array('0:3','3:3.6','3.6:4','4:4.6','4.6:5.4','5.4:6.2','6.2:7','7:7.8','7.8:8.6','8.6:');
$this->tabR[6][8]=array('0:1.3','1.3:1.7','1.7:2','2:2.4','2.4:2.9','2.9:3.5','3.5:4','4:4.5','4.5:5.1','5.1:');
$this->tabR[6][9]=array('0:1.8','1.8:2.2','2.2:2.5','2.5:2.9','2.9:3.4','3.4:4','4:4.5','4.5:5','5:5.6','5.6:');
$this->tabR[6][10]=array('0:1.3','1.3:1.7','1.7:2','2:2.4','2.4:2.9','2.9:3.5','3.5:4','4:4.5','4.5:5.1','5.1:');
$this->tabR[6][11]=array('0:8.3','8.3:9.3','9.3:10','10:11','11:12.3','12.3:13.7','13.7:15','15:16.3','16.3:17.7','17.7:');
$this->tabR[6][12]=array('0:4.7','4.7:5.5','5.5:6','6:6.8','6.8:7.9','7.9:8.9','8.9:10','10:11.1','11.1:12.1','12.1:');
$this->tabR[6][13]=array('0:3','3:4.8','4.8:6','6:7.8','7.8:10.2','10.2:12.6','12.6:15','15:17.4','17.4:19.8','19.8:');
$this->tabR[6][14]=array('0:3','3:4.8','4.8:6','6:7.8','7.8:10.2','10.2:12.6','12.6:15','15:17.4','17.4:19.8','19.8:');
$this->tabR[6][15]=array('0:2','2:2.3','2.3:2.5','2.5:2.8','2.8:3.2','3.2:3.6','3.6:4.0','4.0:4.4','4.4:4.8','4.8:');
$this->tabR[6][16]=array('0:1.7','1.7:1.9','1.9:2','2:2.2','2.2:2.5','2.5:2.7','2.7:3','3:3.3','3.3:3.5','3.5:');
$this->tabR[6][17]=array('0:4.7','4.7:5.5','5.5:6','6:6.8','6.8:7.9','7.9:8.9','8.9:10','10:11.1','11.1:12.1','12.1:');
}
function getTypeEntreprise($naf, $trancheEffectif)
{
$this->tpe=true;
if (@$this->tabBilan['YP']>19)
$this->tpe=false; // PME (petites et moyennes entreprises) : de 19 <20> 499 salari<72>s
elseif ($trancheEffectif!='NN' && // Tranche d'effectif INSEE non d<>clar<61>e
$trancheEffectif!='00' && // Tranche sans salari<72>
$trancheEffectif!='01' && // 1-2 salari<72>(s)
$trancheEffectif!='02' && // 3-5
$trancheEffectif!='03' && // 6 <20> 9
$trancheEffectif!='11') // 10 <20> 19
$this->tpe=false;
}
function calculProvisionsPourRisque ()
{
return (@$this->tabBilan['DP']+@$this->tabBilan['DQ'])*.5;
}
/** Retourne l'EBE
** L'EBE mesure la performance <20>conomique de l'entreprise ind<6E>pendament de toute politique financi<63>re, fiscale, d'investissement et de distribution
** L'EBE permet d'une part de r<>mun<75>rer les apporteurs de capitaux (banques et porteurs de parts ou d'actions), et d'autre part de pouvoir s'autofinancer, de maintenir ses investissements.
** Plus la structure capitalistique de l'entreprise est <20>lev<65>e, plus l'EBE doit <20>tre <20>lev<65>.
** Il joue un r<>le important dans la comparaison entre entreprises.
** EBE = (VA + Subventions d'exploitation) - (Imp<6D>ts et taxes + Charges de personnel) REXP
**
** @return double EBE en unit<69> du bilan
**/
function calculEBE ()
{
return $this->calculValeurAjoutee() + @$this->tabBilan['FO'] - @$this->tabBilan['FX'] - ( @$this->tabBilan['FY'] + @$this->tabBilan['FZ'] ) ;
}
/** Retourne la CAPACIT<49> D'AUTOFINANCEMENT
** CAF = ( RN + Amort. & Prov. - Reprise )
**/
function calculCAF () {
return @$this->tabBilan['HN'] // R<>sultat net
+ @$this->tabBilan['HF'] // Retraitement ?
+ @$this->tabBilan['HG']
- @$this->tabBilan['HB'] // Retraitement ?
- @$this->tabBilan['HC']
+ @$this->tabBilan['GQ']
- @$this->tabBilan['GM']
+ @$this->tabBilan['GA']
+ @$this->tabBilan['GB']
+ @$this->tabBilan['GC']
+ @$this->tabBilan['GD']
- @$this->tabBilan['FP'];
}
/** Retourne le CA de l'exercice
**
** @return double CA en unit<69> du Bilan
**/
function calculChiffreAffaires ($naf, $retraitement=false, $exPre=false)
{
// Vente de Marchandises FC
// Production vendue biens FF 8914928 9008212
// Production vendue services FI 6648419 6451252
// Chiffres d'affaires nets FL 15563347 15459457
// Subventions d'exploitation FO 272189 161333
if ($naf=='741J' || $naf=='6420Z' || $naf=='7010Z')
if ($exPre)
$autre=@$this->tabBilan['GJ1'] + @$this->tabBilan['GK1'] + @$this->tabBilan['GL1'];
else
$autre=@$this->tabBilan['GJ'] + @$this->tabBilan['GK'] + @$this->tabBilan['GL'];
else
$autre=0;
if ($retraitement)
if ($exPre)
$autre+=@$this->tabBilan['FO1'];
else
$autre+=@$this->tabBilan['FO'];
if ($exPre)
return @$this->tabBilan['FC1'] + @$this->tabBilan['FF1'] + @$this->tabBilan['FI1'] + $autre;
else
return @$this->tabBilan['FC'] + @$this->tabBilan['FF'] + @$this->tabBilan['FI'] + $autre;
}
function calculEvolutionCA($naf, $retraitement=false)
{
$ca=$this->calculChiffreAffaires ($naf, $retraitement);
return ($ca - $this->calculChiffreAffaires ($naf, $retraitement, true))/$ca*100;
}
/** Retourne la marge commerciale
** Elle est égale à la différence entre les ventes de marchandises et le cout d'achat des marchandises vendues.
** Attention : La marge commerciale concerne seulement les entreprises commerciales (activité = revente de marchandises en l'<27>tat).
**
** @param $exPre Exercice précédent ?
** @return double Marge Commerciale en unit<69> du bilan
**/
function calculMargeCommerciale ($exPre=false) {
if ($exPre)
return @$this->tabBilan['FC1'] - ( @$this->tabBilan['FS1'] + @$this->tabBilan['FT1'] ) ;
else
return @$this->tabBilan['FC'] - ( @$this->tabBilan['FS'] + @$this->tabBilan['FT'] ) ;
}
/** Retourne la Production de l'exercice
** La production d'un exercice est la valeur des produits qui ont <20>t<EFBFBD> vendus, mis en stocks ou immobilis<69>s au cours de cet exercice.
** La notion de production est r<>serv<72> aux entreprises industrielles.
** Attention : La production vendue est <20>valu<6C>e au prix de vente alors que la prod. stock<63>e et la production immobilis<69>e le sont au co<63>t de production.
** Formule : FF + FI + FM +FN
**
** @param $exPre Exercice pr<70>c<EFBFBD>dent ?
** @return double Production en unit<69> du bilan
**/
function calculProduction ($exPre=false) {
if ($exPre)
return @$this->tabBilan['FF1'] + @$this->tabBilan['FI1'] + @$this->tabBilan['FM1'] + @$this->tabBilan['FN1'] ;
else
return @$this->tabBilan['FF'] + @$this->tabBilan['FI'] + @$this->tabBilan['FM'] + @$this->tabBilan['FN'] ;
}
/** Retourne la Valeur ajoutée
** La VA représente la création de valeur lors de l'exercice
** VA = Production + Marge Commerciale - consommations de biens et services en provenance des tiers
** Plus la valeur ajoutée est importante et moins grand est le recours aux tiers.
** La valeur ajoutée donne une indication de l'activit<69> de l'entreprise à laquelle elle se rapporte.
** Le ratio : Valeur ajout<75>e / Chiffre d'affaire ou Production, s'il se rapproche de 1, indique une entreprise "intégrée", c'est à dire qui fait peu appel <20> des tiers.
** La différence entre la production et la consommation accroît la valeur de la production nationale.
** De ce fait, on peut définir la valeur ajoutée comme une contribution que l'entreprise et son personnel apporte à l'économie du pays.
** La valeur ajoutée est partaée entre :
** - le personnel de l'entreprise, aux moyens de salaires et de prestations sociales,
** - les fournisseurs de capitaux, aussi bien de capitaux empruntés par l'intermédiaire de banques, que de fournisseurs de capitaux propres par l'interm<72>diaire de paiement de dividendes,
** - l'Etat et les collectivités locales par l'intermédiaire de l'imp<6D>t,
** - l'Entreprise pour compenser l'usure des actifs et pour s'autofinancer.
**
** @param $exPre Exercice précédent ?
** @return double Valeur ajoutée en unité du bilan
**/
function calculValeurAjoutee ($exPre=false) {
if ($exPre)
return $this->calculMargeCommerciale($exPre) + $this->calculProduction($exPre)
- ( @$this->tabBilan['FU1'] + @$this->tabBilan['FV1'] + @$this->tabBilan['FW1'] ) ;
else
return $this->calculMargeCommerciale() + $this->calculProduction()
- ( @$this->tabBilan['FU'] + @$this->tabBilan['FV'] + @$this->tabBilan['FW'] ) ;
}
/** Score Zbis présumé de la BDF
**
**/
function scoreZbis() {
/** Variation des capitaux propres */
if (@$this->tabBilan['DL1']<>0)
$x1 = 100 * (( @$this->tabBilan['DL'] - @$this->tabBilan['DL1'] ) / @$this->tabBilan['DL1']);
else $x1=0;
/** Taux d'endettement */
$x2 = $this->calculTauxEndettementFinancier();
/** Frais Financiers / EBE **/
$denom=$this->calculEBE();
if ($denom<>0)
$x3 = 100 * @$this->tabBilan['GR'] / $denom;
else $x3=0;
/** Effet de levier = Rentabilit<69> financi<63>re - Rentabilit<69> Economique */
$x4 = $this->calculRentabiliteFin() - $this->calculRentabiliteEco();
/** Crédit client = Délai découvert client (en jours) ? **/
$x5 = $this->calculDelaisClients();
/** EBE / VA en % **/
$denom=$this->calculValeurAjoutee();
if ($denom<>0)
$x6 = 100 * $this->calculEBE() / $denom;
else $x6=0;
/** Délai fournisseurs (en jours) **/
$x7 = $this->calculDelaisFournisseurs();
/** Créances douteuses / créances clients **/
$denom= @$this->tabBilan['BX'] + @$this->tabBilan['BZ'] ;
if ($denom<>0)
$x8 = 100 * @$this->tabBilan['VA'] / $denom;
else $x8=0;
$z=1.4291 + .0431*$x1 - .0088*$x2 - .0111*$x3 + .0212*$x4 - .0064*$x5 + .0059*$x6 - .0034*$x7 - .0144*$x8;
if ($z<-2.4) $this->risqueZbis='Tr<54>s <20>lev<65>';
elseif ($z<-.4) $this->risqueZbis='Elev<65>';
elseif ($z<.4) $this->risqueZbis='Moyen';
elseif ($z<1.6) $this->risqueZbis='Faible';
else $this->risqueZbis='Tr<54>s faible';
return $z;
}
/** Retourne le d<>lai ou cr<63>dit fournisseur en nombre de jours Achats TTC
** Formule = Fournisseur-acompte/ Achats <20> variation
**
** @return unknown
**/
function calculDelaisFournisseurs() {
$denom=(@$this->tabBilan['FS']+@$this->tabBilan['FU']+@$this->tabBilan['FW']+@$this->tabBilan['YZ']-@$this->tabBilan['FV']-@$this->tabBilan['FT'])
*1.196;
if ($denom<>0)
return 360*(@$this->tabBilan['DX'] - @$this->tabBilan['BV']) / $denom;
else return 0;
}
/** Retourne le d<>lai client en nombre de jours de CA TTC
** Formule = Client net + Effet escompte / CA TTC
** @return double D<>lais Client en nombre de jours
**/
function calculDelaisClients() {
$denom=( @$this->tabBilan['FL']+@$this->tabBilan['YY'] ) * 1.196;
if ($denom<>0)
return 360*( @$this->tabBilan['BX'] + @$this->tabBilan['YS'] - @$this->tabBilan['BY'] ) / $denom;
else return 0;
}
/** Retourne la rentabilit<69> <20>conomique de l'entreprise
** Formule : Rentabilit<69> <20>conomique = EBE / ( CA + subv. exploit )
**
** @return double Rentabilit<69> <20>conomique en %
**/
function calculRentabiliteEco() {
$denom=@$this->tabBilan['FL'] + @$this->tabBilan['FO'];
if ( $denom <> 0)
return ( 100 * $this->calculEBE() ) / $denom;
else return 0;
}
/** Retourne la rentabilit<69> financi<63>re de l'entreprise
** Formule : Rentabilit<69> financi<63>re = RN / Capitaux propres
**
** @return double Rentabilit<69> financi<63>re en %
**/
function calculRentabiliteFin() {
$denom=$this->calculCapitauxPropres();
if ($denom<>0)
return ( @$this->tabBilan['HN'] * 100 ) / $denom;
else return 0;
}
/** Calcul des capitaux propres de l'entreprise : Les capitaux propres (ou fonds propres) correspondent aux ressources
** stables de l'entreprise. Ils sont compos<6F>s du capital social, des r<>serves et du report <20> nouveau.
**
** @return double
**/
function calculCapitauxPropres() {
return @$this->tabBilan['DL']+@$this->tabBilan['DO']-(@$this->tabBilan['AA1']+@$this->tabBilan['AC1']);
}
function calculCreancesDispo() {
return @$this->tabBilan['CD'] + @$this->tabBilan['CF'] - @$this->tabBilan['CE'] - @$this->tabBilan['CG']
+ @$this->tabBilan['BX'] - @$this->tabBilan['DW'] + @$this->tabBilan['YS'] - @$this->tabBilan['BY'] ;
}
function scoreAfdcc1() {
/** [0;100] R1 = Frais financiers / EBE **/
$r1=100*@$this->calculFraisFinanciers()/@$this->calculEBE();
/** [0;200] R2 = (Cr<43>ances+disponibilit<69>s)/Dettes CT **/
$r2=100*@$this->calculCreancesDispo()/@$this->calculDettesCT();
/** [-25;100] R3 = Capitaux permanents / Passifs **/
$r3=100*@$this->calculCapitauxPermanents()/@$this->tabBilan['EE'];
/** [0;100] R4 = VA / CA **/
$r4=100*@$this->calculValeurAjoutee()/@$this->calculChiffreAffaires($naf, false);
/** @todo voir pour le calcul en jours **/
/** [-100;100] R5 = Tr<54>sorerie / CA (j) **/
$r5=100*@$this->calculTresoNette()/@$this->calculChiffreAffaires($naf, false);
/** [-100;150] R6 = Fonds de roulement / CA (j) **/
$r5=100*@$this->calculFR()/@$this->calculChiffreAffaires($naf, false);
/** Bornages **/
//if ($r1<0 || $r1>100) $r1=100;
if ($r1<0) $r1=0; elseif ($r1>100) $r1=100;
if ($r2<0) $r2=0; elseif ($r2>200) $r2=200;
if ($r3<-25) $r3=-25; elseif ($r3>100) $r3=100;
if ($r4<0) $r4=0; elseif ($r4>100) $r4=100;
if ($r5<-100) $r5=-100; elseif ($r5>100) $r5=100;
if ($r6<-100) $r6=-100; elseif ($r6>150) $r6=150;
$t=0.57 + $r1*-0.0635 + r2*0.0183 + $r3*0.0471 + $r4*-0.0246 + $r5*0.0115 + $r6*-0.0096;
return $t;
}
function scoreAfdcc2($naf, $trancheEffectif) {
/** Indépendance financière */
$denom= @$this->tabBilan['DL'] + @$this->tabBilan['DO'] + @$this->tabBilan['DR'] + @$this->tabBilan['DS']
+ @$this->tabBilan['DT'] + @$this->tabBilan['DU'] + @$this->tabBilan['DV'] - @$this->tabBilan['EH']
+ @$this->tabBilan['ED'] + @$this->tabBilan['BK'] - @$this->tabBilan['AA'] - @$this->tabBilan['CM'];
if ($denom<>0)
$a=100 * (@$this->tabBilan['DL']+@$this->tabBilan['DO']) / $denom;
else $a=0;
/** Equilibre financier */
$denom=@$this->tabBilan['BJ'] + @$this->tabBilan['CL'] + @$this->tabBilan['CN'];
if ($denom<>0)
$b= ( @$this->tabBilan['DL'] + @$this->tabBilan['DO'] + @$this->tabBilan['DR'] + @$this->tabBilan['DS']
+ @$this->tabBilan['DT'] + @$this->tabBilan['DU'] + @$this->tabBilan['DV'] - @$this->tabBilan['EH']
+ @$this->tabBilan['ED'] + @$this->tabBilan['BK'] - @$this->tabBilan['AA'] - @$this->tabBilan['CM'] )
/ $denom;
else $b=0;
/** Endettement global */
if ( @$this->tabBilan['FL']<>0)
$c=360 * ( @$this->tabBilan['EC'] - @$this->tabBilan['EB'] + @$this->tabBilan['YS']) / @$this->tabBilan['FL'];
else $c=0;
/** Fonds de roulement */
if (@$this->tabBilan['FL'] <> 0)
$d=360 * ( @$this->tabBilan['DL'] + @$this->tabBilan['DO'] + @$this->tabBilan['DR'] + @$this->tabBilan['DS']
+ @$this->tabBilan['DT'] + @$this->tabBilan['DU'] + @$this->tabBilan['DV'] - @$this->tabBilan['EH']
+ @$this->tabBilan['ED'] + @$this->tabBilan['BK'] - @$this->tabBilan['BJ'] - @$this->tabBilan['AA']
- @$this->tabBilan['CL'] - @$this->tabBilan['CM'] - @$this->tabBilan['CN'] ) / @$this->tabBilan['FL'];
else $d=0;
/** Liquidit<69> g<>n<EFBFBD>rale */
$denom=@$this->tabBilan['DW']+@$this->tabBilan['DX']+@$this->tabBilan['DY']+@$this->tabBilan['DZ']+@$this->tabBilan['EA']+@$this->tabBilan['EH'];
if ($denom<>0)
$e= ( @$this->tabBilan['CJ'] - @$this->tabBilan['CH'] - @$this->tabBilan['CK'] - @$this->tabBilan['CL'] ) / $denom;
else $e=0;
/** D<>lais fournisseurs */
$denom= @$this->tabBilan['FS'] + @$this->tabBilan['FU'] + @$this->tabBilan['FW'] + @$this->tabBilan['YZ'] ;
if ($denom <> 0)
$f=360*@$this->tabBilan['DX'] / $denom;
else $f=0;
/** D<>lais client */
$denom= @$this->tabBilan['FL'] + @$this->tabBilan['YY'] ;
if ($denom <> 0 )
$g=360 * ( @$this->tabBilan['BX'] + @$this->tabBilan['YS'] ) / $denom;
else $g=0;
/** Rotation des stocks */
if (@$this->tabBilan['FL']<>0)
$h=360 * ( @$this->tabBilan['BL'] + @$this->tabBilan['BN'] + @$this->tabBilan['BP'] + @$this->tabBilan['BR'] + @$this->tabBilan['BT'] )
/ @$this->tabBilan['FL'];
else $h=0;
/** Rotation du capital */
if (@$this->tabBilan['BF']<>0)
$i=360 * ( @$this->tabBilan['BJ'] / $this->tabBilan['BF'] );
else $i=0;
/** Taux de Valeur Ajoutée */
if (@$this->tabBilan['FL']<>0)
$j=100 * ( @$this->tabBilan['FL'] + @$this->tabBilan['FM'] + @$this->tabBilan['FN'] - @$this->tabBilan['FS']
- @$this->tabBilan['FT'] - @$this->tabBilan['FU'] - @$this->tabBilan['FV'] - @$this->tabBilan['FW'] )
/ @$this->tabBilan['FL'];
else $j=0;
/** Rentabilité économique */
$k=$this->calculRentabiliteEco();
/** Capacité de remboursement */
$denom= @$this->tabBilan['GW']-@$this->tabBilan['FP']+@$this->tabBilan['GA']+@$this->tabBilan['GB']+@$this->tabBilan['GC']
+ @$this->tabBilan['GD']-@$this->tabBilan['GM']+@$this->tabBilan['GQ']+@$this->tabBilan['HA']-@$this->tabBilan['HE']
- @$this->tabBilan['HJ']-@$this->tabBilan['HK'];
if ($denom <> 0 )
$l= ( @$this->tabBilan['DS']+@$this->tabBilan['DT']+@$this->tabBilan['DU']+@$this->tabBilan['DV']-@$this->tabBilan['EH'] ) / $denom;
else $l=0;
/** Taux d'int<6E>r<EFBFBD>t financier ou Frais financiers */
$m=$this->calculFraisFinanciers();
/** Part de l'autofinancement dans la valeur ajout<75>e */
if ($this->calculValeurAjoutee()<>0)
$n=100 * $this->calculCAF() / $this->calculValeurAjoutee();
else $n=0;
/** Taux de croissance du CA */
if (@$this->tabBilan['FL1']<>0)
$o=(@$this->tabBilan['FL']-@$this->tabBilan['FL1']) / @$this->tabBilan['FL1'];
else $o=0;
/** Log CA HT */
$p=log(@$this->tabBilan['FL']);
if (@$this->tabBilan['YP']>19)
$this->tpe=false; // PME (petites et moyennes entreprises) : de 10 <20> 499 salari<72>s
elseif ($trancheEffectif!='NN' && // Tranche d'effectif INSEE non d<>clar<61>e
$trancheEffectif!='00' && // Tranche sans salari<72>
$trancheEffectif!='01' && // 1-2 salari<72>(s)
$trancheEffectif!='02' && // 3-5
$trancheEffectif!='03' && // 6 <20> 9
$trancheEffectif!='11') // 10 <20> 19
$this->tpe=false;
$naf2=substr($naf,0,2)*1;
if ($naf2>=10 && $naf2<=41) { // Industrie
$this->secteurAfdcc='Industrie';
if ($this->tpe) { $r=-11.007 + .062 *$a + 1.7355*$e + .0725*$k + 3.3176*$o - .032 *$f - .0086*$h + .6806*$p;
if ($r<-3) $t=0;elseif($r<-1) $t=1;elseif($r<0) $t=2;elseif($r<1) $t=3;elseif($r<2.5) $t=4;else $t=5;
} else { $r= .1004 + .0156*$a + 1.6041*$e + .1437*$k + 1.5230*$o + .0565*$l - .077 *$h - .7253*$m;
if ($r<-2) $t=0;elseif($r<-1) $t=1;elseif($r<0) $t=2;elseif($r<0.5) $t=3;elseif($r<1.5) $t=4;else $t=5;
}
} elseif ($naf2==45) { // Construction BTP
$this->secteurAfdcc='Construction BTP';
if ($this->tpe) { $r=.5301 + .0220*$a + 1.6712*$e + .0720*$k - .0070*$g + .0077*$i - .4764*$m - .0043*$c;
if ($r<-2) $t=0;elseif($r<0) $t=1;elseif($r<1) $t=2;elseif($r<1.5) $t=3;elseif($r<2) $t=4;else $t=5;
} else { $r=.5782 + .0160*$a + .3898*$b + .1437*$k + .0085*$i - 1.1793*$m;
if ($r<-4.5) $t=0;elseif($r<-2) $t=1;elseif($r<-.5) $t=2;elseif($r<0.5) $t=3;elseif($r<1.5) $t=4;else $t=5;
}
} elseif ($naf2==50 || $naf2==52) { // Commerce de d<>tail
$this->secteurAfdcc='Commerce de d&eacute;tail';
if ($this->tpe) { $r=-5.3424 + .0238*$a - .9523*$e + .1081*$k + 1.8284*$o - .0084*$f - .2927*$m + .3856*$p;
if ($r<-2.5) $t=0;elseif($r<-.5) $t=1;elseif($r<.5) $t=2;elseif($r<1) $t=3;elseif($r<2) $t=4;else $t=5;
} else { $r=-8.5680 + .0247*$a + .1447*$k + .0087*$n - .0123*$f + .0154*$i - .9737*$m;
if ($r<-2.5) $t=0;elseif($r<-1.5) $t=1;elseif($r<-.5) $t=2;elseif($r<0) $t=3;elseif($r<1) $t=4;else $t=5;
}
} elseif ($naf2==51) { // Commerce de gros
$this->secteurAfdcc='Commerce de gros';
$r=-1.1111 + .0228*$a + .8653*$e + .1111*$k + 1.8712*$o - .0084*$f - .3317*$m + .1625*$p;
if ($r<-2) $t=0;elseif($r<0) $t=1;elseif($r<1) $t=2;elseif($r<1.5) $t=3;elseif($r<2) $t=4;else $t=5;
} elseif ($naf2>=60 && $naf2<=63) { // Transports
$this->secteurAfdcc='Transport';
$r=-7.6017 + 0.0259*$a + 0.0184*$d + 0.0529*$k + 3.2934*$o - 0.3945*$m + 0.0085*$i + 0.4467*$p;
/** @todo ATTENTION : ce ne sont pas les bonnes trnaches pour le transport ! **/
if ($r<-2) $t=0;elseif($r<0) $t=1;elseif($r<1) $t=2;elseif($r<1.5) $t=3;elseif($r<2) $t=4;else $t=5;
} elseif ($naf2==55) { // H<>tels, caf<61>s, restaurants
$this->secteurAfdcc='H&ocirc;tels, caf&eacute;s, restaurants';
$r=-13.277 + 0.0050*$a + 0.2073*$e + 0.04068*$j - 0.0028*$c + 0.8948*$p;
if ($r<-3) $t=0;elseif($r<-1) $t=1;elseif($r<0) $t=2;elseif($r<1) $t=3;elseif($r<1.5) $t=4;else $t=5;
} else/*if ($naf2==64 ||
($naf2>=70 && $naf2<=74) // Services 64, 70 <20> 74, 90, 92, 93, 95
|| $naf2==90 || $naf2==92
|| $naf2==93 || $naf2==95)*/ {
$this->secteurAfdcc='Services';
if ($this->tpe) { $r= .995 + .0218*$a + .9445*$k - .0080*$g + .0046*$d - .0136*$h - .2210*$m;
if ($r<-2) $t=0;elseif($r<0) $t=1;elseif($r<1) $t=2;elseif($r<1.5) $t=3;elseif($r<2) $t=4;else $t=5;
} else { $r=-13.445 + .0195*$a + .9361*$e + .0629*$k + .0173*$j - .0087*$g + .6801*$p - .7568*$m;
if ($r<-3) $t=0;elseif($r<-2) $t=1;elseif($r<-1) $t=2;elseif($r<0) $t=3;elseif($r<2) $t=4;else $t=5;
}
}
if ($r<-12) $r=-12;
elseif ($r>12) $r=12;
$this->noteAfdcc=$r;
return $t;
}
/** Taux dinvestissement productif = Immobilisations <20> valeur dacquisition / Valeur ajout<75>e
**/
function calculProfilPayeur() {
// HOME MADE
$ebe=$this->calculEBE();
if ($ebe<>0) $r=@$this->tabBilan['GR'] / $ebe;
else return 'Ind<6E>termin<69> (GR='.@$this->tabBilan['GR'].', EBE=0)';
if ($r>.7) return 'Moyen ('.$r.')';
else return 'Bon ('.$r.')';
}
function calculTauxInvestissement() {
$n=@$this->tabBilan['KC']+@$this->tabBilan['KF']+@$this->tabBilan['LP']+@$this->tabBilan['MY']-@$this->tabBilan['NC'];
$d=@$this->tabBilan['FL']+@$this->tabBilan['FM']+@$this->tabBilan['FN']-@$this->tabBilan['FS']-@$this->tabBilan['FU']-@$this->tabBilan['FV']
-@$this->tabBilan['FW'];
if ($d<>0) return $n*100/$d;
else return 0;
}
/** Taux d'endettemet = Dettes de caract<63>re financier / Capitaux propres + autres fonds propres
** @return double Le taux d'endettement en %
**/
function calculTauxEndettementFinancier() {
$n=@$this->tabBilan['DS']+@$this->tabBilan['DT']+@$this->tabBilan['DU']+@$this->tabBilan['DV']-@$this->tabBilan['YS'];
$d=@$this->tabBilan['DL']+@$this->tabBilan['DO'];
if ($d<>0) return $n*100/$d;
else return 0;
}
/** Dettes <20> court terme
** Dettes CT = DW + DX + DY + DZ + EA + EH
**/
function calculDettesCT() {
return @$this->tabBilan['DW']+@$this->tabBilan['DX']+@$this->tabBilan['DY']+@$this->tabBilan['DZ']+@$this->tabBilan['EA']+@$this->tabBilan['EH'];
}
/** Frais de personnel en % du CA **/
function calculFraisPersonnel() {
if (@$this->tabBilan['FL']<>0)
return 100 * (@$this->tabBilan['FY']+@$this->tabBilan['FZ']+@$this->tabBilan['HJ']) / @$this->tabBilan['FL'];
else return 0;
}
/** Frais financiers ou taux d'int<6E>r<EFBFBD>t financier en % du CA
**/
function calculFraisFinanciers() {
if (@$this->tabBilan['FL']<>0)
return 100 * @$this->tabBilan['GR'] / @$this->tabBilan['FL'];
else return 0;
}
function calculBFR() {
return @$this->tabBilan['CJ']-@$this->tabBilan['CK']-@$this->tabBilan['CF']+@$this->tabBilan['CG']-@$this->tabBilan['CD']+@$this->tabBilan['CE']
- @$this->tabBilan['DW']-@$this->tabBilan['DX']-@$this->tabBilan['DY']-@$this->tabBilan['DZ']-@$this->tabBilan['EA']-@$this->tabBilan['EB'];
}
/** Fonds de roulement net global
**/
function calculFR() {
return @$this->tabBilan['DL']+@$this->tabBilan['DO']+@$this->tabBilan['DR']+@$this->tabBilan['DS']+@$this->tabBilan['DT']+@$this->tabBilan['DU']
+ @$this->tabBilan['DV']-@$this->tabBilan['EH']+@$this->tabBilan['ED']+@$this->tabBilan['BK']-@$this->tabBilan['BJ']-@$this->tabBilan['AA']
- @$this->tabBilan['CL']-@$this->tabBilan['CM']-@$this->tabBilan['CN'];
}
function calculTresoNette() {
return @$this->tabBilan['CF']-@$this->tabBilan['CG']+@$this->tabBilan['CD']-@$this->tabBilan['CE']-@$this->tabBilan['EH'];
}
function scoreAltman($enBourse=true) {
$iBourse = new Metier_Partenaires_MBourse(@$this->tabBilan['SIREN'], $this->iDb);
$bourse = $iBourse->getInfosBourse(@$this->tabBilan['SIREN']);
if (count($bourse)>0) $this->societeEnBourse=true;
if ($enBourse && $this->societeEnBourse) {
// X1 = Capital Circulant/Total des Actifs
$x1= (@$this->tabBilan['FU'] + @$this->tabBilan['FV'] + @$this->tabBilan['FW'])/@$this->tabBilan['EE'];
if ($x1==0) $x1=(@$this->tabBilan['FU1'] + @$this->tabBilan['FV1'] + @$this->tabBilan['FW1'])/@$this->tabBilan['EE1'];
// X2 = Profits Retenus/Total des Actifs
$x2 = @$this->tabBilan['GV'] / @$this->tabBilan['EE'];
if ($x2==0) $x2=@$this->tabBilan['GV1'] / @$this->tabBilan['EE1'];
// X3 = Profits avant frais financiers et imp<6D>ts/Total des Actifs
$x3 = @$this->tabBilan['GW'] / @$this->tabBilan['EE'];
if ($x3==0) $x3=@$this->tabBilan['GW1'] / @$this->tabBilan['EE1'];
// X4 = Capitalisation Boursi<73>re/Valeur Comptable des Passifs
$x4 = ($bourse['close']*$bourse['nombreTitres']) / @$this->tabBilan['EE'];
if ($x4==0) $x4=($bourse['close']*$bourse['nombreTitres']) / @$this->tabBilan['EE1'];
// X5 = Ventes/Total des Actifs
$x5 = @$this->tabBilan['FL'] / @$this->tabBilan['EE'];
if ($x5==0) $x5=@$this->tabBilan['FL1'] / @$this->tabBilan['EE1'];
$t=1.2*$x1 + 1.4*$x2 + 3.3*$x3 + 0.6*$x4 + $x5;
$enBourse='Soci<63>t<EFBFBD> c<>t<EFBFBD>';
}
else {
// X1 = Fonds de roulement net / actif total
$x1=@$this->calculFR()/@$this->tabBilan['EE'];
// X2 = R<>serves / actif total
//DD + DE + DF +DG
$x2 = (@$this->tabBilan['DD'] + @$this->tabBilan['DE'] + @$this->tabBilan['DF'] + @$this->tabBilan['DG']) /
@$this->tabBilan['EE'];
// X3 = EBE / actif total
$x3 = @$this->calculEBE() / @$this->tabBilan['EE'];
// X4 = Fonds propres / dettes totales
$x4 = @$this->calculFondsPropres()/(@$this->calculDettesCT()+@$this->calculDettesFinancieresBancairesBrutes());
// X5 = CAHT / actif total
$x5 = @$this->tabBilan['FL'] / @$this->tabBilan['EE'];
if ($x5==0) $x5=@$this->tabBilan['FL1'] / @$this->tabBilan['EE1'];
$t=1.2*$x1 + 1.4*$x2 + 3.3*$x3 + 0.6*$x4 + 0.9*$x5;
$enBourse='Coci<63>t<EFBFBD> non c<>t<EFBFBD>';
}
return $t;
}
function evaluationCCF() {
$p=0;
if ($this->calculValeurAjoutee()<>0) {
// Frais Fianciers / VA
$r1x= @$this->tabBilan['GR'] / $this->calculValeurAjoutee();
// Imp<6D>ts / VA
$r1y=( @$this->tabBilan['FX'] + @$this->tabBilan['HK'] ) / $this->calculValeurAjoutee();
}
else {
$r1x= 0;
$r1y= 0;
}
if ($r1x<.042 || ($r1x<=.131 && $r1y>.067) ) $p+=855;
elseif ($r1x>.131 && $r1y<.048) $p+=155;
else $p+=390;
// delta (Frais Financiers / VA)
$deltaVA=( $this->calculValeurAjoutee() - $this->calculValeurAjoutee(true) );
if ($deltaVA<>0)
$r2x= ( @$this->tabBilan['GR'] - @$this->tabBilan['GR1'] ) / $deltaVA;
else $r2x= 0;
$r2y=$r1x;
if ($r2x<-.0012 && $r2y<.131) $p+=865;
elseif ($r2x>=-.0012 && $r2x<.0015 && $r2y<.131) $p+=815;
elseif ($r2x>.0015 && $r2y>=.082) $p+=155;
else $p+=330;
// delta (Resultat Exploitation / Capitaux Permanent = Capitaux Propres + Dettes MLT )
$denom= $this->calculCapitauxPermanents() - $this->calculCapitauxPermanents(true);
if ($denom<>0)
$r3x= ( @$this->tabBilan['GG'] - @$this->tabBilan['GG1'] ) / $denom;
else $r3x=0;
// Resultat Exploitation (GG) / Capitaux Permanent
$denom=$this->calculCapitauxPermanents();
if ($denom<>0)
$r3y= @$this->tabBilan['GG'] / $denom;
else $r3y=0;
if ($r3x<-.118 && $r3y<.074) $p+=255;
elseif ($r3x<-.118 && $r3y>=.074 && $r3y<.208) $p+=660;
elseif ($r3x>=-.118 && $r3y>=-.009&& $r3y<.074) $p+=660;
else $p+=765;
// CAF / Investissements
if ($this->calculTauxInvestissement()<>0)
$r4x= $this->calculCAF() / ($this->calculTauxInvestissement()/100);
else $r4x= $this->calculCAF();
/** delta (CAF / VA) @todo Attention sur 2 ans normalement */
if ($deltaVA<>0)
$r4y= ( $this->calculCAF() - $this->calculCAF(true) ) / $deltaVA;
else $r4y=0;
if ($r4x<-1.35 && $r4y<.0107) $p+=0;
elseif ($r4x<-1.706 && $r4y<.029) $p+=0;
else $p+=715;
/** R<>alisable + Disponible / ( Dettes CT : @todo Attention sur 2 ans normalement ) */
$denom=$this->calculDettesCT();
if ($denom<>0)
$r5x= $this->calculRealisableEtDisponible() / $denom;
else $r5x=0;
// Taux d'endettement
$r5y= $this->calculTauxEndettementFinancier()/100;
if ($r5y<.36) $p+=970;
elseif ($r5x>.83 || ($r5x>=.68 && $r5y<=1.26) ) $p+=625;
elseif ($r5x<.68 && $r5y>1.26 ) $p+=65;
else $p+=245;
$this->valeurCCF=$p;
if ($p>2160) return 'Faible ('.$p.')';
else return 'Possible ('.$p.')';
}
/** Les capitaux permanents sont des capitaux restant <20> la disposition de l'entreprise <20> moyen et long terme.
** Capitaux permanents = capitaux propres + dettes <20> moyen et long terme.
** @param $exPre Exercice Pr<50>cedent ?
** @return double
*/
function calculCapitauxPermanents($exPre=false) {
if ($exPre)
return @$this->tabBilan['DL1'] + @$this->tabBilan['DO1'] + @$this->tabBilan['DR1'] + @$this->tabBilan['DS1']
+ @$this->tabBilan['DT1'] + @$this->tabBilan['DU1'] + @$this->tabBilan['DV1'] - @$this->tabBilan['EH1'];
else
return @$this->tabBilan['DL'] + @$this->tabBilan['DO'] + @$this->tabBilan['DR'] + @$this->tabBilan['DS']
+ @$this->tabBilan['DT'] + @$this->tabBilan['DU'] + @$this->tabBilan['DV'] - @$this->tabBilan['EH'];
}
/**
** R<>alisable et Disponible
**
** @return double Montant en unit<69> du Bilan
**/
function calculRealisableEtDisponible() {
return @$this->tabBilan['BV'] + @$this->tabBilan['BX'] + @$this->tabBilan['BZ'] + @$this->tabBilan['CB']
+ @$this->tabBilan['CD'] + @$this->tabBilan['CF'] - @$this->tabBilan['BW'] - @$this->tabBilan['BY']
- @$this->tabBilan['CA'] - @$this->tabBilan['CC'] - @$this->tabBilan['CE'] - @$this->tabBilan['CG'];
}
function scoreD($naf) {
$pt=0;
$evoCA=$this->calculEvolutionCA($naf, false);
if ($evoCA>20) $pt+=5;
elseif ($evoCA>10) $pt+=15;
elseif ($evoCA>1) $pt+=10;
elseif ($evoCA>=0) $pt+=5;
elseif ($evoCA>-10) $pt-=5;
else $pt-=10;
$ca=$this->calculChiffreAffaires($naf, false);
if ($ca<>0) $ffiCA=$this->calculFraisFinanciers()/$ca;
else $ffiCA=0;
if ($ffiCA<0) $pt+=0;
elseif ($ffiCA<2) $pt+=15;
elseif ($ffiCA<4) $pt+=10;
else $pt+=0;
$fr=$this->calculFR();
$bfr=$this->calculBFR();
if ($fr>0 && $bfr>=0) {
if ($bfr>0) $bfr_fr=$fr/$bfr;
else $bfr_fr==0;
if ($bfr_fr>1.25) $pt+=15;
elseif ($bfr_fr>1) $pt+=10;
elseif ($bfr_fr>.9) $pt+=5;
else $pt+=0;
} elseif ($fr<=0 && $bfr<0) {
if ($fr<0) $bfr_fr=$bfr/$fr;
else $bfr_fr=0;
if ($bfr_fr>1) $pt+=15;
elseif ($bfr_fr>.7) $pt+=10;
elseif ($bfr_fr>.5) $pt+=5;
elseif ($bfr_fr>.1) $pt+=3;
else $pt+=1;
} else $pt+=20;
if ($ca<>0) $cafca=$this->calculCAF() / $ca;
else $cafca=0;
if ($cafca<0) $pt+=0;
elseif ($cafca<1) $pt+=10;
elseif ($cafca<2) $pt+=20;
else $pt+=30;
/** R<>sultat Net / CA = HN / FL **/
if ($ca<>0) $rnca=$this->tabBilan['HN'] / $ca;
else $rnca=0;
if ($rnca>2) $pt+=15;
elseif ($rnca>1) $pt+=10;
elseif ($rnca>0) $pt+=7;
elseif ($rnca==0) $pt+=-5;
elseif ($rnca>-1) $pt+=-7;
elseif ($rnca>-2) $pt+=-10;
else $pt+=-15;
if ($ca<>0) $fpca=$this->calculFondsPropres()/$ca;
else $fpca=0;
if ($fpca<0) $pt+=-10;
elseif ($fpca<5) $pt+=10;
elseif ($fpca<10) $pt+=20;
else $pt+=30;
if ($this->calculFondsPropres()==0 || $this->calculCAF()==0)
return 0;
elseif ($fr==0) return ($pt/5.25);
else return ($pt/6.25);
}
function scoreConanHolder() {
// EBE / Endettement Global
$n1= $this->calculEBE();
$d1= @$this->tabBilan['EC'] - @$this->tabBilan['EB'] + @$this->tabBilan['YS'];
if ($d1<>0) $r1=$n1/$d1;
else $r1=0;
// Capitaux permanents / Total Bilan
$n2= $this->calculCapitauxPermanents();
$d2= @$this->tabBilan['EE'];
if ($d2<>0) $r2=$n2/$d2;
else $r2=0;
// R<>alisable et Disponible / Total Bilan
$n3=$this->calculRealisableEtDisponible();
$d3=$this->tabBilan['EE'];
if ($d3<>0) $r3=$n3/$d3;
else $r3=0;
// Frais financiers / CA Net
$n4= @$this->tabBilan['GR'];
$d4= @$this->tabBilan['FL'];
if ($d4<>0) $r4=$n4/$d4;
else $r4=0;
// Frais de personnel / VA
$n5= @$this->tabBilan['FY'] + @$this->tabBilan['FZ'];
$d5= @$this->tabBilan['FL'] + @$this->tabBilan['FM'] + @$this->tabBilan['FN'] - @$this->tabBilan['FU']
- @$this->tabBilan['FV'] - @$this->tabBilan['FW'] - @$this->tabBilan['FS'] - @$this->tabBilan['FT'];
if ($d5<>0) $r5=$n5/$d5;
else $r5=0;
$n=24*$r1+22*$r2+16*$r3-87*$r4-10*$r5;
if ($n>20) $n=20;
elseif ($n<-7) $n=-7;
return $n;
/*
if ($n>16.5) { $s=20; $situation="Excellente"; }
elseif ($n>16) { $s=19; $situation="Excellente"; }
elseif ($n>15) { $s=18; $situation="Tr<54>s bonne"; }
elseif ($n>14) { $s=17; $situation="Tr<54>s bonne"; }
elseif ($n>13) { $s=16; $situation="Bonne"; }
elseif ($n>12) { $s=15; $situation="Bonne"; }
elseif ($n>11) { $s=14; $situation="Bonne"; }
elseif ($n>10) { $s=13; $situation="Correcte"; }
elseif ($n>09) { $s=12; $situation="Correcte"; }
elseif ($n>08) { $s=11; $situation="Prudence"; }
elseif ($n>07) { $s=10; $situation="Prudence"; }
elseif ($n>06) { $s=09; $situation="Prudence"; }
elseif ($n>05) { $s=08; $situation='Prudence'; }
elseif ($n>04) { $s=07; $situation='Difficile'; }
elseif ($n>02) { $s=06; $situation='Difficile'; }
elseif ($n>00) { $s=05; $situation='Difficile'; }
elseif ($n>-2) { $s=04; $situation='Danger'; }
elseif ($n>-4) { $s=03; $situation='Danger'; }
else { $s=02; $situation='Danger'; }
/* elseif ($n>13) { $s=02; $situation=''; }
elseif ($n>13) { $s=01; $situation='Redressement judiciaire'; }
elseif ($n>13) { $s=00; $situation='Liquidation judiciaire'; }
*/
}
function calculFondsPropres() {
return @$this->tabBilan['DL'] + @$this->tabBilan['DO'] - @$this->tabBilan['AA'] - (@$this->tabBilan['CB'] - @$this->tabBilan['CC']);
}
function calculFondsPropresNetsCorriges() {
if (@$this->tabBilan['DI'] > 0 && @$this->tabBilan['ZE'] > 0)
$resultatA_Distribuer=@$this->tabBilan['DI'];
else $resultatA_Distribuer=@$this->tabBilan['ZE'];
return @$this->tabBilan['DA'] - @$this->tabBilan['AA'] - @$this->tabBilan['CB'] + @$this->tabBilan['CC']
+ @$this->tabBilan['DC']
+ @$this->tabBilan['DB'] + @$this->tabBilan['DD'] + @$this->tabBilan['DE'] + @$this->tabBilan['DF'] + @$this->tabBilan['DG']
+ @$this->tabBilan['DK']
+ @$this->tabBilan['DH'] + @$this->tabBilan['DI'] + @$this->tabBilan['DJ']
- @$this->tabBilan['CL'] - @$this->tabBilan['AB'] + @$this->tabBilan['AC'] - @$this->tabBilan['CM'] - @$this->tabBilan['CN']
+ @$this->tabBilan['DM'] + @$this->tabBilan['DN']
+ $this->calculProvisionsPourRisque() - $resultatA_Distribuer ;
}
function calculDettesFinancieresBancairesBrutes () {
return @$this->tabBilan['DS'] + @$this->tabBilan['EI'] + @$this->tabBilan['DT']
+ @$this->tabBilan['DU'] - @$this->tabBilan['EH']
+ (3/4*@$this->tabBilan['YQ']) + (2/3*@$this->tabBilan['YR'])
+ @$this->tabBilan['DV'] - @$this->tabBilan['EI']
+ @$this->tabBilan['YS'] + @$this->tabBilan['EH'];
}
function noteCapitalisation () {
if (@$this->tabBilan['DI'] > 0 && @$this->tabBilan['ZE'] > 0)
$resultatA_Distribuer=@$this->tabBilan['DI'];
else $resultatA_Distribuer=@$this->tabBilan['ZE'];
$autresDettesExploit = @$this->tabBilan['EA'] + 2/3*((@$this->tabBilan['DP']+@$this->tabBilan['DQ'])*.5) + @$this->tabBilan['EB'];
$dettesFiscalesSociales = @$this->tabBilan['DY'] + 1/3*((@$this->tabBilan['DP']+@$this->tabBilan['DQ'])*.5);
$numerateur = $this->calculFondsPropresNetsCorriges();
$denominateur = $numerateur + @$this->tabBilan['DS'] + @$this->tabBilan['EI'] + @$this->tabBilan['DU'] - @$this->tabBilan['EH']
+ @$this->tabBilan['DV'] - @$this->tabBilan['EI'] + @$this->tabBilan['DT'] + 3/4*@$this->tabBilan['YQ'] + 2/3*@$this->tabBilan['YR']
+ @$this->tabBilan['DW'] + @$this->tabBilan['DX'] + $dettesFiscalesSociales
+ $autresDettesExploit
+ @$this->tabBilan['YS']
+ @$this->tabBilan['DZ'] + $resultatA_Distribuer + @$this->tabBilan['ED'] + @$this->tabBilan['EH']
+ @$this->tabBilan['YS'];
if ($denominateur==0)
return array('NUMERATEUR'=>$numerateur*100,'DENOMINATEUR'=>$denominateur,'NOTE'=>0);
return array('NUMERATEUR'=>$numerateur* 100,'DENOMINATEUR'=>$denominateur,'NOTE'=>($numerateur* 100)/$denominateur);
}
function noteLevierEndettement () {
$numerateur = $this->calculDettesFinancieresBancairesBrutes();
$denominateur = $this->calculFondsPropresNetsCorriges();
if ($denominateur==0)
return array('NUMERATEUR'=>$numerateur,'DENOMINATEUR'=>$denominateur,'NOTE'=>0);
return array('NUMERATEUR'=>$numerateur,'DENOMINATEUR'=>$denominateur,'NOTE'=>$numerateur/$denominateur);
}
function noteCapaciteRemboursement () {
$numerateur = $this->calculDettesFinancieresBancairesBrutes();
$denominateur = $this->calculEBE();
if ($denominateur==0)
return array('NUMERATEUR'=>$numerateur,'DENOMINATEUR'=>$denominateur,'NOTE'=>0);
return array('NUMERATEUR'=>$numerateur,'DENOMINATEUR'=>$denominateur,'NOTE'=>$numerateur/$denominateur);
}
function noteCouvChargesFi () {
$numerateur = $this->calculEBE();
$denominateur = @$this->tabBilan['GR'] + ( 1/4*@$this->tabBilan['HP'] + 1/3*@$this->tabBilan['HQ'] )
+ @$this->tabBilan['GS']
+ @$this->tabBilan['GT']
- @$this->tabBilan['GJ']
- @$this->tabBilan['GK']
- @$this->tabBilan['GL']
- @$this->tabBilan['GN']
- @$this->tabBilan['GO']
- @$this->tabBilan['GH']
+ @$this->tabBilan['GI'] ;
if ($denominateur==0)
return array('NUMERATEUR'=>$numerateur,'DENOMINATEUR'=>$denominateur,'NOTE'=>0);
return array('NUMERATEUR'=>$numerateur,'DENOMINATEUR'=>$denominateur,'NOTE'=>$numerateur/$denominateur);
}
function noteTresorerie ($naf) {
$numerateur = @$this->tabBilan['CD'] - @$this->tabBilan['CE'] + @$this->tabBilan['CF'] - @$this->tabBilan['CG']
- @$this->tabBilan['EH'] - @$this->tabBilan['YS'];
$denominateur = $this->calculChiffreAffaires($naf, true);
if ($denominateur==0)
return array('NUMERATEUR'=>$numerateur*360,'DENOMINATEUR'=>$denominateur,'NOTE'=>0);
return array('NUMERATEUR'=>$numerateur*360,'DENOMINATEUR'=>$denominateur,'NOTE'=>$numerateur*360/$denominateur);
}
function noteMargeExploitation ($naf) {
$numerateur = $this->calculEBE();
$denominateur = $this->calculChiffreAffaires($naf, true);
if ($denominateur==0)
return array('NUMERATEUR'=>$numerateur*100,'DENOMINATEUR'=>$denominateur,'NOTE'=>0);
return array('NUMERATEUR'=>$numerateur*100,'DENOMINATEUR'=>$denominateur,'NOTE'=>$numerateur*100/$denominateur);
}
function getSecteurActivite($naf) {
$nbSecteurs=count($this->tabActivite);
while (strlen($naf) > 1)
{
for ($i=1; $i<$nbSecteurs; $i++)
{
for ($j=0; isset($this->tabActivite[$i][$j]); $j++)
{
if ($this->tabActivite[$i][$j]==$naf)
// echo 'NAF '.$naf.' TROUV<55> !<br>';
return $i;
}
}
// echo 'NAF '.$naf.' non trouv<75> !<br>';
$naf=substr($naf,0,strlen($naf)-1);
}
return 17; // Secteur d'activit<69> par d<>faut si non trouv<75>
}
function getBorne($note, $borne, $secteur) {
// print_array($this->tabR[$borne][$secteur],0);
for ($j=0; $j<10; $j++)
{
$tabMinMax=explode(':',$this->tabR[$borne][$secteur][$j]);
if ($tabMinMax[0]!='') $min=$tabMinMax[0];
else $min=-1E99;
if ($tabMinMax[1]!='') $max=$tabMinMax[1];
else $max=1E99;
if ( ( $note>$min && $note<=$max ) )
{
// echo "TROUVE ++++ $note > ".$tabMinMax[0]." et $note <= ". $tabMinMax[1].'<br/>';
if ($j==0) return 3;
elseif ($j<4) return $j+4;
else return $j*2+1;
}
// echo "NOK $note < ".$tabMinMax[0]." ou $note > ". $tabMinMax[1].'<br/>';
}
return 3; // On retourne la plus basse note par d<>faut
}
function getNoteBorne($note, $borne, $secteur, $numerateur, $denominateur) {
$noteBorneBrute=$this->getBorne($note, $borne, $secteur);
switch($borne)
{
case 1:
if ($numerateur<0) return 3;
else return $noteBorneBrute;
break;
case 2:
if ($numerateur==0) return 19;
else return $noteBorneBrute;
break;
case 3:
if ($numerateur==0 && $denominateur>0) return 19;
elseif ($denominateur<0) return 3;
else return $noteBorneBrute;
break;
default:
return $noteBorneBrute;
break;
}
}
function getNotationFin ($coteMoy) {
if( $coteMoy > 18.5 )
return 'A';
elseif( $coteMoy > 16 )
return 'B+';
elseif( $coteMoy > 14 )
return 'B';
elseif( $coteMoy > 12.5 )
return 'C+';
elseif( $coteMoy > 11 )
return 'C';
elseif( $coteMoy > 10 )
return 'C-';
elseif( $coteMoy > 9 )
return 'D+';
elseif( $coteMoy > 8 )
return 'D';
elseif( $coteMoy > 7 )
return 'D-';
elseif( $coteMoy > 6 )
return 'E+';
elseif( $coteMoy > 4.5 )
return 'E';
elseif( $coteMoy > 3 )
return 'E-';
else
return 'E-';
}
function getInfosNotation ($notation, $format='html') {
switch ($format) {
case 'html':
$str ='Situation financi&egrave;re : '. htmlentities($this->tabNotation[$notation][0]).'<br/>'.PHP_EOL;
$str.='Notation : '. htmlentities($this->tabNotation[$notation][1]).'<br/>'.PHP_EOL;
$str.='Equivalence BDF : '. $this->tabNotation[$notation][2].'<br/>'.PHP_EOL;
$str.='Grades Moody\'s : '. $this->tabNotation[$notation][3].'<br/>'.PHP_EOL;
$str.='Grades S&amp;P : '. $this->tabNotation[$notation][4].'<br/>'.PHP_EOL;
$str.='Probabilit&eacute; de d&eacute;faillance : '.$this->tabNotation[$notation][5].' %<br/>'.PHP_EOL;
break;
case 'csv':
$str = $this->tabNotation[$notation][0] .';'. // Situation financi<63>re
$this->tabNotation[$notation][1] .';'. // Notation
$this->tabNotation[$notation][2] .';'. // Equivalence BDF
$this->tabNotation[$notation][3] .';'. // Grades Moody's
$this->tabNotation[$notation][4] .';'. // Grades S&P
$this->tabNotation[$notation][5] .';'; // Probbilit<69> de d<>faillance
break;
case 'array':
$str = array(
'SituationFinanciere' =>$this->tabNotation[$notation][0], // Situation financiére
'Notation' =>$this->tabNotation[$notation][1], // Notation
//'EquivalenceBDF' =>$this->tabNotation[$notation][2], // Equivalence BDF
//$this->tabNotation[$notation][3] .';'. // Grades Moody's
//$this->tabNotation[$notation][4] .';'. // Grades S&P
'ProbabiliteDefaut' =>$this->tabNotation[$notation][5], // Probbilité de défaillance
);
break;
}
return $str;
}
function getEncours($noteId, $noteFi, $encoursDemande) {
}
}