diff --git a/app/controllers/origami/payments_controller.rb b/app/controllers/origami/payments_controller.rb index 0e3245ca..06a0fc4a 100755 --- a/app/controllers/origami/payments_controller.rb +++ b/app/controllers/origami/payments_controller.rb @@ -163,6 +163,7 @@ class Origami::PaymentsController < BaseOrigamiController @balance = 0.00 @accountable_type = '' @table_no = '' + @dining = '' @shop = Shop::ShopDetail @@ -215,6 +216,7 @@ class Origami::PaymentsController < BaseOrigamiController df = DiningFacility.find(sbk.dining_facility_id) @table_no = df.type + ' ' + df.name @checkin_time = sbk.checkin_at + @dining = df break end diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index 71666293..deeb997b 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -534,7 +534,7 @@ var sale_id = "<%= @dining.id %>"; } //var table_id = $('.tables').attr("data-id"); - window.location.href = '/origami/' + sale_id + "/surveys" + window.location.href = '/origami/' + sale_id +"/"+cashier_type+ "/surveys" }); // bind customer to order or sale diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 6a45234c..3c711051 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -313,8 +313,6 @@