Invoice and credit note templates now use invoice.recipient.

Fixes #3.
This commit is contained in:
Christopher Neugebauer 2016-09-13 19:00:07 +10:00
parent a2bdcb48b2
commit 3d534bcf42
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
{% if not invoice.is_void %}
<li><strong>Due:</strong> {{ invoice.due_time|date:"DATETIME_FORMAT"}}</li>
{% endif %}
<li><strong>Recipient:</strong> {{ invoice_user.attendee.attendeeprofilebase.invoice_recipient|linebreaksbr}}</li>
<li><strong>Recipient:</strong> {{ invoice.recipient|linebreaksbr}}</li>
</ul>
{% endwith %}

View file

@ -8,7 +8,7 @@
{% with note_user=credit_note.invoice.user %}
<ul>
<li><strong>Number:</strong> {{ credit_note.id }}
<li><strong>Attention:</strong> {{ credit_note.invoice.user.attendee.attendeeprofilebase.invoice_recipient }}</li>
<li><strong>Attention:</strong> {{ credit_note.invoice.recipient }}</li>
<li><strong>Value:</strong> {{ credit_note.value }}</li>
<li><strong>Status:</strong> {{ credit_note.status }}</li>
</ul>