Account Statement

{{ client.name }}

Date {{ now | date: "%B %e, %Y" }}

From

{{ account.company }}

{{ account | two_line_address : client }} {% if account.email != blank %}

{{ account.email | h | mail_to: account.email }}

{% endif %} {% if account.invoice_extra_fields != blank %}
{{ account.invoice_extra_fields | safe_textilize }}
{% endif %}
{% if client != null %}

To

{{ client.name }}

{{ client | two_line_address : account }} {% if client.number != blank %}

ID: {{ client.number | h }}

{% endif %} {% if client.tax_id != blank %}

Tax ID: {{ client.tax_id | h }}

{% endif %} {% if client.invoice_extra_fields != blank %}
{{ client.invoice_extra_fields | safe_textilize }}
{% endif %}
{% endif %}
{% if invoices_by_currency.size == 0 %}

There are currently no outstanding invoices with a remaining balance.

{% else %}

This is a statement of all outstanding invoices on your account with a remaining balance.

Please note that payment should be remitted per individual invoice.

{% comment %} This is the main statement table with unpaid invoices enumerated. {% endcomment %}
{% for pair in invoices_by_currency %} {% if pair[1] != empty %} {% for invoice in pair[1] %} {% endfor %} {% endif %}
Outstanding Invoices {% if invoices_by_currency.size > 1 %}({{pair[0]}}){% endif %}
Invoice Number Invoice Date Invoice Due Balance
{{ invoice.number }}{% if invoice.title != blank %} - {{ invoice.title }}{% endif %} {{ invoice.date | date: "%Y-%m-%d" }} {{ invoice.due_date | date: "%Y-%m-%d" }} {{ invoice.balance | currency: invoice.currency_code }}
Outstanding Balance {% if invoices_by_currency.size > 1 %}({{pair[0]}}){% endif %} {% assign currency_code = pair[0] %} {{ balance_by_currency[currency_code] | currency: pair[0] }}
{% endfor %}
{% endif %} {% if retainer_balances_by_currency != null and retainer_balances_by_currency.size > 0 %}
{% for pair in retainer_balances_by_currency %} {% endfor %}
Retainer Balance {% if retainer_balances_by_currency.size > 1 %}({{pair[0]}}){% endif %} {{ pair[1] | currency: pair[0] }}
{% endif %}