Correction lorsque pas d'événements
This commit is contained in:
parent
23ed8043c7
commit
633072c25e
@ -360,7 +360,7 @@ class Interne extends WsScore
|
||||
foreach($tabJugement->even->item as $even){
|
||||
$tabEven[] = $even->code;
|
||||
}
|
||||
} else {
|
||||
} elseif (!empty($tabJugement->even->item->code)) {
|
||||
$tabEven[] = $tabJugement->even->item->code;
|
||||
}
|
||||
$nic = $tabJugement->nic*1;
|
||||
@ -370,7 +370,8 @@ class Interne extends WsScore
|
||||
$tabEven[0]->code = 6600;
|
||||
}
|
||||
|
||||
if ( count($tabEven)>0 ){
|
||||
if ( count($tabEven)>0 )
|
||||
{
|
||||
$idAdmin = str_replace('m','',trim($tabJugement->admin));
|
||||
$idMand = str_replace('m','',trim($tabJugement->mand));
|
||||
$idOppo = str_replace('m','',trim($tabJugement->oppo));
|
||||
@ -484,9 +485,11 @@ class Interne extends WsScore
|
||||
}
|
||||
}
|
||||
}
|
||||
//Fin insertion jugement
|
||||
|
||||
// Insertion actionnaire
|
||||
if ( trim($tabActio->siren)!='' ) {
|
||||
if ( trim($tabActio->siren)!='' )
|
||||
{
|
||||
$nom = $pays = $dateMAJ = '';
|
||||
$ppPm = 'P';
|
||||
$pct = trim(str_replace(',','.',$tabActio->pct))*1;
|
||||
@ -533,11 +536,13 @@ class Interne extends WsScore
|
||||
'actif'=> 1,
|
||||
'source'=> 1900,
|
||||
'dateInsert'=> date('YmdHis'))
|
||||
);
|
||||
); Zend_Registry::get('WsLogger')->info('INSERTION ACTIONNAIRE : '.print_r($tabInsert1, 1));
|
||||
$res = $iDb->select('liens', 'count(*)',
|
||||
"Siren1=$siren AND (Siren2=$siren2 OR (RaisonSociale='$nom' AND Pays='$pays'))");
|
||||
if ($res[0][0]>0) {
|
||||
if (!$iDb->update('liens', array_merge($tabUpdate,array('ActionPart'=>1)), "siren=$siren AND (Siren2=$siren2 OR (RaisonSociale='$nom' AND Pays='$pays'))", true))
|
||||
if (!$iDb->update('liens', array_merge(
|
||||
$tabUpdate, array('ActionPart'=>1)),
|
||||
"siren=$siren AND (Siren2=$siren2 OR (RaisonSociale='$nom' AND Pays='$pays'))", true))
|
||||
$errMaj=1016166;
|
||||
} else {
|
||||
if (!$iDb->insert('liens', $tabInsert1, true))
|
||||
@ -1635,8 +1640,6 @@ class Interne extends WsScore
|
||||
require_once 'Metier/partenaires/classMMarques.php';
|
||||
$iMarque = new MMarques();
|
||||
$ret = $iMarque->getMarques($siren, $idDepot);
|
||||
Zend_Registry::get('WsLogger')->info(__FUNCTION__.' : '.
|
||||
print_r($ret,1));
|
||||
|
||||
foreach ($ret as $item) {
|
||||
if (trim($item['imgLink'])<>'') $idLien = $item['numeroMarque'];
|
||||
|
Loading…
Reference in New Issue
Block a user