update crm addore
This commit is contained in:
@@ -10,7 +10,6 @@ class Origami::AddordersController < ApplicationController#BaseOrigamiController
|
||||
|
||||
def detail
|
||||
@menu = MenuCategory.all.active
|
||||
#@menu = MenuCategory.where("menu_category_id is NULL").active
|
||||
@table_id = params[:id]
|
||||
@table = DiningFacility.find(@table_id)
|
||||
@booking = @table.get_booking
|
||||
@@ -44,6 +43,17 @@ class Origami::AddordersController < ApplicationController#BaseOrigamiController
|
||||
MenuCategory.current_menu
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def get_menu_sub_category ()
|
||||
id = params[:id]
|
||||
if (id)
|
||||
#Pull this menu
|
||||
@sub_menu = MenuCategory.where("menu_category_id = #{id}").active
|
||||
# puts @menu.menu_items[1].item_attributes.to_json
|
||||
return @sub_menu
|
||||
end
|
||||
end
|
||||
|
||||
def get_all_product()
|
||||
@product = Product.all
|
||||
|
||||
Reference in New Issue
Block a user