$statement_label

$company.name

$start_date - $end_date

{% if invoices|e %} {% set running_total = 0%} {% for invoice in invoices %} {% for payment in invoice.payments %} {% for pivot in payment.paymentables %} {% if pivot.refunded_raw > 0%} {% endif %} {% endfor %} {% endfor %} {% endfor %}
$date_label $invoice_label # {{ t('charges') }} {{ t('credits') }} {{ t('line_total') }}
{{ invoice.date }} {{ invoice.number }} {{ invoice.amount }} {%set running_total = running_total + invoice.amount_raw %} {{ running_total|format_currency(currency_code) }}
{{ invoice.date }} {{ invoice.number }} {%set running_total = running_total - pivot.amount_raw %} {{ pivot.amount }} {{ running_total|format_currency(currency_code) }}
{{ invoice.date }} {{ invoice.number }} $refund_label {%set running_total = running_total + pivot.refunded_raw %} ({{ pivot.refunded }}) {{ running_total|format_currency(currency_code) }}
{% endif %}
{% if aging and show_aging %}
{% for key, age in aging %} {% endfor %} {% for key, age in aging %} {% endfor %}
{{ key }}
{{ age }}
{% endif %}