Ajout impression logo avec option de configuration

This commit is contained in:
Jean-Christophe Engel 2024-06-20 15:55:33 +02:00
parent f93bb57906
commit 3d5af4ebb0
3 changed files with 20 additions and 6 deletions

View file

@ -61,17 +61,17 @@ if ($f->type_facture != CERFA)
$doc = 'Facture n° '. $f->numero;
$txtemis = $doc . " - Émise le " . $emission;
$txtdest = "Adressée à :";
break;
break;
case DEVIS:
$doc = 'Devis n° '. $f->numero;
$txtemis = $doc . " - Émis le " . $emission;
$txtdest = "Adressé à :";
break;
break;
case COTIS:
$doc = 'Reçu de cotisation n° '. $f->numero;
$txtemis = $doc . " - Émis le " . $emission;
$txtdest = "Adressé à :";
break;
break;
}
// utiliser l'adresse configurée dans le plugin sinon celle de l'asso sinon rien !
@ -93,6 +93,10 @@ if ($f->type_facture != CERFA)
$adresse = "";
}
$logo='';
if ($plugin->getConfig('logo')) {
$logo = '<img id="logo" src="' . $config->fileURL('logo') . '" />';
}
$asso =
// 'Émis par :<br><br>'.
'<b>'.$config->get('org_name')."</b><br>".
@ -267,6 +271,13 @@ EOF;
width: 40%;
vertical-align: top;
}
.adressage td#logo {
width: 20%;
vertical-align: top;
}
.adressage img#logo {
height : 3cm;
}
.contenuTexte {
padding: 0 6mm;
@ -318,6 +329,7 @@ EOF;
<table class="adressage">
<tr>
<td id="logo">$logo</td>
<td>$asso</td>
<td>$receveur</td>
</tr>