{% load crispy_forms_tags i18n icons permissions translations %} {% perm 'billing.manage' billing as user_can_manage_billing %}
| {% translate "Invoice period" %} | {% translate "Invoice amount" %} | {% translate "Download invoice" %} |
|---|---|---|
| {{ 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 %} |
| {% translate "No invoices found." %} | ||
| {% translate "When" %} | {% translate "Billing event" %} | {% translate "Event details" %} | {% translate "User" %} | {% translate "Actions" %} |
|---|---|---|---|---|
| {{ log.timestamp|naturaltime }} | {{ log.get_event_display }} | {{ log.summary }} | {{ log.user }} | {% if user.is_superuser and log.details.backup_filename %} {% translate "Download" %} {% endif %} |