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 |
|
{% if entity.pdfInvoices %}
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 %}
|
{% endif %}
{% if entity.pdfCreditNotes %}
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 %}
|
{% endif %}
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 %}
|