update add order

This commit is contained in:
Aung Myo
2017-07-07 09:56:18 +06:30
parent 4d3de51e72
commit 2d55ea0dab
11 changed files with 196 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
class Origami::AddordersController < BaseOrigamiController
before_action :set_dining, only: [:show]
def index
@tables = Table.all.active.order('zone_id asc').group("zone_id")
@rooms = Room.all.active.order('zone_id asc').group("zone_id")
@all_table = Table.all.active.order('status desc')
@all_room = Room.all.active.order('status desc')
end
def show
@menu = MenuCategory.all
end
private
def set_dining
@dining = DiningFacility.find(params[:id])
end
end