This commit is contained in:
Myat Zin Wai Maw
2019-12-04 14:18:37 +06:30
parent 0b98f3a149
commit 6c1b6fe79f
3 changed files with 22 additions and 13 deletions

View File

@@ -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