fix order update with table and room

This commit is contained in:
pyaephyoeaung
2022-06-03 10:11:18 +06:30
parent 214712fd2d
commit 7485486868
2 changed files with 13 additions and 7 deletions

View File

@@ -95,6 +95,10 @@ class Foodcourt::OrdersController < BaseFoodcourtController
end
def modify_order
@zone = Zone.all
@tables = Table.active.order('status desc')
@rooms = Room.active.order('status desc')
@cashier_type = "food_court"
today = DateTime.now
day = Date.today.wday
@@ -112,6 +116,8 @@ class Foodcourt::OrdersController < BaseFoodcourtController
@booking = @table.get_booking
end
# byebug
@sale_id = @booking.sale_id
if @booking