🐛 Cancelling an Attendee doesn't cancel associated order(s)
Describe the bug If I cancel an attendee, the associated order is still Open. This enables me to also erroneously cancel the associated order as well. One result in this situation is that the capacity assignment will lower by double the amount (could even go into the negatives), creating a situation where you can sell more tickets than you have space for.
I'm unsure if this affects refunds... would this refund double the money? that would be very bad haha
To Reproduce Steps to reproduce the behavior:
- Create a ticket
- Create a 1-person capacity assignment for that ticket
- Create an attendee manually, for the ticket created in step 1
- Note that the capacity assignment is now full (1/1)
- Cancel the attendee
- Note that the capacity assignment is now 0/1
- Go to the orders page
- Note that the order associated with the attendee is still open
- Cancel the order
- Note that the capacity assignment is now -1/1
Expected behavior I shouldn't be able to do double cancellations. I'm unsure what is right, however. What is the purpose of cancelling an attendee? Does that refund a portion of the order? Refunding one ticket in an order seems like it would be useful.
Screenshots
Desktop (please complete the following information):
- OS: MacOS
- Browser: Brave
Hi.Events Version and platform v0.7.0-beta.3 / Docker