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
ISSUE 221 - Don't include cancelled attendees in check-in list count
Dave Earleye5fc884cf45b
diff --git a/backend/app/Repository/Eloquent/CheckInListRepository.php b/backend/app/Repository/Eloquent/CheckInListRepository.phpindex a2a829289..45d804461 100644--- a/backend/app/Repository/Eloquent/CheckInListRepository.php+++ b/backend/app/Repository/Eloquent/CheckInListRepository.php@@ -5,6 +5,7 @@ namespace HiEvents\Repository\Eloquent;use HiEvents\DomainObjects\CheckInListDomainObject;use HiEvents\DomainObjects\Generated\CapacityAssignmentDomainObjectAbstract;use HiEvents\DomainObjects\Generated\CheckInListDomainObjectAbstract;+use HiEvents\DomainObjects\Status\AttendeeStatus;use HiEvents\Http\DTO\QueryParamsDTO;use HiEvents\Models\CheckInList;use HiEvents\Repository\DTO\CheckedInAttendeesCountDTO;@@ -65,6 +66,7 @@ class CheckInListRepository extends BaseRepository implements CheckInListRepositpublic function getCheckedInAttendeeCountByIds(array $checkInListIds): Collection{$placeholders = implode(',', array_fill(0, count($checkInListIds), '?'));+ $attendeeActiveStatus = AttendeeStatus::ACTIVE->name;$sql = <<<SQLWITH valid_check_ins AS (@@ -79,6 +81,7 @@ class CheckInListRepository extends BaseRepository implements CheckInListRepositJOIN ticket_check_in_lists tcil ON a.ticket_id = tcil.ticket_idWHERE a.deleted_at IS NULLAND tcil.deleted_at IS NULL+ AND a.status = '$attendeeActiveStatus')SELECTcil.id AS check_in_list_id,