Commit 5a1a6643 authored by Roman's avatar Roman

BRCD-1481 fix(billing cycle screen) - filter subs with SID = 0

parent b4721750
......@@ -79,7 +79,8 @@ class CycleData extends Component {
parseCycleDataFirstName = entity => entity.getIn(['attributes', 'firstname'], '');
parseCycleDataLastName = entity => entity.getIn(['attributes', 'lastname'], '');
parseCycleDataInvoiceTotal = entity => entity.getIn(['totals', 'after_vat_rounded'], '');
parseCycleDataSubscriptionNum = entity => entity.get('subs', List()).size;
parseCycleDataSubscriptionNum = entity => entity.get('subs', List())
.filter(subs => !['0', 0].includes(subs.get('sid', 0))).size;
parseCycleDataInvoiceId = entity => entity.get('invoice_id');
downloadURL = (aid, billrunKey, invoiceId) =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment