-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/core#682 Add basic contact filters to Summary Contributions Report #13498
Conversation
(Standard links)
|
@francescbassas thanks for the PR. But I'm confused. Your description and your code don't seem to match. From your description you are adding filters, but your code isn't doing that, it's just changing the default value for |
Thanks @colemanw for reviewing. Filters added on line 84 at CRM/Report/Form/Contribute/Summary.php using the funcion getBasicContactFilters. |
Sorry I missed that. |
Its purpose is to avoid the default behavior of the function getBasicContactFilters (exclude deceased contacts). Setting to NULL report not filter for is_deceased field. In general, in a contribution report, you are interested in showing all contributions regardless of whether or not you are dealing with deceased contacts or not. I found a related discussion in this dismissed PR #11244. |
Ok that makes sense. A more forward-looking solution might be to have the function take an array of Then the line could read
|
And in this case be called something like |
Yes that's my idea. |
cced95b
to
e547825
Compare
e547825
to
1ebe1a5
Compare
Ok @colemanw suggestions applied. There is a failing test that I find difficult to digest. You see what the problem is? |
@civicrm-builder retest this please |
I tested this and it looks great to me. I think it is ready to be merged. |
Merging as per @alifrumin Review and everything else looks fine to me me |
Nice work everyone. |
Thanks all! |
Overview
Contributions of deleted contacts are shown on Summary Contributions Report. Adding basic contact filters to the Summary Contributions Report will prevent these "deleted" contributions from being included. In addition it will enable new possibilities when applying contact filters to the report.
Before
After
Comments
As a summary report we are interested to include deceased contacts. For these reason we add a new param to the
getBasicContactFilters()
function.