Changeset - 17fc874212bd
[Not reviewed]
0 1 0
Christopher Neugebauer - 8 years ago 2016-09-02 05:43:01
chrisjrn@gmail.com
Attendee manifest now displays credit notes.
1 file changed with 28 insertions and 3 deletions:
0 comments (0 inline, 0 general)
registrasion/reporting/views.py
Show inline comments
...
 
@@ -208,2 +208,7 @@ def attendee(request, form, attendee_id=None):
 

	
 
    if attendee_id is None:
 
        attendee_id = form.user
 

	
 
    attendee = people.Attendee.objects.get(id=attendee_id)
 

	
 
    reports = []
...
 
@@ -224,5 +229,14 @@ def attendee(request, form, attendee_id=None):
 
    # Invoices
 
    headings = ["Invoice ID", "Status", "Amount"]
 
    headings = ["Invoice ID", "Status", "Value"]
 
    data = []
 
    reports.append( Report("Invoices", headings, data))
 

	
 
    invoices = commerce.Invoice.objects.filter(
 
        user=attendee.user,
 
    )
 
    for invoice in invoices:
 
        data.append([
 
            invoice.id, invoice.get_status_display(), invoice.value,
 
        ])
 

	
 
    reports.append(Report("Invoices", headings, data, link_view="invoice"))
 

	
...
 
@@ -231,3 +245,14 @@ def attendee(request, form, attendee_id=None):
 
    data = []
 
    reports.append( Report("Credit Notes", headings, data))
 

	
 
    credit_notes = commerce.CreditNote.objects.filter(
 
        invoice__user=attendee.user,
 
    )
 
    for credit_note in credit_notes:
 
        data.append([
 
            credit_note.id, credit_note.status, credit_note.value,
 
        ])
 

	
 
    reports.append(
 
        Report("Credit Notes", headings, data, link_view="credit_note")
 
    )
 

	
0 comments (0 inline, 0 general)