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))); $("#changed_amount").text('Changed amount ' + parseFloat($('#balance').text() * (-1)));
<% end %> <% end %>
} }
customer_display_view(null,"reload");
//PDF lightbox data //PDF lightbox data
// if($('#balance').text() < 0){ // if($('#balance').text() < 0){
// swal({ // swal({
@@ -969,11 +969,12 @@ var customer_name = "<%= @customer.name %>";
data: params, data: params,
success:function(result){ success:function(result){
console.log(result); console.log(result);
if (cashier_type=="cashier") { customer_display_view(null,"reload");
window.location.href = '/origami'; // if (cashier_type=="cashier") {
}else{ // window.location.href = '/origami';
window.location.href = '/origami/quick_service'; // }else{
} // window.location.href = '/origami/quick_service';
// }
} }
}); });
// } // }