This commit is contained in:
Michael RICOIS 2013-01-29 14:58:01 +00:00
parent c019b9a8dd
commit 62292f17bc

View File

@ -78,7 +78,7 @@ $tabDico = array(
'faxEtab' => 'fax as faxEtab',
'cj' => array(
'sql' => '',
'table' => 'SELECT * FROM jo.tabFJur',
'table' => 'SELECT code, libelle AS label FROM jo.tabFJur',
),
'capital' => '',
'capitalDev' => '',
@ -107,7 +107,7 @@ $tabDico = array(
'CjInsee' => 'CJ as CjInsee',
'nafEnInsee' => array(
'sql' => 'APE_ENT as nafEnInsee',
'table' => 'SELECT * FROM jo.tabNaf5',
'table' => 'SELECT codeNaf5 AS code, libNaf5 AS label FROM jo.tabNaf5',
),
'nafEtInsee' => 'APE_ETAB as nafEtInsee',
'APRM' => '',
@ -181,7 +181,7 @@ $tabDico = array(
'nafEnRncs' => 'naf AS nafEnRncs',
'cjRncs' => array(
'sql' => 'cj AS cjRncs',
'table' => 'SELECT * FROM jo.tabFJur',
'table' => 'SELECT code, libelle AS label FROM jo.tabFJur',
),
'dateImma' => 'dateImma',
'dateRad' => 'dateRad',
@ -441,7 +441,9 @@ foreach($tabExtract as $key)
//Load generic table - always return array('code', 'label')
if ( is_array($elementsup['table']) ) {
${'tab'.ucfirst($key)} = $elementsup['table'];
} else {
$stmt = $dbMetier->query($elementsup['table']);