shop code
This commit is contained in:
@@ -59,7 +59,7 @@ class Foodcourt::OrdersController < BaseFoodcourtController
|
||||
.joins(" JOIN booking_orders ON booking_orders.booking_id=bookings.booking_id")
|
||||
.joins("JOIN orders ON orders.order_id=booking_orders.order_id")
|
||||
.joins("JOIN customers ON orders.customer_id=customers.customer_id")
|
||||
.where("orders.source='app' and bookings.shop_code='#{@shop.shop_code}' and bookings.booking_id='#{params[:booking_id]}'").first
|
||||
.where("orders.source='app' and bookings.booking_id='#{params[:booking_id]}'").first
|
||||
@customer_id =@booking.customer_id
|
||||
@booking_id =@booking.booking_id
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user