parent
							
								
									e128179629
								
							
						
					
					
						commit
						da42bb2bac
					
				
					 1 changed files with 17 additions and 0 deletions
				
			
		|  | @ -271,6 +271,23 @@ def attendee(request, form, attendee_id=None): | |||
|         Report("Credit Notes", headings, data, link_view="credit_note") | ||||
|     ) | ||||
| 
 | ||||
|     # All payments | ||||
|     headings = ["To Invoice", "Payment ID", "Reference", "Amount"] | ||||
|     data = [] | ||||
| 
 | ||||
|     payments = commerce.PaymentBase.objects.filter( | ||||
|         invoice__user=attendee.user, | ||||
|     ) | ||||
|     for payment in payments: | ||||
|         data.append([ | ||||
|             payment.invoice.id, payment.id, payment.reference, payment.amount, | ||||
|         ]) | ||||
| 
 | ||||
|     reports.append( | ||||
|         Report("Payments", headings, data, link_view="invoice") | ||||
|     ) | ||||
| 
 | ||||
| 
 | ||||
|     return reports | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer