From 16943381082d7f954d5142a24e434e576b72c804 Mon Sep 17 00:00:00 2001 From: Albin Date: Fri, 8 Dec 2023 13:46:00 +0100 Subject: [PATCH] TVA intracommunautaire code review #1348 --- sources/Afup/Comptabilite/Facture.php | 3 +-- tests/behat/features/Admin/Tresorerie/DevisFactures.feature | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sources/Afup/Comptabilite/Facture.php b/sources/Afup/Comptabilite/Facture.php index 79cfa06f1..00ee234a2 100644 --- a/sources/Afup/Comptabilite/Facture.php +++ b/sources/Afup/Comptabilite/Facture.php @@ -479,8 +479,7 @@ function genererFacture($reference, $chemin = null) utf8_decode($coordonnees['code_postal']) . "\n" . utf8_decode($coordonnees['ville']) . "\n" . utf8_decode($pays->obtenirNom($coordonnees['id_pays'])) . - $coordonnees['tva_intra'] ? ("\nTVA : ".utf8_decode($coordonnees['tva_intra'])) : null - ); + ($coordonnees['tva_intra'] ? ("\n" . utf8_decode('N° TVA Intracommunautaire : ' . $coordonnees['tva_intra'])) : null) ); $pdf->Ln(10); $pdf->SetFont('Arial', 'BU', 10); diff --git a/tests/behat/features/Admin/Tresorerie/DevisFactures.feature b/tests/behat/features/Admin/Tresorerie/DevisFactures.feature index 9d8003824..23e212a1c 100644 --- a/tests/behat/features/Admin/Tresorerie/DevisFactures.feature +++ b/tests/behat/features/Admin/Tresorerie/DevisFactures.feature @@ -83,4 +83,4 @@ Feature: Administration - Trésorerie - Devis/Facture And I follow the button of tooltip "Télécharger la facture" Then the response header "Content-disposition" should match '#attachment; filename="Facture - ESN dev en folie - (.*).pdf"#' When I parse the pdf downloaded content - Then The page "1" of the PDF should contain "TVA : FR7612345" + Then The page "1" of the PDF should contain "N° TVA Intracommunautaire : FR7612345"