fixed second display

This commit is contained in:
NyanLinHtut
2019-12-18 14:18:59 +06:30
parent 6568c09135
commit 40cd6aacc8
2 changed files with 16 additions and 0 deletions

View File

@@ -14,6 +14,14 @@ class Foodcourt::FoodCourtController < ApplicationController
@menu = []
@cashier_type = "food_court"
#checked quick_service only
display_type = Lookup.find_by_lookup_type("display_type")
if !display_type.nil? && display_type.value.to_i ==2
@display_type = display_type.value
else
@display_type = nil
end
@quick_service_only = true
lookup_dine_in = Lookup.collection_of('dinein_cashier')
if !lookup_dine_in.empty?

View File

@@ -22,6 +22,14 @@ class Origami::FoodCourtController < ApplicationController
@tables = Table.all.active.where("shop_code='#{@shop.shop_code}'").order('status desc')
@rooms = Room.all.active.where("shop_code='#{@shop.shop_code}'").order('status desc')
@cashier_type = "food_court"
display_type = Lookup.find_by_lookup_type("display_type")
if !display_type.nil? && display_type.value.to_i ==2
@display_type = display_type.value
else
@display_type = nil
end
#checked quick_service only
@quick_service_only = true
lookup_dine_in = Lookup.where("shop_code='#{@shop.shop_code}'").collection_of('dinein_cashier')