From 4b3b323f78e578c16b3e05223560118626ebe3b7 Mon Sep 17 00:00:00 2001 From: upskaling Date: Tue, 2 Jun 2026 09:05:39 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Correction=20du=20t=C3=A9l=C3=A9chargement?= =?UTF-8?q?=20de=20facture=20(#2270)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/admin/accounting/search.html.twig | 2 +- templates/admin/event/ticket/form.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/admin/accounting/search.html.twig b/templates/admin/accounting/search.html.twig index 4ee8ccd3c..b2cb01bce 100644 --- a/templates/admin/accounting/search.html.twig +++ b/templates/admin/accounting/search.html.twig @@ -203,7 +203,7 @@ {{ invoice.transaction }} {{ invoice.forum_titre }} - diff --git a/templates/admin/event/ticket/form.html.twig b/templates/admin/event/ticket/form.html.twig index 0da0c3329..624fe29c7 100644 --- a/templates/admin/event/ticket/form.html.twig +++ b/templates/admin/event/ticket/form.html.twig @@ -19,7 +19,7 @@

{% if invoice is defined %}

- Rechercher la facture + Rechercher la facture

{% endif %} {{ form_row(form.invoice.reference) }} From 1890b5354053a058be4e0b51cfb19d3c1baeee1f Mon Sep 17 00:00:00 2001 From: upskaling Date: Tue, 2 Jun 2026 11:20:48 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Valider=20le=20t=C3=A9l=C3=A9chargement=20d?= =?UTF-8?q?e=20facture=20d'=C3=A9v=C3=A9nement=20depuis=20la=20recherche?= =?UTF-8?q?=20comptable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/admin/accounting/search.html.twig | 1 + .../Admin/Tresorerie/RechercheComptable.feature | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/templates/admin/accounting/search.html.twig b/templates/admin/accounting/search.html.twig index b2cb01bce..d862b66a9 100644 --- a/templates/admin/accounting/search.html.twig +++ b/templates/admin/accounting/search.html.twig @@ -205,6 +205,7 @@ diff --git a/tests/behat/features/Admin/Tresorerie/RechercheComptable.feature b/tests/behat/features/Admin/Tresorerie/RechercheComptable.feature index 126052166..6b37489f1 100644 --- a/tests/behat/features/Admin/Tresorerie/RechercheComptable.feature +++ b/tests/behat/features/Admin/Tresorerie/RechercheComptable.feature @@ -20,3 +20,16 @@ Feature: Administration - Trésorerie - Recherche comptable And the "h2.ui.header" element should contain "Cotisations de personnes physiques" And I should see "13/07/2018 >" And I should see "25.00 Paul Personne @paul" + + @reloadDbWithTestData + Scenario: Télécharger une facture Forum depuis la recherche comptable + Given I am logged in as admin and on the Administration + When I follow "Recherche comptable" + Then the ".content h2" element should contain "Recherche comptable" + When I fill in "search[query]" with "Helios Aerospace" + And I press "Rechercher" + Then the "h2.ui.header" element should contain "Factures Forum" + And the ".content table" element should contain "REF-TEST-001" + And the ".content table" element should contain "Helios Aerospace" + When I follow "telecharger_REF-TEST-001" + Then the response header "Content-disposition" should match '#attachment; filename="Facture - Helios Aerospace - (.*).pdf"#'