Back to Invoiceninja

$company.name

resources/views/templates/statements/ts3.html

5.13.211.2 KB
Original Source

$statement_label

$company.name

$start_date - $end_date

{% if invoices|e %}

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

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

{% endif %}