check reload issue

This commit is contained in:
phyusin
2018-03-12 17:50:51 +06:30
parent b65849a11a
commit f051022ab4

View File

@@ -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';
// }
}
});
// }