From c6515e18e49d81fb84ba69872f41cf02d5c4278e Mon Sep 17 00:00:00 2001
From: engel <>
Date: Fri, 25 Feb 2022 14:51:48 +0000
Subject: [PATCH] =?UTF-8?q?param=C3=A9trage=20articles=20CGI,=20nom=20et?=
=?UTF-8?q?=20fonction=20responsable?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
FossilOrigin-Name: be718016fdbe18eb51c7245ea996fffc6a1cce1ce4eb694a38042acd8356f782
---
config.json | 6 ++--
lib/RecusHTML.php | 54 +++++++++++++++++++++++----------
lib/Utils.php | 3 ++
lib/pdf.css | 11 ++-----
templates/config.tpl | 33 +++++++++++++++-----
www/admin/config.php | 4 ++-
www/admin/generer_activites.php | 14 +++++++--
www/admin/generer_personnes.php | 14 +++++++--
www/admin/style.css | 4 +++
9 files changed, 102 insertions(+), 41 deletions(-)
diff --git a/config.json b/config.json
index 59b6ce7..995e5df 100644
--- a/config.json
+++ b/config.json
@@ -1,15 +1,15 @@
{
"articlesCGI" : [
{
- "titre" : "Article 200",
+ "titre" : "200",
"valeur" : 0
},
{
- "titre" : "Article 228 bis",
+ "titre" : "228 bis",
"valeur" : 0
},
{
- "titre" : "Article 978",
+ "titre" : "978",
"valeur" : 0
}
],
diff --git a/lib/RecusHTML.php b/lib/RecusHTML.php
index b5db027..d00e780 100644
--- a/lib/RecusHTML.php
+++ b/lib/RecusHTML.php
@@ -9,6 +9,9 @@ class RecusHTML
private $nomAsso;
private $adresseAsso;
private $objetAsso;
+ private $nomResponsable;
+ private $fonctionResponsable;
+ private $articlesCGI;
private $signature;
/**
@@ -17,18 +20,23 @@ class RecusHTML
function __construct($nomAsso,
$adresseAsso,
$objetAsso,
+ $nomResponsable,
+ $fonctionResponsable,
+ $articlesCGI,
$signature)
{
$this->nomAsso = $nomAsso;
$this->adresseAsso = $adresseAsso;
$this->objetAsso = $objetAsso;
+ $this->nomResponsable = $nomResponsable;
+ $this->fonctionResponsable = $fonctionResponsable;
$this->signature = $signature;
+ $this->articlesCGI = $articlesCGI;
$this->html = $this->entete();
}
function get()
{
- //echo $this->html;
return $this->html;
}
@@ -69,24 +77,37 @@ FDD;
foreach ($lesMontants as $taux => $montant)
{
- $this->imprimer_montant("la somme de ",
- $montant,
+ $this->imprimer_montant($montant,
Utils::getLigneReduction($taux));
}
echo "\n";
-
$this->imprimer_description("Date des versements :",
"année {$annee_recu}");
-echo <<
Le bénéficiaire certifie sur l’honneur que les dons et versements qu’il reçoit ouvrent droit à la réduction d'impôt prévue aux articles "; + for ($i = 0; $i < $nbArticles; ++$i) { + printf("%s", $this->articlesCGI[$i]); + if ($i < $nbArticles - 2) { + echo ", "; + } + else if ($i == $nbArticles - 2) { + echo " et "; + } + } + echo " du code général des impôts
"; + } echo "\n"; // cartouche final @@ -95,7 +116,8 @@ echo <<Rennes le {$date}
-Président
+$this->nomResponsable
+$this->fonctionResponsable