remove checkin if checkin not used

This commit is contained in:
phyusin
2018-02-01 16:25:11 +06:30
parent 383aeded60
commit 6c33040173
4 changed files with 19 additions and 2 deletions

View File

@@ -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

View File

@@ -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