From ae4746acfcb79432c88b0ea8c57fdf21a333cc64 Mon Sep 17 00:00:00 2001 From: phyusin Date: Thu, 1 Feb 2018 16:34:18 +0630 Subject: [PATCH] change checkin time checked --- app/controllers/origami/home_controller.rb | 8 ++------ app/views/origami/home/show.html.erb | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/controllers/origami/home_controller.rb b/app/controllers/origami/home_controller.rb index e7116553..c00b39bf 100755 --- a/app/controllers/origami/home_controller.rb +++ b/app/controllers/origami/home_controller.rb @@ -86,12 +86,8 @@ class Origami::HomeController < BaseOrigamiController end #for bank integration - bank_integration = Lookup.collection_of('bank_integration') - @bank_integration = 0 - if !bank_integration[0].nil? - @bank_integration = bank_integration[0][1] - end - + @checkout_time = Lookup.collection_of('checkout_time') + @checkout_alert_time = Lookup.collection_of('checkout_alert_time') end private diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index a77ac31a..0b70e159 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -431,7 +431,7 @@ <% else %> - <% if @bank_integration == '1' %> + <% if !@checkout_time.empty? && !@checkout_alert_time.empty? %> <% end %> <% end %>