update menu category

This commit is contained in:
Aung Myo
2018-02-19 09:12:51 +06:30
parent 4743ab6558
commit 0504a9505b
7 changed files with 168 additions and 36 deletions

View File

@@ -2,7 +2,10 @@ class Origami::QuickServiceController < ApplicationController
# before_action :set_dining, only: [:detail]
def index
@menu = MenuCategory.all.active
today = DateTime.now
day = Date.today.wday
@menus = Menu.all
@menu = MenuCategory.active.where("menu_id =#{@menus[0].id}").order('order_by asc')
@zone = Zone.all
@customer = Customer.all
@tables = Table.all.active.order('status desc')
@@ -15,7 +18,10 @@ class Origami::QuickServiceController < ApplicationController
end
def modify_order
@menu = MenuCategory.all.active
today = DateTime.now
day = Date.today.wday
@menus = Menu.all
@menu = MenuCategory.active.where("menu_id =#{@menus[0].id}").order('order_by asc')
if(params[:id][0,3] == "BKI")
@table_id = nil
@table = nil