|
|
@@ -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] %>");
|