From 82ac4041a483ca238d8b05d5344826cf0b509295 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 28 Nov 2014 13:10:27 +0000 Subject: [PATCH] RRG : Correction affichage source_id --- library/WsScore/Clients/Rrg/v0.1/Entreprise.php | 2 +- library/WsScore/Clients/Rrg/v0.1/Types.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/WsScore/Clients/Rrg/v0.1/Entreprise.php b/library/WsScore/Clients/Rrg/v0.1/Entreprise.php index a9363bc0..eee3b2bd 100644 --- a/library/WsScore/Clients/Rrg/v0.1/Entreprise.php +++ b/library/WsScore/Clients/Rrg/v0.1/Entreprise.php @@ -46,7 +46,7 @@ class Entreprise extends Scores_Ws_Server $db = Zend_Db_Table::getDefaultAdapter(); $sql = $db->select() - ->from('etablissements', array('source_id'), 'jo') + ->from('etablissements', array('LPAD(source_id,10,0) AS source_id'), 'jo') ->where('siren=?', $evaluation['Siren'])->where('nic=?', $evaluation['Nic']); $etablissement = $db->fetchRow($sql, null, Zend_Db::FETCH_OBJ); diff --git a/library/WsScore/Clients/Rrg/v0.1/Types.php b/library/WsScore/Clients/Rrg/v0.1/Types.php index c79b9bcb..11050165 100644 --- a/library/WsScore/Clients/Rrg/v0.1/Types.php +++ b/library/WsScore/Clients/Rrg/v0.1/Types.php @@ -2,7 +2,7 @@ class Infos { /** - * + * Identifiant SD de l'établissement siege * @var string */ public $SourceId; @@ -44,7 +44,7 @@ class Infos public $FJ; /** - * Date de création de l'entreprise + * Date de création de l'entreprise au format AAAAMMJJ * @var string */ public $DateCreaEn; @@ -152,7 +152,7 @@ class Infos public $Indiscore; /** - * Encours + * Encours en euros * @var int */ public $Encours;