change checkin time checked

This commit is contained in:
phyusin
2018-02-01 16:34:18 +06:30
parent 6c33040173
commit ae4746acfc
2 changed files with 3 additions and 7 deletions

View File

@@ -86,12 +86,8 @@ class Origami::HomeController < BaseOrigamiController
end end
#for bank integration #for bank integration
bank_integration = Lookup.collection_of('bank_integration') @checkout_time = Lookup.collection_of('checkout_time')
@bank_integration = 0 @checkout_alert_time = Lookup.collection_of('checkout_alert_time')
if !bank_integration[0].nil?
@bank_integration = bank_integration[0][1]
end
end end
private private

View File

@@ -431,7 +431,7 @@
<!-- <button type="button" id="re-print" class="btn btn-block bg-blue waves-effect" >Re.Print</button> --> <!-- <button type="button" id="re-print" class="btn btn-block bg-blue waves-effect" >Re.Print</button> -->
<% else %> <% else %>
<% if @bank_integration == '1' %> <% if !@checkout_time.empty? && !@checkout_alert_time.empty? %>
<button type="button" id="check_in" class="btn btn-block bg-blue waves-effect"><%= t("views.btn.check_in") %></button> <button type="button" id="check_in" class="btn btn-block bg-blue waves-effect"><%= t("views.btn.check_in") %></button>
<% end %> <% end %>
<% end %> <% end %>