@@ -1,5 +1,5 @@
<% if @sale.present? %>
- window.location = "<%= sales_path %>";
+ window.location = "<%= new_sale_path %>";
$("#notice").html("<%= flash[:notice] %>");
var ticket_window = window.open("<%= print_receipt_path(@sale.id, format: 'pdf') %>", 'New tab', '' );
ticket_window.print();
@@ -1,4 +1,4 @@
-window.location = "<%= sales_reserved_path %>";
+window.location = "<%= new_sale_path %>";
var ticket_window = window.open("<%= print_reserve_receipt_path(@sale.id, format: 'pdf') %>", 'New tab', '' );
@@ -6,6 +6,6 @@ $("#error_explanation_for_sale").html("")
<% end %>
window.scrollTo(0,0);
<% else %>
-var ticket_window = window.open("<%= print_credit_receipt_path(:sale_id => @sale.id, format: 'pdf') %>", 'New tab', '' );
+var ticket_window = window.open("<%= print_credit_receipt_path(:sale_id => @sale.id, format: 'pdf') %>", 'New tab', '' );