From cf86fcc24801a1166528d26694a854b26a77d485 Mon Sep 17 00:00:00 2001 From: Thein Lin Kyaw Date: Sat, 5 Sep 2020 18:34:54 +0630 Subject: [PATCH] fix origami table no booking --- app/controllers/origami/home_controller.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/controllers/origami/home_controller.rb b/app/controllers/origami/home_controller.rb index 2f1cba36..d7a0ea49 100755 --- a/app/controllers/origami/home_controller.rb +++ b/app/controllers/origami/home_controller.rb @@ -58,7 +58,7 @@ class Origami::HomeController < BaseOrigamiController if @obj_sale @status_order = 'sale' - else + elsif @obj_order @status_order = 'order' end @@ -66,12 +66,6 @@ class Origami::HomeController < BaseOrigamiController @account_arr = TaxProfile.find_by(id: @customer.tax_profiles) end - # @dining.current_bookings.each do |booking| - # if @obj_sale || @booking.blank? - # @booking = booking - # end - # end - #for bank integration @checkout_time = Lookup.collection_of('checkout_time') @checkout_alert_time = Lookup.collection_of('checkout_alert_time')