Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
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
Development
CiviCRM Core
Commits
ac07befa
Unverified
Commit
ac07befa
authored
7 months ago
by
DaveD
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #31145 from MegaphoneJon/sybunt-cleanup
sybunt report cleanup
parents
edd31448
1e867c2c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Report/Form/Contribute/Sybunt.php
+7
-96
7 additions, 96 deletions
CRM/Report/Form/Contribute/Sybunt.php
with
7 additions
and
96 deletions
CRM/Report/Form/Contribute/Sybunt.php
+
7
−
96
View file @
ac07befa
...
...
@@ -52,101 +52,12 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
$date
[
'minYear'
]
++
;
}
$this
->
_columns
=
[
'civicrm_contact'
=>
[
'dao'
=>
'CRM_Contact_DAO_Contact'
,
'grouping'
=>
'contact-field'
,
'fields'
=>
[
'sort_name'
=>
[
'title'
=>
ts
(
'Donor Name'
),
'required'
=>
TRUE
,
],
'first_name'
=>
[
'title'
=>
ts
(
'First Name'
),
],
'middle_name'
=>
[
'title'
=>
ts
(
'Middle Name'
),
],
'last_name'
=>
[
'title'
=>
ts
(
'Last Name'
),
],
'id'
=>
[
'no_display'
=>
TRUE
,
'required'
=>
TRUE
,
],
'gender_id'
=>
[
'title'
=>
ts
(
'Gender'
),
],
'birth_date'
=>
[
'title'
=>
ts
(
'Birth Date'
),
],
'age'
=>
[
'title'
=>
ts
(
'Age'
),
'dbAlias'
=>
'TIMESTAMPDIFF(YEAR, contact_civireport.birth_date, CURDATE())'
,
],
'contact_type'
=>
[
'title'
=>
ts
(
'Contact Type'
),
],
'contact_sub_type'
=>
[
'title'
=>
ts
(
'Contact Subtype'
),
],
],
'order_bys'
=>
[
'sort_name'
=>
[
'title'
=>
ts
(
'Last Name, First Name'
),
'default'
=>
'1'
,
'default_weight'
=>
'0'
,
'default_order'
=>
'ASC'
,
],
'first_name'
=>
[
'name'
=>
'first_name'
,
'title'
=>
ts
(
'First Name'
),
],
'gender_id'
=>
[
'name'
=>
'gender_id'
,
'title'
=>
ts
(
'Gender'
),
],
'birth_date'
=>
[
'name'
=>
'birth_date'
,
'title'
=>
ts
(
'Birth Date'
),
],
'age_at_event'
=>
[
'name'
=>
'age_at_event'
,
'title'
=>
ts
(
'Age at Event'
),
],
'contact_type'
=>
[
'title'
=>
ts
(
'Contact Type'
),
],
'contact_sub_type'
=>
[
'title'
=>
ts
(
'Contact Subtype'
),
],
],
'filters'
=>
[
'sort_name'
=>
[
'title'
=>
ts
(
'Donor Name'
),
'operator'
=>
'like'
,
],
'id'
=>
[
'title'
=>
ts
(
'Contact ID'
),
'no_display'
=>
TRUE
,
],
'gender_id'
=>
[
'title'
=>
ts
(
'Gender'
),
'operatorType'
=>
CRM_Report_Form
::
OP_MULTISELECT
,
'options'
=>
CRM_Contact_DAO_Contact
::
buildOptions
(
'gender_id'
),
],
'birth_date'
=>
[
'title'
=>
ts
(
'Birth Date'
),
'operatorType'
=>
CRM_Report_Form
::
OP_DATE
,
],
'contact_type'
=>
[
'title'
=>
ts
(
'Contact Type'
),
],
'contact_sub_type'
=>
[
'title'
=>
ts
(
'Contact Subtype'
),
],
],
],
$this
->
_columns
=
array_merge
(
$this
->
getColumns
(
'Contact'
,
[
'order_bys_defaults'
=>
[
'sort_name'
=>
'ASC '
],
'fields_required'
=>
[
'sort_name'
],
'filters_defaults'
=>
[
'is_deleted'
=>
0
],
'no_field_disambiguation'
=>
TRUE
,
]),
[
'civicrm_line_item'
=>
[
'dao'
=>
'CRM_Price_DAO_LineItem'
,
],
...
...
@@ -178,7 +89,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
],
],
],
];
]
)
;
$this
->
_columns
+=
$this
->
addAddressFields
();
$this
->
_columns
+=
[
'civicrm_contribution'
=>
[
...
...
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