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

More robustness around cart<->invoice linkage #145

Open
jamezpolley opened this issue Jan 1, 2018 · 0 comments
Open

More robustness around cart<->invoice linkage #145

jamezpolley opened this issue Jan 1, 2018 · 0 comments

Comments

@jamezpolley
Copy link

We've ended up with a situation where one of our attendees has a single cart linked to two paid invoices.

The invoices have successive numbers, so I suspect they've double-clicked the submit button or something similar.

This was the cart had that had their TICKET_PRODUCT_CATEGORY item in - so they now have two tickets for the conference.

We've refunded one of the invoices - fortunately, this was a speaker so there's no money involved. But that now means that the cart is linked to a VOID invoice so the items are listed as cancelled rather than paid.

I think this would be better with some db-level integrity checking. I haven't looked at the models yet, but I don't imagine it's as simple as making the invoice<-> cart relationship 1:1 - a cart might be on several VOID invoices but should only have one PAID invoice. I don't think a UNIQUE_TOGETHER constraint is going to help either, as a cart might be on two VOID invoices

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

1 participant