{% extends 'D2BillingBundle::layout.html.twig' %} {% block head_style_extra %} {% endblock head_style_extra %} {% block head_script_extra %} {% endblock head_script_extra %} {% block page_header %}
PDF {% if is_granted('ROLE_ADMIN_REFUND_MANAGE') %} {% endif %}
{{ with_selected_form('refunditem_list', {small: true}) }}

{% for k, v in app.request.query %} {% if k|lower not in ['search', 'page', 'from_date', 'to_date'] %} {% endif %} {% endfor %}
New
{% endblock page_header %} {% block content %}
{% for entity in refunds %} {% endfor %}
{{ knp_pagination_sortable(refunds, 'Date', 'r.status') }} {{ knp_pagination_sortable(refunds, 'Refund No', 'r.code') }} {{ knp_pagination_sortable(refunds, 'Account', 'r.accountName') }} {{ knp_pagination_sortable(refunds, 'Payment No', 'r.payment') }} {{ knp_pagination_sortable(refunds, 'Payment Description', 'r.description') }} {{ knp_pagination_sortable(refunds, 'Invoices', 'r.payment') }} {{ knp_pagination_sortable(refunds, 'Approval User', 'r.aproval_staff') }} {{ knp_pagination_sortable(refunds, 'Payment User', 'r.payment_request_staff') }} {{ knp_pagination_sortable(refunds, 'Total', 'r.payment') }} {{ knp_pagination_sortable(refunds, 'Status', 'r.status') }}
{{ with_selected_checkbox('refunditem_list', entity.id) }} {% if entity.date %}{{ entity.date|date('Y-m-d') }}{% endif %} {{ entity.code }} {{ entity.payment.account.companyName }} {{ entity.payment.code }} {{ entity.payment.description }} {% for invoices in entity.refundInvoices %}   {% endfor %} {% if entity.aprovalstaff %} {{ entity.aprovalstaff }} {% endif %} {% if entity.payment.user %} {{ entity.payment.user }} {% endif %} {{ d2_config('currency_symbol') }} {{ entity.payment.amount|number_format(2, '.', ',') }} {% if is_granted('ROLE_ADMIN_REFUND_MANAGE') %}{% if entity.status != 'Paid' and entity.status != 'Denied' %} Edit Refund{% endif %}{% endif %} {% if entity.state == 'creating' %}Draft{% else %}{{ entity.status }}{% endif %}
{% endblock content %}