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

Feature: Add query builder for Campaign Donations #7544

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

kjohnson
Copy link
Member

@kjohnson kjohnson commented Sep 18, 2024

Related GIVE-1221

Description

This PR adds a query builder for campaign donations, which are aggregated from campaign related donation forms.

$query = new CampaignDonationQuery($campaign);
$query->sumIntendedAmount();
$query = new CampaignDonationQuery($campaign);
$query->countDonations();
$query = new CampaignDonationQuery($campaign);
$query->coundDonors();

Pre-review Checklist

  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Self Review of code and UX completed

@kjohnson kjohnson marked this pull request as ready for review September 18, 2024 14:27
Copy link
Member

@alaca alaca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@kjohnson kjohnson merged commit 05fe5be into epic/campaigns Sep 18, 2024
20 checks passed
@kjohnson kjohnson deleted the feature/campaign-donation-query branch September 18, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants