$receipt_label
$from_label
$company.name
$receipt_label
#$number
{%set payment = payments|first %} {%if payment.transaction_reference %}
Reference:
{{ payment.transaction_reference }}
{% endif %}
$amount_paid_label
$amount
$date_label
$payment.date
$method_label
{% set payment = payments|first %} {% if payment %} {{ payment.method }} {% endif %}
Summary
{% set totalPrice = 0 %} {% for payment in payments %} {% for pivot in payment.paymentables|filter(pivot => pivot.is_credit == '0') %}
{{ pivot.date }}
$invoice_label #{{ pivot.invoice }}
{{ pivot.amount }}
{% set totalPrice = totalPrice + pivot.amount_raw %} {% endfor %} {% endfor %}
$amount_paid_label
${{ totalPrice|format_currency(currency_code) }}