Only count future orders in subs index order count

This commit is contained in:
Rob Harrington
2018-02-20 15:53:56 +11:00
committed by Rob H
parent b3e7badd37
commit 8951c79f71

View File

@@ -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' } }