From 38ec036876467a4adfc9393fa0a187fda26d8dd2 Mon Sep 17 00:00:00 2001 From: thepiguy Date: Sun, 7 Apr 2024 18:54:59 +0200 Subject: [PATCH] reservation price --- app/repository/EventRepository.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/repository/EventRepository.php b/app/repository/EventRepository.php index 37ef1ce..dffb45b 100644 --- a/app/repository/EventRepository.php +++ b/app/repository/EventRepository.php @@ -31,18 +31,12 @@ public function get_jazz_query(): string public function get_yummy_query(): string { $queryYummyAdult = 'SELECT "YUMMY" as Type, - s.SessionID as ID, r.PriceAdult as Price, s.RemainingSeats as TotalTickets, s.StartDateTime, s.EndDateTime, - s.Description as Name, r.FoodImg1 as Img, r.Location as Venue + s.SessionID as ID, 10 as Price, s.RemainingSeats as TotalTickets, s.StartDateTime, s.EndDateTime, + CONCAT(s.Description, " (Reservation)") as Name, r.FoodImg1 as Img, r.Location as Venue FROM Session as s JOIN Restaurant as r ON s.RestaurantID = r.RestaurantID'; - $queryYummyChild = 'SELECT "CHILD_YUMMY" as Type, - s.SessionID as ID, r.PriceChild as Price, s.RemainingSeats as TotalTickets, s.StartDateTime, s.EndDateTime, - CONCAT(s.Description, " - Child Ticket") as Name, r.FoodImg1 as Img, r.Location as Venue - FROM Session as s - JOIN Restaurant as r ON s.RestaurantID = r.RestaurantID'; - - $queryYummy = "$queryYummyAdult UNION $queryYummyChild"; + $queryYummy = "$queryYummyAdult"; return $queryYummy; }