Skip to content

Commit

Permalink
Merge pull request #3125 from brchristian/patch-5
Browse files Browse the repository at this point in the history
Count only completed orders
  • Loading branch information
jacobherrington authored Mar 1, 2019
2 parents 12cadc8 + 7ab3d2e commit 3de6763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/views/spree/admin/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<tr id="<%= spree_dom_id user %>" data-hook="admin_users_index_rows">
<td class='user_email'><%=link_to user.email, edit_admin_user_url(user) %></td>
<td><%= user.spree_roles.map(&:name).to_sentence %></td>
<td class="align-center"><%= link_to user.orders.count, spree.orders_admin_user_path(user) %></td>
<td class="align-center"><%= link_to user.order_count, spree.orders_admin_user_path(user) %></td>
<td class="align-center"><%= link_to user.display_lifetime_value, spree.items_admin_user_path(user) %></td>
<td class="align-center"><%= l user.created_at.to_date %></td>
<td data-hook="admin_users_index_row_actions" class="actions">
Expand Down

0 comments on commit 3de6763

Please sign in to comment.