-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
base: main
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @gustavlrsn and the rest of your teammates on Graphite |
c8a1e1e
to
e0a56eb
Compare
e0a56eb
to
001e98e
Compare
...(transactionType === 'CREDIT_WITH_HOST_FEE_AND_PAYMENT_PROCESSOR_FEE' && { | ||
OrderId: { [Op.not]: null }, | ||
}), |
There was a problem hiding this comment.
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 } }, |
There was a problem hiding this comment.
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.
Description
Make sure to only include payment processor fee transactions for contributions when calculating net amount received.