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

Can only update a competition's currency code if there are no unrefunded payments #10497

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

Conversation

dunkOnIT
Copy link
Contributor

Addresses #1356 - in draft because I've asked WCAT if this is something that's still needed.

If this is needed, then I think this implementation may be a bit thin. If we get the mega-edge-case of a user having been over-refunded, and another user still having a not-yet-refunded payment, the total amount paid for a competition will be $0 even though there are still two unresolved payments.

As such, it might be better to find a registration with a non-zero sum of its registration_payments

Also - it seems like we don't track the overall status of a payment (eg, whether it has been refunded) - we only infer this by summing registration_payments related to a given registration.

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.

1 participant