From 39bde25d2422c31ad950c7302faa3507c5a699b5 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Fri, 12 Jan 2024 16:37:04 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorations=20cosm=C3=A9tiques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/pdf.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/admin/pdf.php b/admin/pdf.php index 38c2d50..c426f8b 100644 --- a/admin/pdf.php +++ b/admin/pdf.php @@ -58,13 +58,19 @@ if ($f->type_facture != CERFA) switch ($f->type_facture) { case FACT: - $doc = 'Facture n°'. $f->numero; + $doc = 'Facture n° '. $f->numero; + $txtemis = $doc . " - Émise le " . $emission; + $txtdest = "Adressée à :"; break; case DEVIS: - $doc = 'Devis n°'. $f->numero; + $doc = 'Devis n° '. $f->numero; + $txtemis = $doc . " - Émis le " . $emission; + $txtdest = "Adressé à :"; break; case COTIS: - $doc = 'Reçu de cotisation n°'. $f->numero; + $doc = 'Reçu de cotisation n° '. $f->numero; + $txtemis = $doc . " - Émis le " . $emission; + $txtdest = "Adressé à :"; break; } @@ -97,7 +103,7 @@ if ($f->type_facture != CERFA) (($t = $config->get('site_asso'))?"Site web : $t
":''); $receveur = - 'Adressé à :

'. + $txtdest.'
'. ''.$c->nom.'
'. $c->adresse."
". $c->code_postal.' '.$c->ville."
". @@ -307,7 +313,7 @@ EOF;

- $doc - Émis le $emission + $txtemis