Commit 9d733a1d authored by jaapjansma's avatar jaapjansma
Browse files

update

parent 0cff8d2a
......@@ -82,17 +82,13 @@ class CreateInscription extends AbstractAction {
protected function getCiviParticipantRole($role) {
switch ($role) {
case 'C2': // Chef de camp
return "Chef";
break;
case 'C1': // Chef de camp adjoint
throw new ExecutionException('Invalid role - '. $role);
return "Chef";
break;
case 'F1': // Chef de stage adjoint
case 'F2': // Chef de stage
return "Chef_de_stage";
break;
case 'F1': // Chef de stage adjoint
throw new ExecutionException('Invalid role - '. $role);
break;
case 'A2': // Animateur
return "Animateur";
break;
......
......@@ -207,7 +207,12 @@
"mapping": {
"organization_name": "input.organizer"
},
"condition_configuration": "",
"condition_configuration": {
"name": "ParameterIsNotEmpty",
"parameter_mapping": {
"parameter": "input.organizer"
}
},
"delay_configuration": ""
},
{
......@@ -222,6 +227,52 @@
"condition_configuration": "",
"delay_configuration": ""
},
{
"name": "age_max",
"title": "Age Max",
"type": "SetValue",
"configuration": {
"value": "99"
},
"mapping": [],
"condition_configuration": {
"name": "CompareParameterValue",
"configuration": {
"comparison": ">=",
"value": "35"
},
"parameter_mapping": {
"parameter": "input.age_max"
},
"output_mapping": {
"value": "input.age_max"
}
},
"delay_configuration": ""
},
{
"name": "min_age",
"title": "Min age",
"type": "SetValue",
"configuration": {
"value": "0"
},
"mapping": [],
"condition_configuration": {
"name": "CompareParameterValue",
"configuration": {
"value": "4",
"comparison": "<"
},
"parameter_mapping": {
"parameter": "input.age_min"
},
"output_mapping": {
"value": "input.age_min"
}
},
"delay_configuration": ""
},
{
"name": "event",
"title": "Event",
......@@ -236,8 +287,8 @@
"start_date": "input.start_date",
"end_date": "input.end_date",
"is_public": "input.is_public",
"custom_event_info_min_age": "input.age_min",
"custom_event_info_max_age": "input.age_max",
"custom_event_info_min_age": "action.min_age.value",
"custom_event_info_max_age": "action.age_max.value",
"custom_event_info_prix": "input.fee",
"custom_event_info_max_participants": "input.max_participants",
"custom_event_info_category": "input.category",
......
......@@ -37,4 +37,4 @@ INNER JOIN `activity_date` `ad` ON `ad`.`activity_id` = `a`.`id`
INNER JOIN `contact` `c` ON `i`.`contact_id` = `c`.`id`
LEFT JOIN `contact_payment` `p` ON `p`.`inscription_id` = `i`.`id` and `p`.`payment` > 0
WHERE `a`.`deleted` = 0 AND YEAR(`ad`.`date_begin`) >= 2019
AND `c`.`is_active`
AND `c`.`is_active` = '1'
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