{% load i18n invoicing %} {% language invoice.language %}
{% trans 'ID' %} | {% trans 'Description' %} | {% trans 'Quantity' %} |
{% trans 'Unit' %} |
{% trans 'Unit price' %} | {% if invoice.has_discount %}{% trans 'Discount' %} | {% endif %} {% if invoice.vat or invoice.vat == 0 %}{% trans 'Price' %} | {% trans 'Tax rate' %} | {% trans 'VAT amount' %} | {% endif %}{% trans 'Line total' %}
{% if invoice.vat or invoice.vat == 0 %} {% trans 'with taxes' %}{% endif %} |
---|---|---|---|---|---|---|---|---|---|
{{ forloop.counter}} | {{ item.title }} | {{ item.quantity|floatformat:"-3" }} | {{ item.get_unit_display }} | {{ item.unit_price|floatformat:"2" }} {{ invoice.currency }} | {% if invoice.has_discount %}{{ item.discount|default:0 }} % | {% endif %} {% if invoice.vat or invoice.vat == 0 %}{{ item.subtotal|floatformat:"2" }} {{ invoice.currency }} | {% if item.tax_rate or item.tax_rate == 0 %}{{ item.tax_rate|floatformat }}%{% else %}-{% endif %} | {{ item.vat|floatformat:"2" }} {{ invoice.currency }} | {% endif %}{{ item.total|floatformat:"2" }} {{ invoice.currency }} |