From 086dbaec18901a42721d4eca16274cf0bb137024 Mon Sep 17 00:00:00 2001 From: engel <> Date: Sat, 4 Feb 2023 15:47:52 +0000 Subject: [PATCH 01/51] =?UTF-8?q?Mise=20=C3=A0=20jour=20README=20et=20garr?= =?UTF-8?q?adin=5Fplugin.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 199aaaac9e24b125a98bb4848c81d6a292a9dbffdd59b31901a8d66341b63fce --- README.md | 1 + garradin_plugin.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 83801e5..7d460bb 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Vous pouvez télécharger [l'archive .tar.gz](https://ncloud6.zaclys.com/index.p - reçu par activité et tarif : 1, plusieurs ou tous - reçu par personne : 1, plusieurs ou tous - distinguer les différents taux de réduction + - génération des reçus au format PDF ou impression depuis le navigateur ## Configuration - association diff --git a/garradin_plugin.ini b/garradin_plugin.ini index 27e3292..a52e6b8 100644 --- a/garradin_plugin.ini +++ b/garradin_plugin.ini @@ -2,7 +2,7 @@ nom="Reçus fiscaux" description="Génération de reçus fiscaux pour les dons des membres" auteur="jce" url="https://ncloud6.zaclys.com/index.php/s/RZQK2So8HemkH3w" -version="0.8" +version="0.9" menu=1 config=1 min_version="1.1.23" From d7f78743c84f1e146153cf661667dbd81f5a7e07 Mon Sep 17 00:00:00 2001 From: engel <> Date: Mon, 6 Feb 2023 13:10:00 +0000 Subject: [PATCH 02/51] =?UTF-8?q?ajout=20mise=20=C3=A0=20jour=20configurat?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 56439aa7656d7e3deaf5c8136317085459aa7c712b608b107c21ae2c868e3462 --- upgrade.php | 17 +++++++++++++++++ www/admin/index.php | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 upgrade.php diff --git a/upgrade.php b/upgrade.php new file mode 100644 index 0000000..754668f --- /dev/null +++ b/upgrade.php @@ -0,0 +1,17 @@ +prefixe = ""; + $configNum->annee = false; + $configNum->membre = false; + $configNum->sequentiel = false; + $configNum->valeur_init = 1; + $plugin->setConfig('numerotation', $configNum); + $plugin->setConfig('imprimerCourriel', false); +} diff --git a/www/admin/index.php b/www/admin/index.php index 4c5e0f3..9125c0c 100644 --- a/www/admin/index.php +++ b/www/admin/index.php @@ -4,6 +4,11 @@ namespace Garradin; use Garradin\Plugin\RecusFiscaux\Utils; +// mettre à jour le plugin si besoin +if ($plugin->needUpgrade()) { + $plugin->upgrade(); +} + // Année fiscale par défaut if (! isset($_SESSION['annee_recu']) || $_SESSION['annee_recu'] == "") { From 6d5fb6e8e2f6c6b8e66668d1a70fd567fc50a7df Mon Sep 17 00:00:00 2001 From: engel <> Date: Mon, 6 Feb 2023 16:58:43 +0000 Subject: [PATCH 03/51] correction typos README FossilOrigin-Name: e47558a0b22785a1425a974a791641fe1f0bacdcfb5c3910bef59c92d46b3c2c --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d460bb..3594e16 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Plugin de reçus fiscaux pour le logiciel de gestion d'association Garradin/Pahe ## Installation ### Attention -Les archives disponibles sur ce gitlab n'ont pas un format compatible avec Garragin/Paheko et ne peuvent donc être utilisées telles quelles ; il faut soit les transformer pour les rendre compatibles, soit (plus simple) télécharger l'archive indiquée ci-dessous. +Les archives disponibles sur ce gitlab n'ont pas un format compatible avec Garradin/Paheko et ne peuvent donc être utilisées telles quelles ; il faut soit les transformer pour les rendre compatibles, soit (plus simple) télécharger l'archive indiquée ci-dessous. ### Archive Vous pouvez télécharger [l'archive .tar.gz](https://ncloud6.zaclys.com/index.php/s/RZQK2So8HemkH3w), et la copier dans le dossier plugins de Garradin/Paheko. @@ -28,6 +28,6 @@ Vous pouvez télécharger [l'archive .tar.gz](https://ncloud6.zaclys.com/index.p - signature (image) - autres - ville (précède la date sur le formulaire) - - paramétrage numéro de reçu (préfixe quelconque, année fiscale, numéro de memmbre ou séquentiel) + - paramétrage numéro de reçu (préfixe quelconque, année fiscale, numéro de membre ou séquentiel) - possibilité imprimer adresse de courriel - choix et ordre des champs pour le nom et prénom (le libellé doit contenir le terme 'nom', casse indifférente) From 6ba58c621cc2cd31baafdce4ddf59e882e1deae7 Mon Sep 17 00:00:00 2001 From: engel <> Date: Mon, 6 Feb 2023 17:37:12 +0000 Subject: [PATCH 04/51] correction petit oubli upgrade.php FossilOrigin-Name: efb9c630582804a571607b2a441206c4551aae6a4f4d80fb65ac2a88a739aa9d --- upgrade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upgrade.php b/upgrade.php index 754668f..de36e6c 100644 --- a/upgrade.php +++ b/upgrade.php @@ -4,6 +4,8 @@ namespace Garradin; use Garradin\Entities\Files\File; +$old_version = $plugin->getInfos('version'); + if (version_compare($old_version, '0.9', '<')) { $configNum = new \stdClass(); From bae96fce76505bb018e67324074790f70baaafb0 Mon Sep 17 00:00:00 2001 From: engel <> Date: Tue, 7 Mar 2023 09:55:51 +0000 Subject: [PATCH 05/51] correction erreur raz structures ; simplification aiguillage FossilOrigin-Name: 2f8d2df149885b80cb8b98d6ccc2e21e7ab671fed7de8154453dd13344b2d0be --- www/admin/action.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/admin/action.php b/www/admin/action.php index 67602ac..e9785c2 100644 --- a/www/admin/action.php +++ b/www/admin/action.php @@ -205,11 +205,12 @@ $tpl->register_function('fin_tarif', function ($params) // ------------------------------------------------------------------------ // aiguillage // ------------------------------------------------------------------------ +unset($_SESSION['comptesSelectionnes']); +unset($_SESSION['tauxSelectionnes']); +unset($_SESSION['lesVersements']); if ($_GET['action'] == 'personne') { require('versements_personnes.php'); -} else if ($_GET['action'] == 'compte') { - require('versements_personnes.php'); } else if ($_GET['action'] == 'activite') { require('versements_activites.php'); } From 44bf4e55d6c795fd3d3727957f193174629ea0f3 Mon Sep 17 00:00:00 2001 From: engel <> Date: Fri, 10 Mar 2023 19:41:46 +0000 Subject: [PATCH 06/51] correction oubli code postal FossilOrigin-Name: 13a21b236ca87edeff84aca12cbd876492d023ebd344c4df2b46a38f0a8f63da --- templates/recu_html.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/recu_html.tpl b/templates/recu_html.tpl index e7de081..6cfa2ff 100644 --- a/templates/recu_html.tpl +++ b/templates/recu_html.tpl @@ -44,7 +44,7 @@
{$personne.nomPrenom}
{$personne.adresse}
- {$personne.code} {$personne.ville}
+ {$personne.codePostal} {$personne.ville}
{if $courriel && $personne.courriel != ""}
courriel : {$personne.courriel}
{/if}
From bf585cbe26aa0fb28c2ec9bfb82582725a634eea Mon Sep 17 00:00:00 2001
From: engel <>
Date: Sat, 11 Mar 2023 14:49:31 +0000
Subject: [PATCH 07/51] =?UTF-8?q?petite=20simplification=20feuille=20de=20?=
=?UTF-8?q?style=20re=C3=A7u=20pdf?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
FossilOrigin-Name: 3289bdb1b1a9e69c5d059c27cae5487baa703b117731a1ae6c82c2fb85d7c736
---
templates/recu.skel | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/templates/recu.skel b/templates/recu.skel
index d60fa68..e3dcf3b 100644
--- a/templates/recu.skel
+++ b/templates/recu.skel
@@ -2,18 +2,16 @@