Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc.tadpole.additionalreports
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
Container Registry
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
extensions
cc.tadpole.additionalreports
Commits
6c8752fa
Commit
6c8752fa
authored
8 years ago
by
Kevin Cristiano
Browse files
Options
Downloads
Patches
Plain Diff
add primary email address to Bookkeeping extra report
parent
b0bce9bd
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/Additionalreports/Form/Report/BookkeepingExtra.php
+21
-0
21 additions, 0 deletions
CRM/Additionalreports/Form/Report/BookkeepingExtra.php
with
21 additions
and
0 deletions
CRM/Additionalreports/Form/Report/BookkeepingExtra.php
+
21
−
0
View file @
6c8752fa
...
...
@@ -154,6 +154,21 @@ class CRM_Additionalreports_Form_Report_BookkeepingExtra extends CRM_Report_Form
),
),
),
'civicrm_email'
=>
array
(
'dao'
=>
'CRM_Core_DAO_Email'
,
'fields'
=>
array
(
'email'
=>
array
(
'title'
=>
ts
(
'Email'
),
'no_repeat'
=>
TRUE
,
),
),
'grouping'
=>
'contact-fields'
,
'order_bys'
=>
array
(
'email'
=>
array
(
'title'
=>
ts
(
'Email'
),
),
),
),
'civicrm_membership'
=>
array
(
'dao'
=>
'CRM_Member_DAO_Membership'
,
'fields'
=>
array
(
...
...
@@ -452,6 +467,12 @@ class CRM_Additionalreports_Form_Report_BookkeepingExtra extends CRM_Report_Form
LEFT JOIN civicrm_batch batch
ON ent_batch.batch_id = batch.id"
;
}
if
(
$this
->
isTableSelected
(
'civicrm_email'
))
{
$this
->
_from
.
=
"
LEFT JOIN civicrm_email
{
$this
->
_aliases
[
'civicrm_email'
]
}
ON (
{
$this
->
_aliases
[
'civicrm_contact'
]
}
.id =
{
$this
->
_aliases
[
'civicrm_email'
]
}
.contact_id AND
{
$this
->
_aliases
[
'civicrm_email'
]
}
.is_primary = 1) "
;
}
$this
->
getPermissionedFTQuery
(
$this
,
"civicrm_line_item_1"
);
}
...
...
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