{% extends 'base.html.twig' %} {% block title %}Import PDF — {{ job.sourceFilename }} — VIIZIA{% endblock %} {% block body %} {% set pdfReviewRowCount = rows|length %} {% set pdf_action_buttons %}
{% if job.status.value == 'partial' and pdfReviewRowCount > 0 %}
{% endif %} {% if pending_pdf_row_count > 0 %}
{% endif %} Rapport
{% if prevPendingJob %} {% else %} {% endif %} Imports {% if nextPendingJob %} {% else %} {% endif %}
{% endset %}

{{ job.sourceFilename }}

{{ job.organization.name }} · {{ job.bankAccount.label }} · {{ job.status.label }} · {{ job.transactionsImported }} importée(s), {{ job.transactionsSkipped }} ignorée(s) / {{ job.transactionsTotal }} détectée(s)

{{ pdf_action_buttons }}
{% for row in rows %} {% endfor %}
Date Libellé Montant Sens Enrichissement & actions
{{ row.bookingDate|date('d/m/Y') }} {{ row.label|viz_label }} {{ (row.amountCents / 100)|number_format(2, ',', ' ') }} € {% if row.direction == 'in' %} Entrée {% else %} Sortie {% endif %} {% if row.state == 'pending' %} {% set sugCatId = row.enrichmentSuggestCategoryId|default(null) %} {% set blockedCatId = row.enrichmentMemoBlockedCategoryId|default(null) %} {% set blockedKind = row.enrichmentMemoBlockedCategoryKind|default('') %} {% set spid = row.listingSuggestPropertyId|default(null) %} {% set sfpfid = row.listingSuggestPlatformId|default(null) %} {# Vert uniquement si la catégorie suggérée est réellement présente dans la liste rendue (sinon le select aurait l'air vide avec une bordure verte) #} {% set suggestedCategoryId = false %} {% if sugCatId is not null and (sugCatId ~ '') != '' %} {% for c in categories %} {% if not suggestedCategoryId and (c.id ~ '') == (sugCatId ~ '') %} {% set suggestedCategoryId = true %} {% endif %} {% endfor %} {% endif %} {% set suggestedPropertyId = spid is not null and (spid ~ '') != '' %} {% set suggestedPlatformId = sfpfid is not null and (sfpfid ~ '') != '' %}
{% if blockedCatId is not null and (blockedCatId ~ '') != '' %} {% for c in categories %} {% if (c.id ~ '') == (blockedCatId ~ '') %}

Un mot-clé pointe vers « {{ c.name|viz_label }} » ({{ blockedKind == 'income' ? 'recette' : (blockedKind == 'expense' ? 'dépense' : 'virement interne') }}), mais le sens affiché est {{ row.direction == 'in' ? 'entrée' : 'sortie' }} alors que ce type de catégorie ne s’applique pas ainsi. Contrôlez débit/crédit sur le relevé ; si besoin classez à la main ou corrigez la transaction après import.

{% endif %} {% endfor %} {% endif %}
{% elseif row.state == 'imported' and row.transactionId %} Enregistrée Ouvrir la transaction {% set rsug = row.enrichmentSuggestCategoryId|default(null) %} {% set rblockedCat = row.enrichmentMemoBlockedCategoryId|default(null) %} {% set rblockedKind = row.enrichmentMemoBlockedCategoryKind|default('') %} {% set rspid = row.listingSuggestPropertyId|default(null) %} {% set rspfid = row.listingSuggestPlatformId|default(null) %} {% if rsug or rspid or rspfid or (rblockedCat is not null and (rblockedCat ~ '') != '') %}
{% if rblockedCat is not null and (rblockedCat ~ '') != '' %} {% for c in categories %} {% if (c.id ~ '') == (rblockedCat ~ '') %} Mot-clé bloqué (sens) : {{ c.name|viz_label }} ({{ rblockedKind == 'income' ? 'recette' : (rblockedKind == 'expense' ? 'dépense' : 'virement') }}) {% endif %} {% endfor %} {% endif %} {% if rsug is not null and (rsug ~ '') != '' %} {% for c in categories %} {% if (c.id ~ '') == (rsug ~ '') %} Suggéré cat. : {{ c.name|viz_label }} {% endif %} {% endfor %} {% endif %} {% if rspid is not null and (rspid ~ '') != '' %} {% for p in properties %} {% if (p.id ~ '') == (rspid ~ '') %} Suggéré bien : {{ p.displayName }} {% endif %} {% endfor %} {% endif %} {% if rspfid is not null and (rspfid ~ '') != '' %} {% for pf in platforms %} {% if (pf.id ~ '') == (rspfid ~ '') %} Suggéré plateforme : {{ pf.name|viz_label }} {% endif %} {% endfor %} {% endif %}

Pour mettre à jour en base : modifiez la transaction directement.

{% endif %} {% elseif row.state == 'skipped' %}
Ignorée
{% endif %}
{{ pdf_action_buttons }}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}