Merge from branch 2.5
This commit is contained in:
parent
e0095d5d63
commit
2245d33e62
File diff suppressed because it is too large
Load Diff
@ -614,7 +614,7 @@ API keybing = 56D6CBA671C986D3EA11B1B48F97507BE9B46999
|
||||
$this->geocodeur='Cloudmade';
|
||||
$this->precision=0;
|
||||
|
||||
$fileName=REP_TEMP.'geoCodeur'.$this->geocodeur;
|
||||
$fileName=REP_TEMP.'/geoCodeur'.$this->geocodeur;
|
||||
$tmp=@explode(',',file_get_contents($filename));
|
||||
$nbQuery=$tmp[0]*1;
|
||||
|
||||
@ -676,7 +676,7 @@ API keybing = 56D6CBA671C986D3EA11B1B48F97507BE9B46999
|
||||
$this->geocodeur='Yahoo';
|
||||
$this->precision=0;
|
||||
|
||||
$fileName=REP_TEMP.'geoCodeur'.$this->geocodeur;
|
||||
$fileName=REP_TEMP.'/geoCodeur'.$this->geocodeur;
|
||||
$tmp=@explode(',',file_get_contents($filename));
|
||||
$nbQuery=$tmp[0]*1;
|
||||
|
||||
@ -737,7 +737,7 @@ API keybing = 56D6CBA671C986D3EA11B1B48F97507BE9B46999
|
||||
} else
|
||||
$this->codeRetourY='INVALID_REQUEST';
|
||||
} else
|
||||
die('Code Retour Yahoo 200 mais :'.$this->body.EOL);
|
||||
//die('Code Retour Yahoo 200 mais :'.$this->body.EOL);
|
||||
|
||||
if ($this->latitudeDec==0 && ($this->longitudeDec==0 || $this->precision==0)) die('Réponse Yahoo = '.$this->body.EOL);
|
||||
return true;//array("lat"=>$lat,"lng"=>$lng,"address"=>$address);
|
||||
@ -751,7 +751,7 @@ API keybing = 56D6CBA671C986D3EA11B1B48F97507BE9B46999
|
||||
$this->geocodeur='Google';
|
||||
$this->precision=0;
|
||||
|
||||
$fileName=REP_TEMP.'geoCodeur'.$this->geocodeur;
|
||||
$fileName=REP_TEMP.'/geoCodeur'.$this->geocodeur;
|
||||
$tmp=@explode(',',file_get_contents($filename));
|
||||
$nbQuery=$tmp[0]*1;
|
||||
|
||||
@ -844,8 +844,9 @@ API keybing = 56D6CBA671C986D3EA11B1B48F97507BE9B46999
|
||||
$this->codeRetourG=='OVER_QUERY_LIMIT') {
|
||||
return false;
|
||||
} else {
|
||||
echo $url.' ('.$this->codeRetour.')'.EOL;
|
||||
die('Code Retour Google ='.$this->codeRetourG.EOL);
|
||||
return false;
|
||||
//echo $url.' ('.$this->codeRetour.')'.EOL;
|
||||
//die('Code Retour Google ='.$this->codeRetourG.EOL);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
@ -1357,7 +1357,7 @@ class Saisie extends WsScore
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} //End of Mathematic control
|
||||
|
||||
if ( $step == 'onlycheck' ) {
|
||||
|
||||
@ -1381,8 +1381,13 @@ class Saisie extends WsScore
|
||||
}
|
||||
}
|
||||
|
||||
$postesDiff = array();
|
||||
|
||||
if ($row!==null) {
|
||||
|
||||
//Make the diff
|
||||
$postesDiff = array_diff(explode(';', $data->postes), explode(';',$row->postes));
|
||||
|
||||
//Backup in historiques
|
||||
$historiquesM = new Application_Model_HistoriquesBilans();
|
||||
$backupData = $row->toArray();
|
||||
@ -1468,6 +1473,7 @@ class Saisie extends WsScore
|
||||
'dateExercice' => $data->dateCloture,
|
||||
'typeBilan' => $data->typeBilan,
|
||||
'dateAction' => date('YmdHis'),
|
||||
'postesDiff' => implode(';', $postesDiff),
|
||||
));
|
||||
} catch (Zend_Db_Exception $e) {
|
||||
if ($this->tabInfoUser['idClient']!=1) {
|
||||
|
Loading…
Reference in New Issue
Block a user