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