{% extends 'D2BillingBundle::layout.html.twig' %} {% block head_style_extra %} {% endblock head_style_extra %} {% block head_script_extra %} {% endblock head_script_extra %} {% block page_header %}
Payment
records
{{ knp_pagination_sortable(allPayments, 'User', 'p.user') }} | {{ knp_pagination_sortable(allPayments, 'Payment Id', 'p.code') }} | {{ knp_pagination_sortable(allPayments, 'Date', 'p.date') }} | {{ knp_pagination_sortable(allPayments, 'Account', 'p.account') }} | {{ knp_pagination_sortable(allPayments, 'Reference', 'p.reference') }} | {{ knp_pagination_sortable(allPayments, 'Description', 'p.description') }} | {{ knp_pagination_sortable(allPayments, 'Amount', 'p.amount') }} | {{ knp_pagination_sortable(allPayments, 'Unallocated', 'p.amount') }} | Linked Invoices | Status | ||
---|---|---|---|---|---|---|---|---|---|---|---|
{{ entity.user }} | {{ entity.code }} | {% if entity.date %}{{ entity.date|date('Y-m-d') }}{% endif %} | {{ entity.account.companyName }} | {{ entity.reference }} | {{ entity.description }} | {{ d2_config('currency_symbol') }} {{ entity.amount|number_format(2, '.', '') }} | {{ d2_config('currency_symbol') }} {{ attribute(unallocated, entity.id)|number_format(2, '.', '') }} |
{% for invoice in attribute(linkedInvoices, entity.id) %}
{% if invoice.amount != '0' %}
{% endif %}
{% endfor %}
|
{% if is_granted('ROLE_ADMIN_PAYMENT_EDIT') %}
{% if entity.frozen != '1' %}
![]() |
{{ attribute(status, entity.id)|raw }} |