{% 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"} %} {% if entity.pdfInvoices %} {% endif %} {% if entity.pdfCreditNotes %} {% endif %}
Partner {% if entity.getPartner %}{{ entity.getPartner.getCompanyName }}{%endif%}
Company {% if entity.getCompany %}{{ entity.getCompany.getCompanyName }}{%endif%}
Account {% if entity.getMaAccount %}{{ entity.getMaAccount.getMaAccountName }}{%endif%}
Statement Date {% if entity.getStatementDate %}{{ entity.getStatementDate|date("Y/m/d") }}{%endif%}
Period {{ months[entity.periodMonth] }} {{ entity.periodYear }}
PDF File {{ entity.getOrigPath|trim }}
Aging
120 days90 days60 days30 daysCurrentDue
{{ entity.aging120Days|number_format(2, '.', ' ') }} {{ entity.aging90Days|number_format(2, '.', ' ') }} {{ entity.aging60Days|number_format(2, '.', ' ') }} {{ entity.aging30Days|number_format(2, '.', ' ') }} {{ entity.getAmountIncVat|number_format(2, '.', ' ') }} {{ entity.amountDue|number_format(2, '.', ' ') }}
Payments{{ entity.amountPayments|number_format(2, '.', ' ') }}
Un-Allocated{{ entity.amountUnallocated|number_format(2, '.', ' ') }}
Invoices {% for invoice in entity.pdfInvoices %}
Partner {% if invoice.getPartner %}{{ invoice.getPartner.getCompanyName }}{%endif%}
Account {% if invoice.getMaAccount %}{{ invoice.getMaAccount.getMaAccountName }}{%endif%}
Invoice Date {% if invoice.getInvoiceDate %}{{ invoice.getInvoiceDate|date("Y/m/d") }}{%endif%}
Period {{ months[invoice.periodMonth] }} {{ invoice.periodYear }}
Invoice Number {{ invoice.getInvoiceNumber|trim }}
PDF File {{ invoice.getOrigPath|trim }}
Amount ex VAT {{ invoice.getAmountExVat|number_format(2, '.', ' ') }}
VAT {{ invoice.getVat|number_format(2, '.', ' ') }}
Amount inc VAT {{ invoice.getAmountIncVat|number_format(2, '.', ' ') }}
{% endfor %}
Credit Notes {% for credit in entity.pdfCreditNotes %}
Partner {% if credit.getPartner %}{{ credit.getPartner.getCompanyName }}{%endif%}
Account {% if credit.getMaAccount %}{{ credit.getMaAccount.getMaAccountName }}{%endif%}
Credit Note Date {% if credit.getCreditNoteDate %}{{ credit.getCreditNoteDate|date("Y/m/d") }}{%endif%}
Period {{ months[credit.periodMonth] }} {{ credit.periodYear }}
Credit Note Number {{ credit.getCreditNoteNumber|trim }}
PDF File {{ credit.getOrigPath|trim }}
Amount ex VAT {{ credit.getAmountExVat|number_format(2, '.', ' ') }}
VAT {{ credit.getVat|number_format(2, '.', ' ') }}
Amount inc VAT {{ credit.getAmountIncVat|number_format(2, '.', ' ') }}
{% endfor %}
Payments Allocations {% set allocations = d2_partner_payment_allocations(entity.id) %} {% if allocations %} {% for allocation in allocations %}
Payment{{ allocation.getPartnerPayment.getReference }}
Payment Date{{ allocation.getPartnerPayment.getPaymentDate|date("Y/m/d") }}
Payment Amount{{ allocation.getPartnerPayment.getAmount|number_format(2, '.', ' ') }}
Invoice{{ allocation.getPartnerInvoice.getInvoiceNumber }}
Period{{ months[allocation.getPartnerInvoice.periodMonth] }} {{ allocation.getPartnerInvoice.periodYear }}
Invoice Date{% if allocation.getPartnerInvoice.getInvoiceDate %}{{ allocation.getPartnerInvoice.getInvoiceDate|date("Y/m/d") }}{%endif%}
PDF File{{ allocation.getPartnerInvoice.getOrigPath|trim }}
Allocated Amount{{ allocation.getAmount|number_format(2, '.', ' ') }}
Invoice Outstanding{{ (allocation.getPartnerInvoice.getAmountIncVat - allocation.getAmount)|number_format(2, '.', ' ') }}
{% endfor %} {% endif %}