From d3395d6a376ba01cd722278d6ca25cae0169a4be Mon Sep 17 00:00:00 2001 From: pyaephyoeaung Date: Mon, 21 Feb 2022 11:20:16 +0630 Subject: [PATCH] add table to order, add numpad to order edit --- .../foodcourt/food_court_controller.rb | 3 + app/views/foodcourt/addorders/detail.html.erb | 82 ++++++++++++++++++- app/views/foodcourt/payments/show.html.erb | 7 ++ app/views/foodcourt/sale_edit/edit.html.erb | 56 ++++++++++++- 4 files changed, 146 insertions(+), 2 deletions(-) diff --git a/app/controllers/foodcourt/food_court_controller.rb b/app/controllers/foodcourt/food_court_controller.rb index 10c4686f..240777a0 100644 --- a/app/controllers/foodcourt/food_court_controller.rb +++ b/app/controllers/foodcourt/food_court_controller.rb @@ -17,6 +17,9 @@ class Foodcourt::FoodCourtController < ApplicationController end end + @zone = Zone.all + @tables = Table.active.order('status desc') + @rooms = Room.active.order('status desc') today = DateTime.now day = Date.today.wday diff --git a/app/views/foodcourt/addorders/detail.html.erb b/app/views/foodcourt/addorders/detail.html.erb index 1a07c3b4..d695a106 100644 --- a/app/views/foodcourt/addorders/detail.html.erb +++ b/app/views/foodcourt/addorders/detail.html.erb @@ -13,6 +13,7 @@ +