diff --git a/app/controllers/origami/home_controller.rb b/app/controllers/origami/home_controller.rb index 0e3eef26..3a7501e6 100755 --- a/app/controllers/origami/home_controller.rb +++ b/app/controllers/origami/home_controller.rb @@ -123,6 +123,12 @@ class Origami::HomeController < BaseOrigamiController #for bank integration @checkout_time = Lookup.collection_of('checkout_time') @checkout_alert_time = Lookup.collection_of('checkout_alert_time') + + lookup_spit_bill = Lookup.collection_of('split_bill') + @split_bill = 0 + if !lookup_spit_bill[0].nil? + @split_bill = lookup_spit_bill[0][1] + end end #Shop Name in Navbor diff --git a/app/controllers/origami/surveys_controller.rb b/app/controllers/origami/surveys_controller.rb index b49359e0..0baec650 100644 --- a/app/controllers/origami/surveys_controller.rb +++ b/app/controllers/origami/surveys_controller.rb @@ -71,7 +71,7 @@ class Origami::SurveysController < BaseOrigamiController survey = Survey.new survey.dining_name = dining_facility.name survey.receipt_no = params[:receipt_no] - survey.shift_id = shift_by_terminal.id + survey.shift_id = shift_by_terminal.id survey.created_by = current_user.name survey.total_customer = params[:total_customer] survey.total_amount = params[:total_amount]