Browse Source

../cash_registers_moves/confirm_payments.js.erb

Jose Miguel Ledon Nieblas 8 years ago
parent
commit
2a56138feb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/views/cash_registers_moves/confirm_payments.js.erb

+ 3 - 1
app/views/cash_registers_moves/confirm_payments.js.erb

@@ -1,5 +1,5 @@
 <% if @sale.present? %>
-	window.location = "<%= new_sale_path %>";
+
 	$("#notice").html("<%= flash[:notice] %>");
   $.ajax({
     type: "get",
@@ -7,6 +7,8 @@
     dataType: 'script'
   });
 
+  window.location = "<%= new_sale_path %>";
+
 <% elsif @products_return.present? %>
 	window.location = "<%= products_returns_path %>";
 	$("#notice").html("<%= flash[:notice] %>");