diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index c86c0284..c97e9abe 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -19,7 +19,8 @@
Customer : <%= @sale_data.customer.name%>
-
Checkin Time : <%= @checkin_time.utc.getlocal.strftime("%I:%M %p") %>
+
Checkin Time : <%if !@checkin_time.nil?%><%= @checkin_time.utc.getlocal.strftime("%I:%M %p") %> + <%end%>
@@ -368,7 +369,9 @@ var cashier_type = "<%= @cashier_type %>"; if (sale) { var sale_id = sale } else { - var sale_id = "<%= @dining.id %>"; + if (cashier_type != "quick_service") { + var sale_id = "<%= @dining.id %>"; + } } //var table_id = $('.tables').attr("data-id"); window.location.href = '/origami/' + sale_id +"/"+ cashier_type + "/surveys" @@ -425,7 +428,10 @@ var cashier_type = "<%= @cashier_type %>"; }); $('#edit').on('click', function () { + if (cashier_type != "quick_service") { + console.log(cashier_type) var dining_id = "<%= @dining.id %>" + } var sale_id = $('#sale_id').text(); if ($(this).attr('active')=== "true") { window.location.href = '/origami/table/' + dining_id + "/sale/" + sale_id + "/"+cashier_type+"/edit";