Back to Invoiceninja

Td14

resources/views/templates/ubl/td14.html

5.13.211.6 KB
Original Source

| {{ translations.invoice }} |

|

{{ translations.to }}:

{% for key,value in client %} {{ key }}{{ value }} {% endfor %}

{{ translations.from }}:

{% for key,value in supplier %} {{ key }}{{ value }} {% endfor %}

{{ translations.details }}:

{% for key,value in invoiceDetails %} {% if key != 'line_items' %} {{ key }}{{ value }} {% endif %} {% endfor %}

|

{% if invoiceDetails.line_items is defined and invoiceDetails.line_items is not empty %}

| {% for key,value in invoiceDetails.line_items|first %} {% if key not in ['tax_rate1', 'tax_rate2', 'tax_rate3'] %} {% if key in ['tax_name1', 'tax_name2', 'tax_name3'] %} {% if value|length > 1 %} {{ translations.tax }} | {% endif %} {% else %} {{ key }} | {% endif %} {% endif %} {% endfor %} | --- | --- | {% for item in invoiceDetails.line_items %} | {% for key,value in item %} {% if key not in ['tax_name1', 'tax_name2', 'tax_name3'] %} {% if key in ['tax_rate1', 'tax_rate2', 'tax_rate3'] %} {% if value > 0 %} {{ value }}% | {% endif %} {% else %} {{ value }} | {% endif %} {% endif %} {% endfor %} {% endfor %} {% endif %}

| | {% for key,value in totals.subtotal %} {{ key }}{{ value|format_currency(metadata.currency) }} {% endfor %} {% for key,value in totals.taxes %} {{ value.tax_name }} {{ value.tax_rate }}%{{ value.subtotal|format_currency(metadata.currency) }} {% endfor %} {% for key,value in totals.balance %} {{ key }}{{ value|format_currency(metadata.currency) }} {% endfor %} |

{% for key,value in metadata %} {% if key != 'currency' %}

{{ key }}:

{{ value|nl2br }}

{% endif %} {% endfor %}