From b632c7298e930c60e8567abe14d0f4450872f9f0 Mon Sep 17 00:00:00 2001 From: NyanLinHtut Date: Tue, 7 Feb 2023 05:46:53 +0630 Subject: [PATCH] fix modifie order --- app/controllers/foodcourt/orders_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/foodcourt/orders_controller.rb b/app/controllers/foodcourt/orders_controller.rb index 6193572f..2a1b5185 100755 --- a/app/controllers/foodcourt/orders_controller.rb +++ b/app/controllers/foodcourt/orders_controller.rb @@ -121,12 +121,12 @@ class Foodcourt::OrdersController < BaseFoodcourtController end # byebug - @sale_id = @booking.sale_id if @booking @booking_id = @booking.booking_id @obj_order = @booking.orders.first + @order_id = @obj_order.order_id @customer = @obj_order.customer @date = @obj_order.created_at @order_items = @booking.order_items