Changeset - 3d534bcf422e
[Not reviewed]
0 2 0
Christopher Neugebauer - 8 years ago 2016-09-13 09:00:07
chrisjrn@gmail.com
Invoice and credit note templates now use invoice.recipient.

Fixes #3.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/registrasion/_invoice_details.html
Show inline comments
 
{% load registrasion_tags %}
 

	
 
<h2>Invoice</h2>
 

	
 
{% with invoice_user=invoice.cart.user %}
 
  <ul>
 
    <li><strong>Invoice number:</strong> {{ invoice.id }}
 
    <li><strong>Invoice status:</strong> {{ invoice.get_status_display }}</li>
 
    <li><strong>Issue date:</strong> {{ invoice.issue_time|date:"DATE_FORMAT" }}
 
    {% 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 %}
 

	
 
<p>This invoice has been issued as a result of an application to attend (conference name).</p>
 

	
 

	
 
<table class="table table-striped">
 
  <tr>
 
    <th>Description</th>
 
    <th class="text-right">Quantity</th>
 
    <th class="text-right">Price/Unit</th>
 
    <th class="text-right">Total</th>
pinaxcon/templates/registrasion/credit_note.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% load bootstrap %}
 
{% load registrasion_tags %}
 
{% block body %}
 

	
 
<h2>Credit Note</h2>
 

	
 
{% 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>
 
{% endwith %}
 

	
 
<p>This credit note was generated from funds excess from invoice {{ credit_note.invoice.id }}.</p>
 

	
 
{% if credit_note.is_unclaimed %}
 
  <form method="post" action="">
 
    {% csrf_token %}
 
    <h3>Apply to invoice</h3>
 
    <p>You can apply this credit note to an unpaid invoice.</p>
0 comments (0 inline, 0 general)