{% extends 'base.html.twig' %} {% block title %}Transactions — {{ organization.name }} — VIIZIA{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% if transactions is not empty %} {% endif %} {% if transactions is not empty and app.user.isSuperadmin %} {% endif %} {% endblock %} {% block body %}

Transactions

{{ organization.name }} {% if filters.bookingDateFrom and filters.bookingDateTo %} · {{ filters.bookingDateFrom|date('d/m/Y') }} au {{ filters.bookingDateTo|date('d/m/Y') }} {% endif %}

{% include '_partials/period_tabs.html.twig' with { route_name: 'admin_transactions_index', filters: filters, show_period_calendar: true, filters_form_id: 'transaction-list-filters-form' } only %}
{% include '_partials/transaction_filters.html.twig' with { form_action: path('admin_transactions_index'), clear_href: path('admin_transactions_index'), period_calendar_inline: true, } %} {% if transactions is empty %}

Aucune transaction trouvée

Élargissez la période (ex. « Toutes les périodes ») ou retirez des filtres.

{% else %} {% set txn_sort_cols = constant('App\\Dto\\Admin\\TransactionListFilters::SORT_KEYS') %} {% set txn_col_labels = constant('App\\Dto\\Admin\\TransactionListFilters::COLUMN_LABELS') %} {% if app.user.isSuperadmin %}
Cochez une ou plusieurs lignes, puis validez (page courante uniquement).
{% endif %}
{% for t in transactions %} {% endfor %}

Appliquer les mots-clés d’import (mémo)

Traite uniquement les lignes affichées sur cette page, selon les règles actuelles et le libellé de chaque transaction. Utilisez la case ci‑dessous pour aussi remplacer catégorie / bien / plateforme déjà renseignés.

{% if app.user.isSuperadmin %} {% endif %} {% for col in txn_sort_cols %} {% set is_cur = filters.sort == col %} {% set aria_sort = is_cur ? (filters.order == 'asc' ? 'ascending' : 'descending') : 'none' %} {% if col == 'category' %} {% endif %} {% endfor %} {% for t in transactions %} {% set ba = t.bankAccount %} {% set list_meta_form_id = 'viz-list-meta-' ~ t.id %} {% set label_body %} {% set fullTitle = t.label|e('html_attr') %} {% set listLbl = t.label|viz_txn_list_label %} {%- if listLbl != '' -%}{{ listLbl|viz_label }}{%- else -%}{%- endif -%} {% if t.reference %}
{{ t.reference }} {% endif %} {% if t.property or t.rentalPlatform %}
{% if t.property %} {{ t.property.code|viz_label }} {% endif %} {% if t.rentalPlatform %} {% set pColor = t.rentalPlatform.color ?? '#6B7280' %} {% if t.rentalPlatform.icon %}{% endif %} {{ t.rentalPlatform.name|viz_label }} {% endif %} {% endif %} {% if t.notes %}
{{ t.notes|slice(0, 60) }}{% if t.notes|length > 60 %}…{% endif %} {% endif %} {% endset %} {% if app.user.isSuperadmin %} {% endif %} {% endfor %}
{{ attribute(txn_col_labels, col) }} {% if is_cur %} {% endif %} {% if is_cur %} — tri {{ filters.order == 'asc' ? 'croissant' : 'décroissant' }}{% else %}, trier{% endif %} Tags Actions
{{ t.bookingDate|date('d/m/Y') }}
{{ label_body }}
{% for link in t.tagLinks %} {% set tid = link.tag.id %} {{ link.tag.name|viz_label }} {% endfor %}
{{ t.direction.value == 'out' ? '−' : '+' }}{{ t.amount|money(t.currency, ba.currencyMinorUnits) }}
Total page courante {% if page_amount_mixed_currency %} {% else %} {{ page_signed_total_cents < 0 ? '−' : '+' }}{{ page_signed_total_cents|abs|money(page_amount_currency, page_amount_minor_units) }} {% endif %}
{% set range_from = total > 0 ? ((page - 1) * per_page) + 1 : 0 %} {% set range_to = total > 0 ? min(page * per_page, total) : 0 %}
{% for n in per_page_choices %} {% if filters.perPage == n %} {{ n }} {% else %} {{ n }} {% endif %} {% endfor %}
Éléments par page
{% if total > 0 %} {{ range_from }}–{{ range_to }} sur {{ total }} {% endif %}
{% endif %} {% endblock %}