Skip to content

Commit

Permalink
TVA intracommunautaire code review
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Dec 9, 2023
1 parent bc4b443 commit 1694338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions sources/Afup/Comptabilite/Facture.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 "TVA Intracommunautaire : FR7612345"

0 comments on commit 1694338

Please sign in to comment.