Commit 026883e1 authored by Raph El's avatar Raph El

Modif bash

parent ad02407f
......@@ -209,8 +209,8 @@ class DatamigrationController extends CommunecterController {
array( "priorisation" => array('$exists' => 0) ),
array( "priorisation" => array('$nin' => array(
Ctenat::STATUT_ACTION_VALID,
//Ctenat::STATUT_ACTION_MATURATION,
Ctenat::STATUT_ACTION_LAUREAT,
Ctenat::STATUT_ACTION_MATURATION,
//Ctenat::STATUT_ACTION_LAUREAT,
Ctenat::STATUT_ACTION_REFUSE,
Ctenat::STATUT_ACTION_CANDIDAT,
Ctenat::STATUT_ACTION_CONTRACT))),
......@@ -241,9 +241,9 @@ class DatamigrationController extends CommunecterController {
}else if($v["priorisation"] == "selected"){
$prio = Ctenat::STATUT_ACTION_VALID;
}else if($v["priorisation"] == "reserved"){
$prio = Ctenat::STATUT_ACTION_LAUREAT;
}else if($v["priorisation"] == Ctenat::STATUT_ACTION_MATURATION){
$prio = Ctenat::STATUT_ACTION_LAUREAT;
$prio = Ctenat::STATUT_ACTION_MATURATION;
}else if($v["priorisation"] == Ctenat::STATUT_ACTION_LAUREAT){
$prio = Ctenat::STATUT_ACTION_MATURATION;
}
} else {
if( $cter["slug"] == "cteNordArdeche" || $cter["slug"] == "cteSudArdeche" )
......@@ -7023,7 +7023,7 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"financerType" => $fk,
"title" => "Total financements collectivités",
"title" => "Financements collectivités",
"financer" => "",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
......@@ -7059,7 +7059,7 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"financerType" => $fk,
"title" => "Total Services et agences de l'état",
"title" => "Divers Financements Etat",
"financer" => "",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
......@@ -7118,8 +7118,8 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
PHDB::update( "answers",
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"financerType" => $fk,
"title" => "Acteurs socio-économiques",
"financerType" => "agenceLeau",
"title" => "Total Financements Agence de l'eau",
"amount2019" => "",
"amount2020" => $a[ "answers"][ $slug ][ "answers"][ "financement"][$fk]["total"],
"amount2021" => "",
......@@ -7129,8 +7129,8 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
PHDB::update( "answers",
array("_id"=>new MongoId($a["_id"])),
array('$push' => array("answers.".$slug.".answers.murir.planFinancement" => [
"financerType" => "acteursocioecot",
"title" => "Fondations",
"financerType" => "acteursocioeco",
"title" => "Financement provenant de 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