{% set months = {1:"Jan", 2:"Feb", 3:"Mar", 4:"Apr", 5:"May", 6:"Jun", 7:"Jul", 8:"Aug", 9:"Sep", 10:"Oct", 11:"Nov", 12:"Dec"} %}
Partner |
{% if entity.getPartner %}{{ entity.getPartner.getCompanyName }}{%endif%} |
Payment Date |
{% if entity.getPaymentDate %}{{ entity.getPaymentDate|date("Y/m/d") }}{%endif%} |
Reference |
{{ entity.getReference|trim }} |
PDF File |
{{ entity.getOrigPath|trim }} |
Amount |
{{ entity.getAmount|number_format(2, '.', ' ') }} |
Invoice Allocations |
{% for allocation in entity.invoiceAllocations %}
{% if allocation.getPartnerInvoice is not null %}
Invoice | {{ allocation.getPartnerInvoice.getInvoiceNumber }} |
MA Account | {{ allocation.getPartnerInvoice.getMAAccount.getMAAccountName }} |
Invoice Date | {% if allocation.getPartnerInvoice.getInvoiceDate %}{{ allocation.getPartnerInvoice.getInvoiceDate|date("Y/m/d") }}{%endif%} |
Period | {{ months[allocation.getPartnerInvoice.periodMonth] }} {{ allocation.getPartnerInvoice.periodYear }} |
PDF File | {{ allocation.getPartnerInvoice.getOrigPath|trim }} |
Allocated Amount | {{ allocation.getAmount|number_format(2, '.', ' ') }} |
Invoice Outstanding | {{ (allocation.getPartnerInvoice.getAmountIncVat - allocation.getAmount)|number_format(2, '.', ' ') }} |
{% else %}
Allocated Amount | {{ allocation.getAmount|number_format(2, '.', ' ') }} |
{% endif %}
{% endfor %}
|