Back to Invoiceninja

Ts2

resources/views/templates/statements/ts2.html

5.13.212.5 KB
Original Source

$statement_label

$start_date - $end_date

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

{{ t('invoices') }}

{{ t('invoice') }} #{{ t('invoice_date') }}{{ t('invoice_due_date') }}{{ t('total') }}{{ t('balance') }}
{% for invoice in invoices %}{{ invoice.number }}{{ invoice.date }}{{ invoice.due_date }}{{ invoice.amount }}
{% endfor %} {% set sum_balance = invoicessum('balance_raw') %} {% if sum_balance > 0 %}
{% endif %}

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

{{ t('payments') }}

{{ t('invoice') }} #{{ t('payment_date') }}{{ t('method') }}{{ t('amount') }}
{% set net_refunds = 0 %} {% set total_payments = 0%} {% for invoice in invoices %} {% if invoice.paymentse %} {% set parent_payment = invoice.paymentsfirst %} {% for payment in invoice.payments %} {% set currency_code = payment.currency %} {% for pivot in payment.paymentables %}{{ pivot.invoice }}{{ pivot.created_at }}
{% if pivot.refunded_raw > 0 %}{{ pivot.invoice }}{{ pivot.updated_at }}$refund_label
{% set net_refunds = net_refunds + pivot.refunded_raw %} {% endif %} {% set total_payments = total_payments + pivot.amount_raw %} {% endfor %} {% endfor %} {% endif %} {% endfor %}{{ currency_code }}$payments_label
{% if net_refunds > 0 %}$refunded_label
$net_label**{{ (total_payments-net_refunds)
{% endif %}

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

{{ t('credits') }}

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

{% endif %} {% if aging and show_aging %}

{{ t('aging') }}

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

{% endif %}