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

attendees report says attendees have registered if they have *any* invoices, not just paid invoices #129

Open
chrisjrn opened this issue Jun 15, 2017 · 2 comments

Comments

@chrisjrn
Copy link
Owner

The crux is that this bit of code doesn't actually filter as expected:

    attendees = attendees.annotate(
        has_registered=Count(
            Q(user__invoice__status=commerce.Invoice.STATUS_PAID)
        ),
    )

Instead, it just counts all invoices attached to a user.

@chrisjrn
Copy link
Owner Author

@jamezpolley
Copy link

Seems to be a dupe of #123

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

No branches or pull requests

2 participants