Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aivlspecificactions
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Partners
CiviCooP
AIVL
aivlspecificactions
Commits
18be4f50
Commit
18be4f50
authored
3 years ago
by
ErikHommel
Browse files
Options
Downloads
Patches
Plain Diff
fix call assignment activity to complete
parent
8688a70f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Civi/Aivlspecificactions/Actions/UpdateCallAssignment.php
+5
-5
5 additions, 5 deletions
Civi/Aivlspecificactions/Actions/UpdateCallAssignment.php
info.xml
+1
-1
1 addition, 1 deletion
info.xml
with
6 additions
and
6 deletions
Civi/Aivlspecificactions/Actions/UpdateCallAssignment.php
+
5
−
5
View file @
18be4f50
...
...
@@ -32,8 +32,8 @@ class UpdateCallAssignment extends AbstractAction {
$specs
->
addSpecification
(
new
Specification
(
'activity_id'
,
'Integer'
,
E
::
ts
(
'Activity ID'
),
TRUE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'result_code'
,
'String'
,
E
::
ts
(
'Result Code'
),
TRUE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'result_description'
,
'String'
,
E
::
ts
(
"Result Description"
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'call_date'
,
'
Date
'
,
E
::
ts
(
'Call Date'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'result_upload_date'
,
'
Date
'
,
E
::
ts
(
'Result Upload Date'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'call_date'
,
'
String
'
,
E
::
ts
(
'Call Date'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'result_upload_date'
,
'
String
'
,
E
::
ts
(
'Result Upload Date'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'call_agent'
,
'String'
,
E
::
ts
(
'Call Agent'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'result_reason_no'
,
'String'
,
E
::
ts
(
'Reason No'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'campaign_name'
,
'String'
,
E
::
ts
(
'TM Campaign Name'
),
FALSE
,
NULL
));
...
...
@@ -41,7 +41,7 @@ class UpdateCallAssignment extends AbstractAction {
$specs
->
addSpecification
(
new
Specification
(
'new_amount'
,
'Money'
,
E
::
ts
(
'New Amount'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'new_frequency'
,
'String'
,
E
::
ts
(
'New Frequency'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'new_iban'
,
'String'
,
E
::
ts
(
'New IBAN'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'new_start_date'
,
'
Date
'
,
E
::
ts
(
'New Mandate Start Date'
),
FALSE
,
NULL
));
$specs
->
addSpecification
(
new
Specification
(
'new_start_date'
,
'
String
'
,
E
::
ts
(
'New Mandate Start Date'
),
FALSE
,
NULL
));
return
$specs
;
}
...
...
@@ -60,7 +60,7 @@ class UpdateCallAssignment extends AbstractAction {
* @throws ExecutionException
*/
public
function
doAction
(
ParameterBagInterface
$parameterBag
,
ParameterBagInterface
$output
)
{
$activityId
=
$parameterBag
->
getParameter
(
'activity_id'
);
$activityId
=
(
int
)
$parameterBag
->
getParameter
(
'activity_id'
);
// only if we have an activity id
if
(
$activityId
)
{
// set params for parameters
...
...
@@ -96,7 +96,7 @@ class UpdateCallAssignment extends AbstractAction {
* @throws ExecutionException
*/
private
function
setCallAssignmentParams
(
ParameterBagInterface
$parameterBag
)
{
$callAssignmentParams
=
[];
$callAssignmentParams
=
[
'status_id'
=>
\Civi
::
service
(
'aivlgeneric'
)
->
getCompletedActivityStatusId
()
];
$this
->
setResultCode
(
$parameterBag
,
$callAssignmentParams
);
$this
->
setCallDate
(
$parameterBag
,
$callAssignmentParams
);
$this
->
setResultUploadDate
(
$parameterBag
,
$callAssignmentParams
);
...
...
This diff is collapsed.
Click to expand it.
info.xml
+
1
−
1
View file @
18be4f50
...
...
@@ -14,7 +14,7 @@
<url
desc=
"Support"
>
https://civicoop.org
</url>
<url
desc=
"Licensing"
>
http://www.gnu.org/licenses/agpl-3.0.html
</url>
</urls>
<releaseDate>
2021-0
6
-1
7
</releaseDate>
<releaseDate>
2021-0
7
-1
5
</releaseDate>
<version>
1.16
</version>
<develStage>
stable
</develStage>
<compatibility>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment