Commit f00ac057 authored by Raph El's avatar Raph El

Hotfix

parent eb010374
......@@ -6881,23 +6881,23 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
"amount2021" => "",
"amount2022" => ""
] ) ) );
// else if($fk == 'financeursnonprecises' )
// PHDB::update( "answers",
// array("_id"=>new MongoId($a["_id"])),
// array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
// "nature" => $fk,
// "poste" => "Financements Département",
// "amount2019" => "",
// "amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
// "amount2021" => "",
// "amount2022" => ""
// ]) ) );
else if($fk == 'financeursnonprecises' )
PHDB::update( "answers",
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"nature" => "autre",
"poste" => "Financements Autre",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
"amount2021" => "",
"amount2022" => ""
]) ) );
else if($fk == 'autofinancement' )
PHDB::update( "answers",
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"nature" => "acteursocioeco",
"poste" => "Fonds Propres",
"poste" => "Autofinancement Porteur projet",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
"amount2021" => "",
......@@ -6919,23 +6919,23 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"nature" => "acteursocioeco",
"poste" => "Divers financements privés",
"poste" => "Banque",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
"amount2021" => "",
"amount2022" => ""
]) ) );
else if($fk == 'colautofinancement)' )
PHDB::update( "answers",
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"nature" => "colfinanceur",
"poste" => "Autofinancement Collectivité",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
"amount2021" => "",
"amount2022" => ""
]) ) );
//else if($fk == 'colautofinancement)' )
// PHDB::update( "answers",
// array("_id"=>new MongoId($a["_id"])),
// array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
// "nature" => $fk,
// "poste" => "Autofinancement - collectivité (revenus)",
// "amount2019" => "",
// "amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
// "amount2021" => "",
// "amount2022" => ""
// ]) ) );
else if($fk == 'colfinanceur' )
PHDB::update( "answers",
array("_id"=>new MongoId($a["_id"])),
......@@ -7018,7 +7018,7 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"nature" => "acteursocioeco",
"poste" => "Acteurs socio-économiques",
"poste" => "Chambre consulaire",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
"amount2021" => "",
......@@ -7040,7 +7040,7 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"nature" => "acteursocioecot",
"poste" => "Acteurs socio-économiques",
"poste" => "Fondations",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
"amount2021" => "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment