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

Fix sumCollectiveTransactions #9764

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gustavlrsn
Copy link
Member

@gustavlrsn gustavlrsn commented Jan 31, 2024

Description

Make sure to only include payment processor fee transactions for contributions when calculating net amount received.

Copy link
Member Author

gustavlrsn commented Jan 31, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @gustavlrsn and the rest of your teammates on Graphite Graphite

@gustavlrsn gustavlrsn marked this pull request as ready for review January 31, 2024 14:51
@gustavlrsn gustavlrsn force-pushed the 01-31-Fix_sumCollectiveTransactions branch from c8a1e1e to e0a56eb Compare February 6, 2024 12:26
@gustavlrsn gustavlrsn force-pushed the 01-31-Fix_sumCollectiveTransactions branch from e0a56eb to 001e98e Compare February 6, 2024 13:27
Comment on lines +623 to +625
...(transactionType === 'CREDIT_WITH_HOST_FEE_AND_PAYMENT_PROCESSOR_FEE' && {
OrderId: { [Op.not]: null },
}),
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a detailed comment to explain what's going on here?

[Op.or]: [
{ type: CREDIT },
{ type: DEBIT, kind: 'HOST_FEE' },
{ type: DEBIT, kind: 'PAYMENT_PROCESSOR_FEE', OrderId: { [Op.not]: null } },
Copy link
Member

Choose a reason for hiding this comment

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

Now that I'm looking at it again, would be great to add a comment to explain why we're doing it.

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.

None yet

2 participants