more work on invoice list
This commit is contained in:
parent
288d90332b
commit
50bb1d4772
|
@ -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 }} <{{ invoice.order.user.email }}>{% 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>
|
||||||
|
|
Loading…
Reference in a new issue