From f051022ab444554be431fd3e056f53ea5df88a05 Mon Sep 17 00:00:00 2001 From: phyusin Date: Mon, 12 Mar 2018 17:50:51 +0630 Subject: [PATCH] check reload issue --- app/views/origami/payments/show.html.erb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 8c7ac778..26bd24af 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -609,7 +609,7 @@ var customer_name = "<%= @customer.name %>"; $("#changed_amount").text('Changed amount ' + parseFloat($('#balance').text() * (-1))); <% end %> } - customer_display_view(null,"reload"); + //PDF lightbox data // if($('#balance').text() < 0){ // swal({ @@ -969,11 +969,12 @@ var customer_name = "<%= @customer.name %>"; data: params, success:function(result){ console.log(result); - if (cashier_type=="cashier") { - window.location.href = '/origami'; - }else{ - window.location.href = '/origami/quick_service'; - } + customer_display_view(null,"reload"); + // if (cashier_type=="cashier") { + // window.location.href = '/origami'; + // }else{ + // window.location.href = '/origami/quick_service'; + // } } }); // }