Changeset - c05deeb26c5b
[Not reviewed]
0 1 0
Christopher Neugebauer - 5 years ago 2016-09-15 23:40:53
chrisjrn@gmail.com
Adds balance due to invoice template.

Fixes #10.
1 file changed with 17 insertions and 6 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/registrasion/_invoice_details.html
Show inline comments
...
 
@@ -26,21 +26,32 @@
 
  </tr>
 
  {% for line_item in invoice.lineitem_set.all %}
 
    <tr>
 
      <td>{{ line_item.description }}</td>
 
      <td class="text-right">{{ line_item.quantity }}</td>
 
      <td class="text-right">${{ line_item.price }}</td>
 
      <td class="text-right">${{ line_item.price|multiply:line_item.quantity }}</td>
 
      <td class="text-right">${{ line_item.total_price }}</td>
 
    </tr>
 
  {% endfor %}
 

	
 
  <tr>
 
    <th>TOTAL</th>
 
    <td></td>
 
    <td></td>
 
    <th colspan="3">TOTAL</th>
 
    <td class="text-right">${{ invoice.value }}</td>
 
  </tr>
 
</table>
 

	
 
<table class="table table-striped">
 

	
 
  <tr>
 
    <td colspan="3">Total payments:</td>
 
    <td class="text-right">${{ invoice.total_payments }}</td>
 
  </tr>
 
  <tr>
 
    <td colspan="3">Balance due:</td>
 
    <td class="text-right">${{ invoice.balance_due }}</td>
 
  </tr>
 
</table>
 

	
 
{% if invoice.paymentbase_set.all %}
 
<h4>Payments received</h4>
 
{% include "registrasion/payment_list.html" with payments=invoice.paymentbase_set.all %}
 
  <h4>Payments received</h4>
 
  {% include "registrasion/payment_list.html" with payments=invoice.paymentbase_set.all %}
 
{% endif %}
0 comments (0 inline, 0 general)