{% load account_keeping_tags i18n %}
{% trans "ID" %} | {% trans "Date" %} | {% trans "Invoice number" %} | {% trans "PDF" %} | {% trans "Description" %} | {% trans "Currency" %} | {% trans "Amount (net)" %} | {% trans "VAT" %} | {% trans "Amount (gross)" %} | {% trans "Transactions" %} |
---|---|---|---|---|---|---|---|---|---|
{{ invoice.pk }} | {{ invoice.invoice_date|date:"Y-m-d" }} | {{ invoice.invoice_number|default:"n/a" }} | {% if invoice.pdf %}{% else %}n/a{% endif %} | {{ invoice.description|default:"n/a" }} | {{ invoice.currency.iso_code }} | {{ invoice.amount_net|currency }} | {{ invoice.vat }} | {{ invoice.amount_gross|currency }} | {% for transaction in invoice.transactions.all %} {{ transaction.pk }} {% if not forloop.last %}, {% endif %} {% endfor %} |