Skip to content

Conversation

@shahrukh-compuco
Copy link
Contributor

@shahrukh-compuco shahrukh-compuco commented Nov 24, 2025

Overview

Currently when a contribution of amount 0 is created either through membership purchase or event registration it gets created with pending status. This PR fixes this issue and now 0 amount contributions will get created with completed status.

Technical Details

In this commit we added an event listener that runs whenever a payment is made or contribution is created or updated, it calculates and updates the contribution status based upon total amount and paid amount. But we dont want it to run for contributions that have amount as 0 so we don't update the status for 0 amount contributions as these should always be in completed status since there is no payment to be made.

@shahrukh-compuco
Copy link
Contributor Author

@codex review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an issue where contributions with a zero amount were incorrectly created with "pending" status instead of "completed" status. The fix ensures that the contribution payment listener ignores zero-amount contributions, allowing them to maintain their correct "completed" status.

Key Changes:

  • Added a filter to exclude zero-amount contributions from status recalculation logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shahrukh-compuco shahrukh-compuco force-pushed the asesprt-783-fix-contribution-status branch from cb011fb to 9efe6b7 Compare November 24, 2025 09:15
@shahrukh-compuco shahrukh-compuco force-pushed the asesprt-783-fix-contribution-status branch from 9efe6b7 to eab093c Compare November 24, 2025 09:25
Copy link
Member

@erawat erawat left a comment

Choose a reason for hiding this comment

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

@shahrukh-compuco The PR looks good, approved BUT can you update the description to link to the actual PR or commit not the workstream's merge PR.

@shahrukh-compuco
Copy link
Contributor Author

@shahrukh-compuco The PR looks good, approved BUT can you update the description to link to the actual PR or commit not the workstream's merge PR.

done

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.

3 participants