From 8951c79f71cee66ee0f4b21f52c8564e099b575a Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Tue, 20 Feb 2018 15:53:56 +1100 Subject: [PATCH] Only count future orders in subs index order count --- app/views/admin/subscriptions/_table.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/subscriptions/_table.html.haml b/app/views/admin/subscriptions/_table.html.haml index ae2efce527..902515f385 100644 --- a/app/views/admin/subscriptions/_table.html.haml +++ b/app/views/admin/subscriptions/_table.html.haml @@ -43,7 +43,7 @@ %td.items.panel-toggle.text-center{ name: 'products', ng: { show: 'columns.items.visible' } } %h5{ ng: { bind: 'itemCount(subscription)' } } %td.orders.panel-toggle.text-center{ name: 'orders', ng: { show: 'columns.orders.visible' } } - %h5{ ng: { bind: 'subscription.not_closed_proxy_orders.length + subscription.closed_proxy_orders.length' } } + %h5{ ng: { bind: 'subscription.not_closed_proxy_orders.length' } } %td.status.text-center{ ng: { show: 'columns.state.visible' } } %span.state{ ng: { class: "subscription.state", bind: "'spree.subscription_state.' + subscription.state | t" } } %td.begins_on.text-center{ ng: { show: 'columns.begins_on.visible', bind: '::subscription.begins_at' } }