{% extends 'D2PartnerBundle::base.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block page_header %}
Partner Payment
records
{{ knp_pagination_sortable(payment_items, 'Date', 'p.payment_date') }} | {{ knp_pagination_sortable(payment_items, 'Payment To', 'a.company_name') }} | {{ knp_pagination_sortable(payment_items, 'Reference', 'p.reference') }} | {{ knp_pagination_sortable(payment_items, 'Payment Amount', 'p.amount') }} | Allocated Invoices | |
---|---|---|---|---|---|
{{ entity.paymentDate | date("Y/m/d") }} | {{ entity.partner.companyName | trim }} | {{ entity.reference | trim }} | {{ entity.amount|number_format(2, '.', ' ') }} | {% set linked_invoices = entity.invoiceAllocations %} {% if linked_invoices|length > 0 %} {% for allocation in linked_invoices %} {% if allocation.partnerInvoice is not null %} {{ allocation.partnerInvoice.invoiceNumber }} {% else %} Not Allocated {% endif %} {% if loop.last == false %} / {% endif %} {% endfor %} {% endif %} |
|