more work on invoice list

This commit is contained in:
Thomas Steen Rasmussen 2021-08-10 21:20:53 +02:00
parent 288d90332b
commit 50bb1d4772

View file

@ -4,9 +4,9 @@
<thead> <thead>
<tr> <tr>
<th>Invoice #</th> <th>Invoice #</th>
<th>Username</th> <th>Customer</th>
<th>Email</th>
<th>Invoice Date</th> <th>Invoice Date</th>
<th>Amount</th>
<th>Order</th> <th>Order</th>
<th>Paid</th> <th>Paid</th>
<th>Actions</th> <th>Actions</th>
@ -16,9 +16,9 @@
{% for invoice in invoice_list %} {% for invoice in invoice_list %}
<tr> <tr>
<td>{{ invoice.id }}</td> <td>{{ invoice.id }}</td>
<td>{{ invoice.get_order.user.username }}</td> <td>{% if invoice.order %}{{ invoice.order.user.username }} &lt;{{ invoice.order.user.email }}&gt;{% else %}invoice.customorder.customer{% endif %}</td>
<td>{{ invoice.get_order.user.email }}</td>
<td>{{ invoice.created|date }}</td> <td>{{ invoice.created|date }}</td>
<td>{{ invoice.get_order.amount }} DKK</td>
<td>{{ invoice.get_order }}</td> <td>{{ invoice.get_order }}</td>
<td>{{ invoice.get_order.paid|truefalseicon }}</td> <td>{{ invoice.get_order.paid|truefalseicon }}</td>
<td> <td>