$entity_label
{% if invoices is defined and invoices is not empty %}
{% set invoice = invoices|first %}
{% if invoice.line_items|filter(item => item.type_id == 1)|length > 0 %}
{%set product_sub_total = 0%}
{% for item in invoice.line_items|filter(item => item.type_id == 1) %}
{{ item.product_key }} |
{{ item.notes }} |
{{ item.cost }} |
{{ item.quantity }} |
{{ item.line_total }} |
{% set product_sub_total = product_sub_total + item.line_total_raw %}
{% endfor %}
|
|
|
$subtotal_label |
{{product_sub_total}} |
{% endif %}
{% endif %}
{% if invoices is defined and invoices is not empty %}
{% set invoice = invoices|first %}
{% if invoice.line_items|filter(item => item.type_id == 1)|length > 0 %}
{%set product_sub_total = 0%}
{% for item in invoice.line_items|filter(item => item.type_id == 2) %}
{{ item.product_key }} |
{{ item.notes }} |
{{ item.cost }} |
{{ item.quantity }} |
{{ item.line_total }} |
{% set product_sub_total = product_sub_total + item.line_total_raw %}
{% endfor %}
|
|
|
$subtotal_label |
{{product_sub_total}} |
{% endif %}
{% endif %}
|