{% trans_default_domain 'retencion' %} {% set table_columns = 8 %} {% if not table_selectable is defined %} {# This variable MUST be explicitly set to false to hide checkboxes #} {# If you set this to false and you have a second listing that display them #} {# set explicitly to true in the second listing. #} {% set table_selectable = true %} {% set table_columns = table_columns + 1 %} {% endif %} {% if not paginatable is defined %} {% set paginatable = true %} {% endif %} {% if not sortable is defined %} {% set sortable = true %} {% endif %} {% if table_selectable %} {{ form_start(list_form) }}

Retenciones

   {#
#}
{% endif %} {% if table_selectable %} {# #} {% endif %} {# #} {# #} {##} {% if invoices|length == 0 %} {% endif %} {% set total = 0 %} {% for key, result in invoices %} {% set entity = result %} {% if table_selectable %} {# #} {% endif %} {##} {# #} {# #} {% set total = total+ entity.grossAmount %} {% endfor %}
{# # Serie {% if sortable %} {{ knp_pagination_sortable(invoices, 'list.number'|trans, 'i.number') }} {% else %} {% trans %}list.number{% endtrans %} {% endif %} {% if sortable %} {{ knp_pagination_sortable(invoices, 'Ambiente', 'i.ambiente') }} {% else %} Ambiente {% endif %} {% if sortable %} {{ knp_pagination_sortable(invoices, 'Proveedor', 'i.provider_name') }} {% else %} {% trans %}list.provider{% endtrans %} {% endif %} {% if sortable %} {{ knp_pagination_sortable(invoices, 'list.issue_date'|trans, 'i.issue_date') }} {% else %} {% trans %}list.issue_date{% endtrans %} {% endif %} {% if sortable %} {{ knp_pagination_sortable(invoices, 'list.due_date'|trans, 'i.due_date') }} {% else %} {% trans %}list.due_date{% endtrans %} {% endif %} {% if sortable %} {{ knp_pagination_sortable(invoices, 'Retenido', 'i.gross_amount') }} {% else %} {% trans %}list.gross_amount{% endtrans %} {% endif %} {% if sortable %} {{ knp_pagination_sortable(invoices, 'list.status'|trans, 'i.status') }} {% else %} {% trans %}list.status{% endtrans %} {% endif %} {% if sortable %} {{ knp_pagination_sortable(invoices, 'list.due_amount'|trans, 'due_amount') }} {% else %} {% trans %}list.due_amount{% endtrans %} {% endif %}
{% trans %}list.no_results{% endtrans %}
{{ entity.serie('retencion.draft_label'|trans) }} {{ entity.label('retencion.draft_label'|trans) }} {{ entity.labelAmbiente }} {{ entity.getProviderName }} {{ entity.issueDate|date("d/m/Y") }}{{ entity.dueDate|localizeddate('short', 'none', app.request.locale) }}{{ entity.grossAmount|localizedcurrency(currency, app.request.locale) }} {% if entity.estado == 'A' %} Autorizado {% else %} No Autorizado {% endif %} {{ entity.dueAmount|localizedcurrency(currency, app.request.locale) }} {% trans %}list.payments{% endtrans %}
{% if table_selectable %}
{{ form_end(list_form) }} {% endif %} {% if paginatable %} {% endif %}