diff --git a/app/controllers/origami/home_controller.rb b/app/controllers/origami/home_controller.rb index 536defe7..e7116553 100755 --- a/app/controllers/origami/home_controller.rb +++ b/app/controllers/origami/home_controller.rb @@ -84,6 +84,13 @@ class Origami::HomeController < BaseOrigamiController end end 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 end diff --git a/app/controllers/origami/shifts_controller.rb b/app/controllers/origami/shifts_controller.rb index 6d0fbe02..cb2cc830 100755 --- a/app/controllers/origami/shifts_controller.rb +++ b/app/controllers/origami/shifts_controller.rb @@ -4,6 +4,12 @@ class Origami::ShiftsController < BaseOrigamiController def show @shift = ShiftSale.current_open_shift(current_user.id) + #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 end def new diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index 8440f354..a77ac31a 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -431,7 +431,9 @@ <% else %> - + <% if @bank_integration == '1' %> + + <% end %> <% end %> "> diff --git a/app/views/origami/shifts/show.html.erb b/app/views/origami/shifts/show.html.erb index f2ee019e..4ea71dec 100755 --- a/app/views/origami/shifts/show.html.erb +++ b/app/views/origami/shifts/show.html.erb @@ -31,7 +31,9 @@
- + <% if @bank_integration == '1' %> + + <% end %>