Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
add comment
Dave Earleya6e376a0dff6
diff --git a/backend/app/Services/Domain/Ticket/TicketFilterService.php b/backend/app/Services/Domain/Ticket/TicketFilterService.phpindex 1715d11b8..1fcf1439d 100644--- a/backend/app/Services/Domain/Ticket/TicketFilterService.php+++ b/backend/app/Services/Domain/Ticket/TicketFilterService.php@@ -86,7 +86,6 @@ class TicketFilterService});}-$ticket->getTicketPrices()?->map(function (TicketPriceDomainObject $price) use ($ticketQuantities) {$availableQuantity = $ticketQuantities->where('price_id', $price->getId())->first()?->quantity_available;$availableQuantity = $availableQuantity === Constants::INFINITE ? null : $availableQuantity;@@ -95,6 +94,8 @@ class TicketFilterService);});+ // If there is a capacity assigned to the ticket, we set the capacity to capacity available qty, or the sum of all+ // ticket prices qty, whichever is lower$ticketQuantities->each(function (AvailableTicketQuantitiesDTO $quantity) use ($ticket) {if ($quantity->capacities !== null && $quantity->capacities->isNotEmpty() && $quantity->ticket_id === $ticket->getId()) {$ticket->setQuantityAvailable(