Correction date crea etab ent immat

This commit is contained in:
Michael RICOIS 2017-01-19 12:17:18 +01:00
parent b56a55c1d0
commit fbadbb691a

View File

@ -91,17 +91,20 @@ class Enrichissement
'creaetab' => array( 'creaetab' => array(
'label' => "Date de création de l'établissement", 'label' => "Date de création de l'établissement",
'column' => 'dateCrea_etab', '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 creaetab", 'sql' => "IF(dateCrea_etab = 0, '', CONCAT_WS('-',
SUBSTR(dateCrea_etab,1,4), SUBSTR(dateCrea_etab,5,2), SUBSTR(dateCrea_etab,7,2))) AS creaetab",
), ),
'creaent' => array( 'creaent' => array(
'label' => "Date de création de l'entreprise", 'label' => "Date de création de l'entreprise",
'column' => 'dateCrea_ent', '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 creaent", 'sql' => "IF(dateCrea_ent=0, '', CONCAT_WS('-',
SUBSTR(dateCrea_ent,1,4), SUBSTR(dateCrea_ent,5,2), SUBSTR(dateCrea_ent,7,2))) AS creaent",
), ),
'dateimmat' => array( 'dateimmat' => array(
'label' => "Date d'immatriculation de l'entreprise", 'label' => "Date d'immatriculation de l'entreprise",
'column' => 'dateImmat', 'column' => 'dateImmat',
'sql' => "IF(dateImmat=0,'',CONCAT_WS('-',SUBSTRING(dateImmat,0,4),SUBSTRING(dateImmat,4,2),SUBSTRING(dateImmat,6,2))) AS dateImmat", 'sql' => "IF(dateImmat=0, '', CONCAT_WS('-',
SUBSTR(dateImmat,1,4), SUBSTR(dateImmat,5,2), SUBSTR(dateImmat,7,2))) AS dateImmat",
), ),
'cj' => array( 'cj' => array(
'label' => "Code Forme juridique", 'label' => "Code Forme juridique",