{{ t('statement') }}

$start_date - $end_date

{% if invoices|e %}

{{ t('invoices') }}

{% for invoice in invoices %} {% endfor %}
{{ t('invoice')}} # {{ t('invoice_date') }} {{ t('invoice_due_date') }} {{ t('total') }} {{ t('balance') }}
{{ invoice.number }} {{ invoice.date }} {{ invoice.due_date }} {{ invoice.amount }} {{ invoice.balance }}

{% endif %}
{% if payments|e %}

{{ t('payments') }}

{% for payment in payments %} {%if payment.is_credit %} {%else%} {%endif%} {% endfor %}
{{ t('invoice') }} # {{ t('payment_date') }} {{ t('method') }} {{ t('amount') }}
{{ payment.number }} {{ payment.date }}Credit {{ payment.number }}{{ payment.method }}{{ payment.amount }}

{% endif %}
{% if credits|e %}

Credits

{% for credit in credits %} {% endfor %}
{{ t('credit') }} # {{ t('credit_date') }} {{ t('total') }} {{ t('balance') }}
{{ credit.number }} {{ credit.date }} {{ credit.amount }} {{ credit.balance }}

{% endif %}
{% if aging %}

{{ t('aging') }}

{% for key, age in aging %} {% endfor %} {% for key, age in aging %} {% endfor %}
{{ key }}
{{ age }}

{% endif %}