fix amount and customer info

This commit is contained in:
Thomas Steen Rasmussen 2021-08-10 21:32:01 +02:00
parent 0fe5d918ab
commit 8ddab4a600

View file

@ -16,9 +16,9 @@
{% for invoice in invoice_list %}
<tr>
<td>{{ invoice.id }}</td>
<td>{% if invoice.order %}{{ invoice.order.user.username }} &lt;{{ invoice.order.user.email }}&gt;{% else %}invoice.customorder.customer{% endif %}</td>
<td>{% if invoice.order %}{{ invoice.order.user.username }} &lt;{{ invoice.order.user.email }}&gt;{% else %}{{ invoice.customorder.customer }}{% endif %}</td>
<td>{{ invoice.created|date }}</td>
<td>{{ invoice.get_order.amount }} DKK</td>
<td>{% if invoice.order %}{{ invoice.order.total }} DKK{% else %}{{ invoice.customorder.amount }}{% endif %}</td>
<td>{{ invoice.get_order }}</td>
<td>{{ invoice.get_order.paid|truefalseicon }} {% if invoice.get_order.paid %}paid{% else %}unpaid{% endif %}</td>
<td>