{% with invoices=billing.invoice_set.order %}
{% if invoices %}
{% translate "Invoices" %}
| {% translate "Invoice period" %} |
{% translate "Invoice amount" %} |
{% translate "Download invoice" %} |
{% for invoice in billing.invoice_set.order %}
| {{ invoice.start|date:"SHORT_DATE_FORMAT" }} - {{ invoice.end|date:"SHORT_DATE_FORMAT" }} |
{{ invoice.amount }} {{ invoice.get_currency_display }} |
{% if invoice.ref and invoice.filename_valid %}
{{ invoice.filename }}
{% elif invoice.ref %}
{{ invoice.filename }}
{% else %}
{% translate "Not available" %}
{% endif %}
|
{% empty %}
| {% translate "No invoices found." %} |
{% endfor %}
{% endif %}
{% endwith %}
{% if user.is_superuser %}
{% translate "Audit log" %}
| {% translate "When" %} |
{% translate "Billing event" %} |
{% translate "Event details" %} |
{% translate "User" %} |
{% for log in billing.billinglog_set.recent %}
| {{ log.timestamp|naturaltime }} |
{{ log.get_event_display }} |
{{ log.summary }} |
{{ log.user }} |
{% endfor %}
{% endif %}
{% if offer_hosting and billing.plan.price == 0 %}
{% endif %}