issue #0001391 : Correction liens
This commit is contained in:
parent
e6c7b877e6
commit
1368627bca
@ -702,7 +702,8 @@ class Entreprise extends WsScore
|
||||
'naissance_date', 'naissance_dept_pays', 'naissance_lieu', 'nat',
|
||||
'adresse_num', 'adresse_btq', 'adresse_codvoie', 'adresse_libvoie',
|
||||
'adresse_comp', 'adresse_cp', 'adresse_ville', 'adresse_pays'
|
||||
));
|
||||
))
|
||||
->order('PDetention DESC');
|
||||
$liens = $db->fetchAll($sql, null, Zend_Db::FETCH_OBJ);
|
||||
} catch (Zend_Exception $e) {
|
||||
if ($this->tabInfoUser['idClient']!=1) {
|
||||
@ -721,7 +722,7 @@ class Entreprise extends WsScore
|
||||
if ($item->PpPm=='PP') {
|
||||
$detail->nom = $item->civilite.' '.$item->nom.' '.$item->Prenom;
|
||||
}
|
||||
$detail->siren = $item->siren;
|
||||
$detail->siren = str_pad($item->siren, 9, "0", STR_PAD_LEFT);
|
||||
$detail->pays = $item->nat;
|
||||
$detail->PDetention = $item->PDetention;
|
||||
$detail->Pvote = $item->Pvote;
|
||||
@ -747,7 +748,8 @@ class Entreprise extends WsScore
|
||||
'naissance_date', 'naissance_dept_pays', 'naissance_lieu', 'nat',
|
||||
'adresse_num', 'adresse_btq', 'adresse_codvoie', 'adresse_libvoie',
|
||||
'adresse_comp', 'adresse_cp', 'adresse_ville', 'adresse_pays'
|
||||
));
|
||||
))
|
||||
->order('PDetention DESC');
|
||||
$liens = $db->fetchAll($sql, null, Zend_Db::FETCH_OBJ);
|
||||
} catch (Zend_Exception $e) {
|
||||
if ($this->tabInfoUser['idClient']!=1) {
|
||||
@ -766,7 +768,7 @@ class Entreprise extends WsScore
|
||||
if ($item->PpPm=='PP') {
|
||||
$detail->nom = $item->civilite.' '.$item->nom.' '.$item->Prenom;
|
||||
}
|
||||
$detail->siren = $item->siren;
|
||||
$detail->siren = str_pad($item->siren, 9, "0", STR_PAD_LEFT);
|
||||
$detail->pays = $item->nat;
|
||||
$detail->PDetention = $item->PDetention;
|
||||
$detail->Pvote = $item->Pvote;
|
||||
|
@ -1652,6 +1652,11 @@ class Saisie extends WsScore
|
||||
//Enregistrer les infos
|
||||
if (empty($id)) {
|
||||
|
||||
$dataLien = array_merge($dataLien, array(
|
||||
'idInsert' => $this->tabInfoUser['id'],
|
||||
'dateInsert' => date('YmdHis'),
|
||||
));
|
||||
|
||||
try {
|
||||
$id = $lienM->insert($dataLien);
|
||||
} catch (Zend_Db_Exception $e) {
|
||||
@ -1665,6 +1670,18 @@ class Saisie extends WsScore
|
||||
//Mise à jour des infos
|
||||
else {
|
||||
|
||||
if ($dataLien['actif']==0) {
|
||||
$dataLien = array_merge($dataLien, array(
|
||||
'idSuppr' => $this->tabInfoUser['id'],
|
||||
'dateSuppr' => date('YmdHis'),
|
||||
));
|
||||
} else {
|
||||
$dataLien = array_merge($dataLien, array(
|
||||
'idUpdate' => $this->tabInfoUser['id'],
|
||||
'dateUpdate' => date('YmdHis'),
|
||||
));
|
||||
}
|
||||
|
||||
try {
|
||||
$id = $lienM->update($dataLien, 'id = '.$id);
|
||||
} catch (Zend_Db_Exception $e) {
|
||||
@ -1762,6 +1779,7 @@ class Saisie extends WsScore
|
||||
|
||||
$dataRef = array_merge($dataRef, array(
|
||||
'idUpdate' => $this->tabInfoUser['id'],
|
||||
'dateUpdate' => date('YmdHis'),
|
||||
));
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user