update access code in spereat view

This commit is contained in:
Aung Myo
2018-05-04 18:10:00 +06:30
parent 0e7c0e7a3e
commit d0b14cf81b
5 changed files with 159 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ class Origami::AddordersController < BaseOrigamiController
end
@menus = Menu.all
@menu = MenuCategory.active.where("menu_id =#{@menus[0].id}").order('order_by asc')
@table_id = params[:id]
@table = DiningFacility.find(@table_id)
@booking = @table.get_booking

View File

@@ -5,8 +5,10 @@ class Origami::SaleEditController < BaseOrigamiController
sale_id = params[:sale_id]
if params[:table_id]
@table_id = params[:table_id]
@table_type = DiningFacility.find(@table_id).type
else
@table_id = nil
@table_type = nil
end
@cashier_type = params[:type]