$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) %} {% set product_sub_total = product_sub_total + item.line_total_raw %} {% endfor %}
Heading for product table
$item_label # $description_label $product.unit_cost_label $quantity_label $product.line_total_label
{{ item.product_key }} {{ item.notes }} {{ item.cost }} {{ item.quantity }} {{ item.line_total }}
$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) %} {% set product_sub_total = product_sub_total + item.line_total_raw %} {% endfor %}
Working Hours
$task.service_label # $description_label $task.hours_label $task.rate_label $task.line_total_label
{{ item.product_key }} {{ item.notes }} {{ item.cost }} {{ item.quantity }} {{ item.line_total }}
$subtotal_label {{product_sub_total}}
{% endif %} {% endif %}
$status_logo
$entity_images