Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
extensions
cc.tadpole.additionalreports
Commits
6c8752fa
Commit
6c8752fa
authored
Nov 29, 2016
by
Kevin Cristiano
🌎
Browse files
add primary email address to Bookkeeping extra report
parent
b0bce9bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRM/Additionalreports/Form/Report/BookkeepingExtra.php
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"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment