Skip to content
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/financial#72 Filter contribution status lists for batch creation and update #15472

Merged
merged 2 commits into from
Oct 13, 2019

Conversation

ejegg
Copy link
Contributor

@ejegg ejegg commented Oct 9, 2019

Overview

Use a standard function to create contribution status dropdowns for batch contribution entry and batch pending contribution status update task.

Before

Irrelevant statuses are offered when users are trying to update or enter a batch of contributions. When a developer adds a new status, they have to update filters in many places in code.

After

Batch entry and update status dropdowns are filtered through a common function which takes context into account.

Technical Details

Clarifies bulk update dropdown filtering (which should move) to unset by name instead of int.

Comments

Anything else you would like the reviewer to note

ejegg added 2 commits October 9, 2019 19:33
Replacing pseudoConstant calls with BAO buildOptions in 'search'
context.

This commit is only intended to touch places where we are building
a list of options to offer to the user, not places where we are
displaying results.

In practice this doesn't remove any currently available statuses,
but now we can filter our the proposed 'Template' status.
Replacing pseudoconstant calls in batch creation/update using
CRM_Contribute_BAO_Contribution_Utils::getContributionStatuses().

This actually changes the list of options offered, but all the
ones it removes should probably already have been gone.
@civibot
Copy link

civibot bot commented Oct 9, 2019

(Standard links)

@civibot civibot bot added the master label Oct 9, 2019
@mattwire
Copy link
Contributor

Thanks @ejegg

@mattwire mattwire merged commit 3ca1720 into civicrm:master Oct 13, 2019
@ejegg ejegg deleted the contribStatusUpdate branch October 15, 2019 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants