Skip to content

🐛 Order Limit Issues #790

@pnchauanh15-blip

Description

@pnchauanh15-blip

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

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions