fixed second display
This commit is contained in:
@@ -14,6 +14,14 @@ class Foodcourt::FoodCourtController < ApplicationController
|
|||||||
@menu = []
|
@menu = []
|
||||||
@cashier_type = "food_court"
|
@cashier_type = "food_court"
|
||||||
#checked quick_service only
|
#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
|
@quick_service_only = true
|
||||||
lookup_dine_in = Lookup.collection_of('dinein_cashier')
|
lookup_dine_in = Lookup.collection_of('dinein_cashier')
|
||||||
if !lookup_dine_in.empty?
|
if !lookup_dine_in.empty?
|
||||||
|
|||||||
@@ -22,6 +22,14 @@ class Origami::FoodCourtController < ApplicationController
|
|||||||
@tables = Table.all.active.where("shop_code='#{@shop.shop_code}'").order('status desc')
|
@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')
|
@rooms = Room.all.active.where("shop_code='#{@shop.shop_code}'").order('status desc')
|
||||||
@cashier_type = "food_court"
|
@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
|
#checked quick_service only
|
||||||
@quick_service_only = true
|
@quick_service_only = true
|
||||||
lookup_dine_in = Lookup.where("shop_code='#{@shop.shop_code}'").collection_of('dinein_cashier')
|
lookup_dine_in = Lookup.where("shop_code='#{@shop.shop_code}'").collection_of('dinein_cashier')
|
||||||
|
|||||||
Reference in New Issue
Block a user