-
-
Notifications
You must be signed in to change notification settings - Fork 563
Description
Describe the bug
When a user places an order with the exact maximum number of tickets allowed for a package, and then returns to the booking page, the package incorrectly shows as Sold out. This also prevents other users or orders from being modified. Even after canceling all attendees, the system does not restore the ticket availability.
To Reproduce
Steps to reproduce:
Create a ticket package with a maximum limit (e.g., Max = 5).
Place an order for the full Max quantity (e.g., 5 tickets).
Return to the booking page and attempt to place another order.
The package appears as Sold out and no changes can be made to other orders.
Cancel all attendees for the order.
Check the ticket package again — it still appears as Sold out, and availability is not restored.
Expected behavior
If the user has not completed the order (order still on the order page), they should be able to return and adjust the ticket quantity within the available limit.
If the user cancels all attendees, the system should immediately release the reserved tickets back into availability so that other users can continue booking.
Screenshots
Desktop (please complete the following information):
OS: Windows 11
Browser: Chrome
Version: 140.0.0.0
Smartphone (please complete the following information):
Device: iPhone 13
OS: iOS 17
Browser: Safari
Version: Latest
Hi.Events Version and platform
Version: Hi.Events SaaS (cloud-hosted).
Additional context
The issue appears to be caused by the system not properly updating ticket availability after order cancellation or while an order is still pending. This leads to tickets being locked incorrectly and prevents further sales.