fix amount and customer info
This commit is contained in:
parent
0fe5d918ab
commit
8ddab4a600
|
@ -16,9 +16,9 @@
|
|||
{% for invoice in invoice_list %}
|
||||
<tr>
|
||||
<td>{{ invoice.id }}</td>
|
||||
<td>{% if invoice.order %}{{ invoice.order.user.username }} <{{ invoice.order.user.email }}>{% else %}invoice.customorder.customer{% endif %}</td>
|
||||
<td>{% if invoice.order %}{{ invoice.order.user.username }} <{{ invoice.order.user.email }}>{% 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>
|
||||
|
|
Loading…
Reference in a new issue