Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
justinfreeman (Agileware)
Core
Commits
1902fe62
Commit
1902fe62
authored
11 years ago
by
lobo
Browse files
Options
Downloads
Plain Diff
Merge pull request #735 from dlobo/CRM-12591
CRM-12591
parents
f873ba92
9341d544
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Report/Form/Event/Income.php
+9
-7
9 additions, 7 deletions
CRM/Report/Form/Event/Income.php
with
9 additions
and
7 deletions
CRM/Report/Form/Event/Income.php
+
9
−
7
View file @
1902fe62
...
...
@@ -221,17 +221,19 @@ class CRM_Report_Form_Event_Income extends CRM_Report_Form_Event {
//e.g. Credit Card, Check,Cash etc
$paymentInstrument
=
"
SELECT c.payment_instrument_id as INSTRUMENT,
COUNT( c
.id )
as participant,
SUM(civicrm_participant.fee_amount
)
as amount,
COUNT( c
ivicrm_participant.id )
as participant,
SUM(
civicrm_participant.fee_amount
)
as amount,
civicrm_participant.event_id as event_id
FROM civicrm_participant
LEFT JOIN
civicrm_participant_payment pp
ON(pp.participant_id = civicrm_participant.id )
FROM civicrm_participant
,
civicrm_participant_payment pp
LEFT JOIN civicrm_contribution c ON ( pp.contribution_id = c.id)
WHERE civicrm_participant.event_id IN (
{
$eventID
}
)
AND
civicrm_participant.is_test = 0
WHERE civicrm_participant.event_id IN (
{
$eventID
}
)
AND
civicrm_participant.is_test = 0
{
$activeParticipantClause
}
AND ((pp.participant_id = civicrm_participant.id )
OR (pp.participant_id = civicrm_participant.registered_by_id ))
GROUP BY c.payment_instrument_id, civicrm_participant.event_id
"
;
...
...
@@ -242,7 +244,7 @@ class CRM_Report_Form_Event_Income extends CRM_Report_Form_Event {
if
(
$instrumentDAO
->
INSTRUMENT
)
{
$instrumentRows
[
$instrumentDAO
->
event_id
][
$paymentInstruments
[
$instrumentDAO
->
INSTRUMENT
]][
'total'
]
=
$instrumentDAO
->
participant
;
$instrumentRows
[
$instrumentDAO
->
event_id
][
$paymentInstruments
[
$instrumentDAO
->
INSTRUMENT
]][
'round'
]
=
round
((
$instrumentDAO
->
participant
/
$count
[
$instrumentDAO
->
event_id
])
*
100
,
2
);
$instrumentRows
[
$instrumentDAO
->
event_id
][
$paymentInstruments
[
$instrumentDAO
->
INSTRUMENT
]][
'amount'
]
=
$instrumentDAO
->
amount
;
$instrumentRows
[
$instrumentDAO
->
event_id
][
$paymentInstruments
[
$instrumentDAO
->
INSTRUMENT
]][
'amount'
]
=
CRM_Utils_Money
::
format
(
$instrumentDAO
->
amount
,
$currency
[
$instrumentDAO
->
event_id
])
;
}
}
$rows
[
'Payment Method'
]
=
$instrumentRows
;
...
...
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