Statement

$start_date - $end_date

{% if invoices is defined and invoices is not empty %}

Invoices

{% for invoice in invoices %} {% endfor %}
Invoice # Invoice Date Invoice Due Date Total Balance
{{ invoice.number }} {{ invoice.date }} {{ invoice.due_date }} {{ invoice.amount }} {{ invoice.balance }}

{% endif %}
{% if payments is defined and payments is not empty %}

Payments

{% for payment in payments %} {%if payment.is_credit %} {%else%} {%endif%} {% endfor %}
Invoice # Payment Date Method Amount
{{ payment.number }} {{ payment.date }}Credit {{ payment.number }}{{ payment.method }}{{ payment.amount }}

{% endif %}
{% if credits is defined and credits is not empty %}

Credits

{% for credit in credits %} {% endfor %}
Credit # Credit Date Total Balance
{{ credit.number }} {{ credit.date }} {{ credit.amount }} {{ credit.balance }}

{% endif %}
{% if aging is defined %}

Aging

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

{% endif %}