$statement_label

$start_date - $end_date

{% for invoice in invoices %} {% for payment in invoice.payments|filter(payment => payment.is_deleted == false) %} {% for pivot in payment.paymentables %} {% endfor %} {% endfor %} {% endfor%}
Doc # Date Due Date Total Transaction Outstanding
Invoice - {{ invoice.number }} {{ invoice.date }} {{ invoice.due_date }} {{ invoice.amount_raw|format_currency(invoice.client.currency) }} {{ invoice.balance_raw|format_currency(invoice.client.currency) }}
Payment - {{ payment.number }} {{ payment.date }} {% if pivot.amount > 0 %} {{ pivot.amount_raw|format_currency(payment.currency) }} - {{ payment.type.name }} {% else %} ({{ pivot.refunded_raw|format_currency(payment.currency) }}) {% endif %} {{ payment.transaction_reference }}
{% if aging and show_aging %}
{% for key, age in aging %} {% endfor %} {% for key, age in aging %} {% endfor %}
{{ key }}
{{ age }}
{% endif %}