Skip to content

Commit

Permalink
reservation price
Browse files Browse the repository at this point in the history
  • Loading branch information
piguycs committed Apr 7, 2024
1 parent b037868 commit 38ec036
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions app/repository/EventRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 38ec036

Please sign in to comment.