Organisation des colonnes en sortie
This commit is contained in:
parent
4c1e01ef15
commit
195496bad6
@ -26,6 +26,14 @@ class Scores_Ciblage_Extract
|
||||
'label' => "Raison Sociale",
|
||||
'column' => 'raisonSociale'
|
||||
),
|
||||
'raisonSocialeRncs' => array(
|
||||
'label' => "Raison Sociale RNCS",
|
||||
'column' => "raisonSocialeRncs",
|
||||
),
|
||||
'nomcommercial' => array(
|
||||
'label' => "Nom commercial",
|
||||
'column' => 'nomCommercial',
|
||||
),
|
||||
'enseigne' => array(
|
||||
'label' => "Enseigne",
|
||||
'column' => 'enseigne'
|
||||
@ -34,10 +42,6 @@ class Scores_Ciblage_Extract
|
||||
'label' => "Sigle",
|
||||
'column' => 'sigle'
|
||||
),
|
||||
'marques' => array(
|
||||
'label' => "Marques déposées",
|
||||
'column' => 'marques'
|
||||
),
|
||||
'adresse' => array(
|
||||
'label' => 'Adresse',
|
||||
'column' => 'adresse',
|
||||
@ -67,6 +71,14 @@ class Scores_Ciblage_Extract
|
||||
'column' => 'codecom',
|
||||
'sql' => 'CONCAT(adr_dep, adr_com) AS codecommune',
|
||||
),
|
||||
'adrDom' => array(
|
||||
'label' => "Indicateur de domiciliation",
|
||||
'column' => 'adrDom',
|
||||
'values' => array(
|
||||
'0' => "Non",
|
||||
'1' => "Oui",
|
||||
)
|
||||
),
|
||||
'tel' => array(
|
||||
'label' => "Téléphone",
|
||||
'column' => 'tel' ,
|
||||
@ -77,6 +89,25 @@ class Scores_Ciblage_Extract
|
||||
'column' => 'fax',
|
||||
'sql' => 'LPAD(fax, 10, 0000000000) AS fax'
|
||||
),
|
||||
'mail' => array(
|
||||
'label' => "Adresse email",
|
||||
'column' => 'mail',
|
||||
),
|
||||
'siteweb' => array(
|
||||
'label' => "Site web",
|
||||
'column' => 'web',
|
||||
),
|
||||
'creaetab' => array(
|
||||
'label' => "Date de création de l'établissement",
|
||||
'column' => 'dateCrea_etab',
|
||||
'sql' => "IF(dateCrea_etab = 0,'',CONCAT_WS('-',SUBSTRING(dateCrea_etab,0,4),SUBSTRING(dateCrea_etab,4,2),SUBSTRING(dateCrea_etab,6,2))) AS dateCrea_etab",
|
||||
),
|
||||
'creaent' => array(
|
||||
'label' => "Date de création de l'entreprise",
|
||||
'column' => 'dateCrea_ent',
|
||||
'sql' => "IF(dateCrea_ent = 0,'',CONCAT_WS('-',SUBSTRING(dateCrea_ent,0,4),SUBSTRING(dateCrea_ent,4,2),SUBSTRING(dateCrea_ent,6,2))) AS dateCrea_ent",
|
||||
),
|
||||
//dateImmat => A mettre
|
||||
'cj' => array(
|
||||
'label' => "Code Forme juridique",
|
||||
'column' => 'cj',
|
||||
@ -87,45 +118,46 @@ class Scores_Ciblage_Extract
|
||||
'cond' => 'jo.etablissements_act.cj = cjL.code'
|
||||
)
|
||||
),
|
||||
'dirigeant' => array(
|
||||
'label' => "Dirigeant",
|
||||
'column' => 'dirigeant',
|
||||
'sql' => "CONCAT_WS(' ', dirCiv, dirNom, dirPrenom) AS dirigeant",
|
||||
),
|
||||
'dirigeantFct' => array(
|
||||
'label' => "Dirigeant - Code Fonction",
|
||||
'column' => 'dirFct',
|
||||
'join' => array(
|
||||
'label' => 'Dirigeant - Libelle Fonction',
|
||||
'column' => 'libelle',
|
||||
'table' => 'jo.bodacc_fonctions',
|
||||
'cond' => 'jo.etablissements_act.dirFct = dirigeantFctL.codeFct'
|
||||
)
|
||||
),
|
||||
'dirigeantnaiss' => array(
|
||||
'label' => "Dirigeant - Date de naissance",
|
||||
'column' => 'dirDateNaiss'
|
||||
),
|
||||
'nafetablissement' => array(
|
||||
'label' => "Code NAF Etablissement",
|
||||
'column' => 'ape_etab',
|
||||
'join' => array(
|
||||
'label' => 'NAF Etablissement - Libelle',
|
||||
'column' => 'libNaf5',
|
||||
'table' => 'jo.tabNaf5',
|
||||
'cond' => 'jo.etablissements_act.ape_etab = nafetablissementL.codNaf5'
|
||||
'label' => 'NAF Etablissement - Libelle',
|
||||
'column' => 'libNaf5',
|
||||
'table' => 'jo.tabNaf5',
|
||||
'cond' => 'jo.etablissements_act.ape_etab = nafetablissementL.codNaf5'
|
||||
)
|
||||
),
|
||||
'nafentreprise' => array(
|
||||
'label' => "Code NAF Entreprise",
|
||||
'column' => 'ape_entrep',
|
||||
'join' => array(
|
||||
'label' => 'NAF Entreprise - Libelle',
|
||||
'column' => 'libNaf5',
|
||||
'table' => 'jo.tabNaf5',
|
||||
'cond' => 'jo.etablissements_act.ape_entrep = nafentrepriseL.codNaf5'
|
||||
'label' => 'NAF Entreprise - Libelle',
|
||||
'column' => 'libNaf5',
|
||||
'table' => 'jo.tabNaf5',
|
||||
'cond' => 'jo.etablissements_act.ape_entrep = nafentrepriseL.codNaf5'
|
||||
)
|
||||
),
|
||||
'nbetab' => array(
|
||||
'label' => "Nombre d'établissements",
|
||||
'column' => 'nbEtab',
|
||||
),
|
||||
'capital' => array(
|
||||
'label' => "Capital",
|
||||
'column' => 'capital'
|
||||
),
|
||||
'capitaldev' => array(
|
||||
'label' => "Devise Capital",
|
||||
'column' => 'capitalDev'
|
||||
),
|
||||
'ageentrep' => array(
|
||||
'label' => "Age de l'entreprise",
|
||||
'column' => 'age_entrep'
|
||||
),
|
||||
'ageetab' => array(
|
||||
'label' => "Age de l'établissement",
|
||||
'column' => 'age_etab'
|
||||
),
|
||||
'effetablissement' => array(
|
||||
'label' => "Effectif Etablissement",
|
||||
'column' => 'eff_etab'
|
||||
@ -134,28 +166,27 @@ class Scores_Ciblage_Extract
|
||||
'label' => "Effectif Entreprise",
|
||||
'column' => 'eff_entrep'
|
||||
),
|
||||
|
||||
'teffetablissement' => array(
|
||||
'label' => "Code Tranche Effectif Etablissement",
|
||||
'column' => 'teff_etab',
|
||||
'sql' => "IF(teff_etab IS NULL,'NN',teff_etab) AS teff_etab",
|
||||
'values' => array(
|
||||
'NN' => "Unités non employeuses", //NN
|
||||
'0' => "0 salarié",
|
||||
'1' => "1 ou 2 salariés",
|
||||
'2' => "3 à 5 salariés",
|
||||
'3' => "6 à 9 salariés",
|
||||
'11' => "10 à 19 salariés",
|
||||
'12' => "20 à 49 salariés",
|
||||
'21' => "50 à 99 salariés",
|
||||
'22' => "100 à 199 salariés",
|
||||
'31' => "200 à 249 salariés",
|
||||
'32' => "250 à 499 salariés",
|
||||
'41' => "500 à 999 salariés",
|
||||
'42' => "1 000 à 1 999 salariés",
|
||||
'51' => "2 000 à 4 999 salariés",
|
||||
'52' => "5 000 à 9 999 salariés",
|
||||
'53' => "10 000 salariés et plus",
|
||||
'NN' => "Unités non employeuses", //NN
|
||||
'0' => "0 salarié",
|
||||
'1' => "1 ou 2 salariés",
|
||||
'2' => "3 à 5 salariés",
|
||||
'3' => "6 à 9 salariés",
|
||||
'11' => "10 à 19 salariés",
|
||||
'12' => "20 à 49 salariés",
|
||||
'21' => "50 à 99 salariés",
|
||||
'22' => "100 à 199 salariés",
|
||||
'31' => "200 à 249 salariés",
|
||||
'32' => "250 à 499 salariés",
|
||||
'41' => "500 à 999 salariés",
|
||||
'42' => "1 000 à 1 999 salariés",
|
||||
'51' => "2 000 à 4 999 salariés",
|
||||
'52' => "5 000 à 9 999 salariés",
|
||||
'53' => "10 000 salariés et plus",
|
||||
),
|
||||
),
|
||||
'teffentreprise' => array(
|
||||
@ -181,86 +212,40 @@ class Scores_Ciblage_Extract
|
||||
'53' => "10 000 salariés et plus",
|
||||
),
|
||||
),
|
||||
'capital' => array(
|
||||
'label' => "Capital",
|
||||
'column' => 'capital'
|
||||
'dirigeant' => array(
|
||||
'label' => "Dirigeant",
|
||||
'column' => 'dirigeant',
|
||||
'sql' => "CONCAT_WS(' ', dirCiv, dirNom, dirPrenom) AS dirigeant",
|
||||
),
|
||||
'capitaldev' => array(
|
||||
'label' => "Devise Capital",
|
||||
'column' => 'capitalDev'
|
||||
),
|
||||
'ageentrep' => array(
|
||||
'label' => "Age de l'entreprise",
|
||||
'column' => 'age_entrep'
|
||||
),
|
||||
'ageetab' => array(
|
||||
'label' => "Age de l'établissement",
|
||||
'column' => 'age_etab'
|
||||
),
|
||||
'raisonSocialeRncs' => array(
|
||||
'label' => "Raison Sociale RNCS",
|
||||
'column' => "raisonSocialeRncs",
|
||||
),
|
||||
'nomcommercial' => array(
|
||||
'label' => "Nom commercial",
|
||||
'column' => 'nomCommercial',
|
||||
),
|
||||
'siteweb' => array(
|
||||
'label' => "Site web",
|
||||
'column' => 'web',
|
||||
),
|
||||
'mail' => array(
|
||||
'label' => "Adresse email",
|
||||
'column' => 'mail',
|
||||
),
|
||||
'isin' => array(
|
||||
'label' => "Code ISIN",
|
||||
'column' => 'isin',
|
||||
),
|
||||
'adrDom' => array(
|
||||
'label' => "Indicateur de domiciliation",
|
||||
'column' => 'adrDom',
|
||||
'values' => array(
|
||||
'0' => "Non",
|
||||
'1' => "Oui",
|
||||
'dirigeantFct' => array(
|
||||
'label' => "Dirigeant - Code Fonction",
|
||||
'column' => 'dirFct',
|
||||
'join' => array(
|
||||
'label' => 'Dirigeant - Libelle Fonction',
|
||||
'column' => 'libelle',
|
||||
'table' => 'jo.bodacc_fonctions',
|
||||
'cond' => 'jo.etablissements_act.dirFct = dirigeantFctL.codeFct'
|
||||
)
|
||||
),
|
||||
'nbetab' => array(
|
||||
'label' => "Nombre d'établissements",
|
||||
'column' => 'nbEtab',
|
||||
),
|
||||
'nbmpubli' => array(
|
||||
'label' => "Nombre de marché public remporté",
|
||||
'column' => 'nbMPubli',
|
||||
),
|
||||
'sirengrp' => array(
|
||||
'label' => "SIREN du groupe",
|
||||
'column' => 'sirenGrp',
|
||||
'dirigeantnaiss' => array(
|
||||
'label' => "Dirigeant - Date de naissance",
|
||||
'column' => 'dirDateNaiss'
|
||||
),
|
||||
'nbactio' => array(
|
||||
'label' => "Nombre d'actionnaires",
|
||||
'column' => 'nbActio',
|
||||
'label' => "Nombre d'actionnaires",
|
||||
'column' => 'nbActio',
|
||||
),
|
||||
'nbpart' => array(
|
||||
'label' => "Nombre de participations",
|
||||
'column' => 'nbPart',
|
||||
'label' => "Nombre de participations",
|
||||
'column' => 'nbPart',
|
||||
),
|
||||
'bilfl' => array(
|
||||
'label' => "CA total (FL)",
|
||||
'column' => 'bilFL',
|
||||
'nbmpubli' => array(
|
||||
'label' => "Nombre de marché public remporté",
|
||||
'column' => 'nbMPubli',
|
||||
),
|
||||
'bilcloture' => array(
|
||||
'label' => 'Date de clôture du bilan',
|
||||
'column' => 'bilCloture',
|
||||
),
|
||||
'biltype' => array(
|
||||
'label' => 'Type du bilan',
|
||||
'column' => 'bilType',
|
||||
'values' => array(
|
||||
'I' => 'Inconnus',
|
||||
'R' => 'Réels',
|
||||
'E' => 'Estimés'
|
||||
)
|
||||
'marques' => array(
|
||||
'label' => "Marques déposées",
|
||||
'column' => 'marques'
|
||||
),
|
||||
/**
|
||||
* TCA
|
||||
@ -285,18 +270,45 @@ class Scores_Ciblage_Extract
|
||||
"9" => "200 millions d'euros ou plus",
|
||||
)
|
||||
),
|
||||
'creaetab' => array(
|
||||
'label' => "Date de création de l'établissement",
|
||||
'column' => 'dateCrea_etab',
|
||||
'sql' => "IF(dateCrea_etab = 0,'',CONCAT_WS('-',SUBSTRING(dateCrea_etab,0,4),SUBSTRING(dateCrea_etab,4,2),SUBSTRING(dateCrea_etab,6,2))) AS dateCrea_etab",
|
||||
'bilcloture' => array(
|
||||
'label' => 'Date de clôture du bilan',
|
||||
'column' => 'bilCloture',
|
||||
),
|
||||
'creaent' => array(
|
||||
'label' => "Date de création de l'entreprise",
|
||||
'column' => 'dateCrea_ent',
|
||||
'sql' => "IF(dateCrea_ent = 0,'',CONCAT_WS('-',SUBSTRING(dateCrea_ent,0,4),SUBSTRING(dateCrea_ent,4,2),SUBSTRING(dateCrea_ent,6,2))) AS dateCrea_ent",
|
||||
'biltype' => array(
|
||||
'label' => 'Type du bilan',
|
||||
'column' => 'bilType',
|
||||
'values' => array(
|
||||
'I' => 'Inconnus',
|
||||
'R' => 'Réels',
|
||||
'E' => 'Estimés'
|
||||
)
|
||||
),
|
||||
'bilfl' => array(
|
||||
'label' => "CA total (FL)",
|
||||
'column' => 'bilFL',
|
||||
),
|
||||
'bilhn' => array(
|
||||
'label' => "Résultat Net (HN)",
|
||||
'column' => 'bilHN',
|
||||
),
|
||||
'bilebe' => array(
|
||||
'label' => "Excédent brut d'exploitation (EBE)",
|
||||
'column' => 'bilEBE',
|
||||
),
|
||||
'bilyp' => array(
|
||||
'label' => "Effectif au bilan (YP)",
|
||||
'column' => 'bilYP',
|
||||
),
|
||||
'isin' => array(
|
||||
'label' => "Code ISIN",
|
||||
'column' => 'isin',
|
||||
),
|
||||
'sirengrp' => array(
|
||||
'label' => "SIREN du groupe",
|
||||
'column' => 'sirenGrp',
|
||||
),
|
||||
|
||||
//autre_id
|
||||
//capital
|
||||
//tcaexp
|
||||
//adresseL1
|
||||
//adresseL2
|
||||
@ -318,7 +330,6 @@ class Scores_Ciblage_Extract
|
||||
//ape4_entrep
|
||||
//NaceEtab
|
||||
//NaceEntrep
|
||||
//dateImmat
|
||||
//distSP
|
||||
//achPost
|
||||
//codeCommune
|
||||
@ -354,15 +365,9 @@ class Scores_Ciblage_Extract
|
||||
//bilHH
|
||||
//bilHL
|
||||
//bilHM
|
||||
|
||||
//bilHN => Résultat Net
|
||||
//bilYP => Effectif au bilan
|
||||
//bilEBE => Excédent brut d'exploitation
|
||||
|
||||
//dettes
|
||||
//dureeClients
|
||||
//dureeFournis
|
||||
|
||||
//bilTypeP
|
||||
//bilAnneeP
|
||||
//bilClotureP
|
||||
@ -390,7 +395,6 @@ class Scores_Ciblage_Extract
|
||||
//dettesP
|
||||
//dureeClientsP
|
||||
//dureeFournisP
|
||||
|
||||
//avisCs
|
||||
//typeEven
|
||||
//dateJugement
|
||||
|
Loading…
Reference in New Issue
Block a user