{% extends 'base.html.twig' %} {% block title %}Import PDF — {{ job.sourceFilename }} — VIIZIA{% endblock %} {% block body %} {% set pdfReviewRowCount = rows|length %} {% set pdf_action_buttons %}
{% 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)
| 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 ~ '') != '' %}
{% 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' %} {% endif %} |
Catégorie
Mot-clé d’import
Libellé de la ligne (référence)