From 0a7f3b7c6de430f581ea8906b61797149b794b33 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 27 Jan 2015 10:40:28 +0000 Subject: [PATCH] =?UTF-8?q?Colonne=20presentRCS=20d=C3=A9plac=C3=A9=20apr?= =?UTF-8?q?=C3=A8s=20le=20SIREN=20NIC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/jobs/enrichissement.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/jobs/enrichissement.php b/scripts/jobs/enrichissement.php index 3561a9b5..35f5e2cc 100644 --- a/scripts/jobs/enrichissement.php +++ b/scripts/jobs/enrichissement.php @@ -125,6 +125,12 @@ $fields = $dico->getFields(); $tabEntete = array('siren', 'nic'); $tabEnteteLabel = array('SIREN', 'NIC'); $columns = array('LPAD(siren, 9, 000000000) AS siren', 'LPAD(nic,5,00000) AS nic'); + +// --- Ajouter le champ presentRcs +$columns[] = 'presentRcs'; +$tabEntete[] = 'presentRcs'; +$tabEnteteLabel[] = "Présent au RNCS"; + $joins = array(); foreach ( $dataProfil as $item ) { @@ -160,10 +166,6 @@ foreach ( $dataProfil as $item ) { } } -// --- Ajouter le champ presentRcs -$columns[] = 'presentRcs'; -$tabEntete[] = 'presentRcs'; -$tabEnteteLabel[] = "Présent au RNCS"; $outFile = $profil->login.'_'.$id.'_'.date('YmdHis').'.csv'; $fp = fopen($path.'/'.$outFile, 'w');