Changeset - da42bb2baca8
[Not reviewed]
0 1 0
Christopher Neugebauer - 8 years ago 2016-09-03 01:51:12
chrisjrn@gmail.com
Shows all the payments an attendee has made.

Fixes #66
1 file changed with 17 insertions and 0 deletions:
0 comments (0 inline, 0 general)
registrasion/reporting/views.py
Show inline comments
...
 
@@ -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
 

	
 

	
0 comments (0 inline, 0 general)