issue #0001372 : Civilité dans RS

This commit is contained in:
Michael RICOIS 2013-01-17 17:07:03 +00:00
parent d912ad9499
commit 225ca86818

View File

@ -1746,7 +1746,7 @@ class SaisieController extends Zend_Controller_Action
if ($params['pp']==1) {
//Fill data
$params['PpPm'] = 'PP';
$params['RS'] = $params['nom'].' '.$params['prenom'].' '.$params['nom_usage'];
$params['RS'] = $params['civilite'].' '.$params['nom'].' '.$params['prenom'].' '.$params['nom_usage'];
//Personne Morale
} elseif (!empty($params['siren'])) {
@ -2203,22 +2203,24 @@ class SaisieController extends Zend_Controller_Action
$lienref = $request->getParam('lienref');
$this->view->assign('lienref', $lienref);
$this->view->assign('countries', $this->countries);
//Obtain LienRef
$ws = new WsScores();
$result = $ws->getSaisieLienRef($lienref);
$infos = json_decode($result,true);
if ($infos['PpPm']=='PM') {
$this->view->assign('nom', $infos['RS']);
} else {
$this->view->assign('nom', $infos['nom'].' '.$infos['prenom']);
}
//Save data
if ( $request->isPost() ){
} else {
$this->view->assign('countries', $this->countries);
//Obtain LienRef
$ws = new WsScores();
$result = $ws->getSaisieLienRef($lienref);
$infos = json_decode($result,true);
if ($infos['PpPm']=='PM') {
$this->view->assign('nom', $infos['RS']);
} else {
$this->view->assign('nom', $infos['nom'].' '.$infos['prenom']);
}
}
}