{{ labels.for }}:
{{ document.contact.company }}
{{ document.contact.name }}

{{ labels.date }}:
{{ document.date|date("M d, Y") }}
{{ labels.by }}: {{ document.owner.first_name }} {{ document.owner.last_name }}

{% for item in document.products %} {% endfor %}
{{ labels.products }} {{ labels.discount }} {{ labels.tax }} {{ labels.quantity }} {{ labels.price }} {{ labels.total }}
{{ item.name }} {% if item.pivot.description %}

{{ item.pivot.description|nl2br }}

{% endif %}
{{ item.pivot.discount }}% {{ item.pivot.tax }}% {{ item.pivot.quantity }} {{ item.pivot.price|number_format(2, '.', ',') }} {{ item.pivot.total|number_format(2, '.', ',') }}
{{ labels.total }}:    {{ currency['symbol_native'] }} {{ document.total|number_format(2, '.', ',') }}
{% if document.taxdocument.doc_nid %} {% if settings.invoice_note %}
{{ labels.note }}:
{{ settings.invoice_note|raw }} {% endif %} {% else %} {% if settings.estimate_note %}
{{ labels.note }}:
{{ settings.estimate_note|raw }} {% endif %} {% endif %}