Commit 7c2c3de1 authored by Mondi Ravi's avatar Mondi Ravi

Merge branch '9053/show-paid-invoices-only' into 'master'

Filter invoices by paid status

See merge request !747
parents 63821813 1d48dfb9
......@@ -1315,7 +1315,8 @@ class InvoiceListView(LoginRequiredMixin, TemplateView):
logger.debug("User does not exist")
cu = self.request.user
invs = stripe.Invoice.list(customer=cu.stripecustomer.stripe_id,
count=100)
count=100,
status='paid')
paginator = Paginator(invs.data, 10)
try:
invs_page = paginator.page(page)
......
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