Filter invoices by paid status
This commit is contained in:
		
					parent
					
						
							
								63821813d4
							
						
					
				
			
			
				commit
				
					
						1d48dfb93b
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue