all info details in oqs
This commit is contained in:
@@ -22,6 +22,22 @@ class Oqs::HomeController < BaseOqsController
|
||||
@queue_stations_items
|
||||
end
|
||||
|
||||
# Get Order items
|
||||
def get_order_items
|
||||
items = []
|
||||
table_name = params[:table_id]
|
||||
dining = DiningFacility.find_by_name(table_name);
|
||||
booking_id = dining.get_current_booking
|
||||
BookingOrder.where("booking_id='#{ booking_id }'").find_each do |bo|
|
||||
order=Order.find(bo.order_id);
|
||||
order.order_items.each do |oi|
|
||||
items.push(oi)
|
||||
end
|
||||
end
|
||||
|
||||
render :json => items.to_json
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user