issue #0001771 : Last change

This commit is contained in:
Michael RICOIS 2013-11-13 13:43:51 +00:00
parent dea86da46f
commit e6b856d579

View File

@ -4976,7 +4976,7 @@ class Entreprise extends WsScore
foreach ( $rows as $row ) {
$item = new Subvention();
$item->Id;
$item->Id = $row->id;
if ( $row->sirenAsso == $companyId ) {
$item->Type = 'IN';
} elseif ( $row->sirenOrigine == $companyId ) {
@ -5028,7 +5028,7 @@ class Entreprise extends WsScore
$item->OrigineSiren = $data->sirenOrigine;
$item->OrigineLib = $data->libOrigine;
$item->Programme = $data->libImputation;
$item->Montant = $row->mtSubvention;
$item->Montant = $data->mtSubvention;
$item->SubventionObjet = $data->objetSubvention;
$item->SubventionEval = $data->evalSubvention;
$item->Mission = $data->mission;