check reload issue
This commit is contained in:
@@ -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';
|
||||
// }
|
||||
}
|
||||
});
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user