Attempt to show IP address instead of invoice number

This commit is contained in:
PCoder 2019-04-04 23:14:24 +02:00
commit 73f7831744
2 changed files with 20 additions and 2 deletions

View file

@ -18,7 +18,7 @@
<table class="table table-switch">
<thead>
<tr>
<th>{% trans "Invoice Nr." %}</th>
<th>{% trans "IP Address" %}</th>
<th>{% trans "Period" %}</th>
<th>{% trans "Date" %}</th>
<th>{% trans "Amount" %}</th>
@ -28,7 +28,7 @@
<tbody>
{% for invoice in invoices %}
<tr>
<td class="xs-td-inline" data-header="{% trans 'Invoice Nr.' %}">{{ invoice.invoice_number }}</td>
<td class="xs-td-inline" data-header="{% trans 'IP Address' %}">{{ ips|get_value_from_dict:invoice.invoice_number|join:"<br/>" }}</td>
<td class="xs-td-inline" data-header="{% trans 'Period' %}">{{ invoice.period_start | date:'Y-m-d' }} &mdash; {{ invoice.period_end | date:'Y-m-d' }}</td>
<td class="xs-td-bighalf locale_date" data-header="{% trans 'Date' %}">{{ invoice.paid_at | date:'Y-m-d h:i a' }}</td>
<td class="xs-td-smallhalf" data-header="{% trans 'Amount' %}">{{ invoice.total_in_chf|floatformat:2|intcomma }}</td>