diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb
index c97e9abe..b6d08ed0 100755
--- a/app/views/origami/payments/show.html.erb
+++ b/app/views/origami/payments/show.html.erb
@@ -13,6 +13,7 @@
Table No : <%=@table_no%>
+
<%if !@dining.nil?%><%= @dining.id%><%end%>
Sale ID : <% if @sale_data %><%=@sale_data.sale_id %><% end %>
@@ -369,9 +370,7 @@ var cashier_type = "<%= @cashier_type %>";
if (sale) {
var sale_id = sale
} else {
- if (cashier_type != "quick_service") {
- var sale_id = "<%= @dining.id %>";
- }
+ var sale_id = $('#dining').text();
}
//var table_id = $('.tables').attr("data-id");
window.location.href = '/origami/' + sale_id +"/"+ cashier_type + "/surveys"
@@ -428,10 +427,7 @@ var cashier_type = "<%= @cashier_type %>";
});
$('#edit').on('click', function () {
- if (cashier_type != "quick_service") {
- console.log(cashier_type)
- var dining_id = "<%= @dining.id %>"
- }
+ var dining_id = $('#dining').text();
var sale_id = $('#sale_id').text();
if ($(this).attr('active')=== "true") {
window.location.href = '/origami/table/' + dining_id + "/sale/" + sale_id + "/"+cashier_type+"/edit";