Skip to content

Commit

Permalink
sales_total report now uses not_canceled scope
Browse files Browse the repository at this point in the history
  • Loading branch information
brchristian committed Nov 30, 2017
1 parent a16eadc commit 874ea58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/controllers/spree/admin/reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def index
def sales_total
params[:q] = search_params

@search = Order.complete.ransack(params[:q])
@search = Order.complete.not_canceled.ransack(params[:q])
@orders = @search.result

@totals = {}
Expand Down

0 comments on commit 874ea58

Please sign in to comment.