From e6470bd2e984b26ac102a89cf63b02f8f93a8d38 Mon Sep 17 00:00:00 2001 From: engel <> Date: Fri, 22 Dec 2023 10:34:33 +0000 Subject: [PATCH 01/19] =?UTF-8?q?modif=20acc=C3=A8s=20plugin=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 59131604362396ea238eef30a36e4578738c18059d28706cd09dd81d9d2c4328 --- templates/index.tpl | 2 +- www/admin/index.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/index.tpl b/templates/index.tpl index 583e1ff..5e8edfc 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -4,7 +4,7 @@
diff --git a/www/admin/index.php b/www/admin/index.php index 2b4fb14..225e2b2 100644 --- a/www/admin/index.php +++ b/www/admin/index.php @@ -67,6 +67,7 @@ $tpl->assign('plugin_config', $plugin->getConfig()); $tpl->assign('nbTaux', $nbTaux); $tpl->assign('nbChamps', $nbChamps); $tpl->assign('plugin_css', ['style.css']); +$tpl->assign('plugin_url', \Garradin\Utils::plugin_url()); // envoyer au template $tpl->display(PLUGIN_ROOT . '/templates/index.tpl'); From f524ebdc0f79e02e2738bc60ec97b99a0a2ec0ae Mon Sep 17 00:00:00 2001 From: engel <> Date: Fri, 22 Dec 2023 10:34:47 +0000 Subject: [PATCH 02/19] correction typo FossilOrigin-Name: 4837259abc7fc0481a49542515a5f82ef206a8fb04f7c454a5714e5ac197e797 --- templates/recu_html.tpl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/recu_html.tpl b/templates/recu_html.tpl index 6cfa2ff..d6e6b20 100644 --- a/templates/recu_html.tpl +++ b/templates/recu_html.tpl @@ -118,10 +118,7 @@ {/foreach} {* Itération sur les personnes *} -
- -{* scripts divers *} - +
{* * remplacer la feuille de style d'impression de paheko par la mienne From 2b2c2ebcc925ac654500b53913d399fc783d8589 Mon Sep 17 00:00:00 2001 From: engel <> Date: Fri, 22 Dec 2023 10:51:18 +0000 Subject: [PATCH 03/19] la vraie correction :) FossilOrigin-Name: c868114044c1e0df9f9c3a75d688644e119246cfae0bea6073d501e5cd8a6d6f --- templates/recu_html.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/recu_html.tpl b/templates/recu_html.tpl index d6e6b20..1a01a41 100644 --- a/templates/recu_html.tpl +++ b/templates/recu_html.tpl @@ -9,8 +9,6 @@ if ($numero_sequentiel) { $numero_courant = $numero_sequentiel; } ?> -
- {* Itération sur les personnes *} {foreach from=$totalPersonnes key="idPersonne" item="personne"}
@@ -118,7 +116,9 @@
{/foreach} {* Itération sur les personnes *} -
+ +{* scripts divers *} + {* * remplacer la feuille de style d'impression de paheko par la mienne From 674157c925ec2b0402a841f0680290169821a58e Mon Sep 17 00:00:00 2001 From: engel <> Date: Fri, 22 Dec 2023 10:51:47 +0000 Subject: [PATCH 04/19] =?UTF-8?q?ouvrir=20le=20squelette=20des=20re=C3=A7u?= =?UTF-8?q?s=20dans=20un=20nouvel=20onglet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: d9246b62131bccc266ae94801bbb7066c2305cdd4e457c3670c1081b2c639ea6 --- templates/versements_activites.tpl | 2 +- templates/versements_personnes.tpl | 2 +- www/admin/generer_recus.php | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/versements_activites.tpl b/templates/versements_activites.tpl index 4b50d24..0bc1285 100644 --- a/templates/versements_activites.tpl +++ b/templates/versements_activites.tpl @@ -23,7 +23,7 @@ onclick="return verifierChoix(this.form)"} - + {* Itération sur les versements *} {foreach from=$lesVersements key="rang" item="versement"} diff --git a/templates/versements_personnes.tpl b/templates/versements_personnes.tpl index f6dcf59..69774ee 100644 --- a/templates/versements_personnes.tpl +++ b/templates/versements_personnes.tpl @@ -21,7 +21,7 @@ onclick="return verifierChoix(this.form)"} - + {* Itération sur les personnes *} {foreach from=$lesVersements key="rang" item="versement"} diff --git a/www/admin/generer_recus.php b/www/admin/generer_recus.php index a17eb44..47437eb 100644 --- a/www/admin/generer_recus.php +++ b/www/admin/generer_recus.php @@ -9,6 +9,10 @@ use Garradin\UserTemplate\UserTemplate; use Garradin\Plugin\RecusFiscaux\Utils; use Garradin\Plugin\RecusFiscaux\Personne; +// forcer mode dialog pour ouvrir le squelette des reçus dans un nouvel onglet +// à combiner avec target="_blank" ou target="_dialog" dans le fichier tpl +$_GET['_dialog'] = true; + // signature $signature = (null !== $plugin->getConfig('signature')) ? From 1df94237e6a43897793606d7b7a4bc10b460af9d Mon Sep 17 00:00:00 2001 From: engel <> Date: Sat, 23 Dec 2023 11:24:34 +0000 Subject: [PATCH 05/19] =?UTF-8?q?Simplification=20squelette=20des=20re?= =?UTF-8?q?=C3=A7us?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: ca826fc06447f073bcb6dd55b5057fe9eacc56b88742be3be6f1ad2a67b42d71 --- templates/recu_html.tpl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/templates/recu_html.tpl b/templates/recu_html.tpl index 1a01a41..12dcd95 100644 --- a/templates/recu_html.tpl +++ b/templates/recu_html.tpl @@ -1,8 +1,4 @@ - - -{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="%s"|args:$nav} +{include file="admin/_head.tpl" title="%s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id} Date: Sat, 30 Dec 2023 13:09:18 +0000 Subject: [PATCH 06/19] =?UTF-8?q?Mise-=C3=A0-jour=20URL=20archive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 82a61bd11076e20bfb1e449445a6f1bf82a1b8d778a645156253af0af28cd6a0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d6a1513..c470f73 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Plugin reçus fiscaux pour Garradin/Paheko +# Plugin reçus fiscaux pour Paheko -Plugin de reçus fiscaux pour le logiciel de gestion d'association [Garradin/Paheko](https://paheko.cloud). +Plugin de reçus fiscaux pour le logiciel de gestion d'association [Paheko](https://paheko.cloud). ## Installation -**Attention :** 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 télécharger [cette archive](https://ncloud6.zaclys.com/index.php/s/RZQK2So8HemkH3w), et la copier dans le dossier plugins de Garradin/Paheko. +**Attention :** les archives disponibles sur ce dépôt n'ont pas un format compatible avec Paheko et ne peuvent donc être utilisées telles quelles ; il faut soit les transformer pour les rendre compatibles, soit télécharger [cette archive](https://acloud8.zaclys.com/index.php/s/qenoGtrkxHAatKC), et la copier dans le dossier plugins de Paheko. ## Fonctionnalités - Créer des reçus fiscaux pour les dons des membres From a132bec27d6ba7259c7cc01c0c012a6c3293e80e Mon Sep 17 00:00:00 2001 From: engel <> Date: Wed, 3 Jan 2024 15:35:17 +0000 Subject: [PATCH 07/19] =?UTF-8?q?Correction=20case=20incorrectement=20coch?= =?UTF-8?q?=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 79c7e1408f18c1b715f2ed79a0567fd71cd78a20d8726a711f2cefbc0c4b7541 --- templates/index.tpl | 2 +- www/admin/index.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/index.tpl b/templates/index.tpl index 5e8edfc..131f213 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -102,7 +102,7 @@ $activite = $lesActivites[$tarif->idActivite]; ?>
- {if $nbTarifs == 1} + {if $nbTarifs == 1 && $nbComptesSansActivite == 0} {input type="checkbox" name="tarifs[]" diff --git a/www/admin/index.php b/www/admin/index.php index 225e2b2..2426c07 100644 --- a/www/admin/index.php +++ b/www/admin/index.php @@ -61,6 +61,7 @@ $tpl->assign('lesTarifs', $_SESSION['lesTarifs']); $tpl->assign('lesActivites', $_SESSION['lesActivites']); $tpl->assign('activitesTarifsComptes', $activitesTarifsComptes); $tpl->assign('comptesSansActivite', $comptesSansActivite); +$tpl->assign('nbComptesSansActivite',count($comptesSansActivite)); $tpl->assign('nbTarifs', count($activitesTarifsComptes)); $tpl->assign('nbComptes', count($_SESSION['comptes'])); $tpl->assign('plugin_config', $plugin->getConfig()); From 83020af56e6dd6e0913810c79d12753831801ceb Mon Sep 17 00:00:00 2001 From: engel <> Date: Thu, 4 Apr 2024 14:22:28 +0000 Subject: [PATCH 08/19] =?UTF-8?q?garradin=5Fplugin.ini=20:=20Mise-=C3=A0-j?= =?UTF-8?q?our=20URL=20archive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 1d1bde3920e56d9e64dfdb8e019a012c147a8b67dc9434d2219a2b2f8ebbb974 --- garradin_plugin.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garradin_plugin.ini b/garradin_plugin.ini index a52e6b8..e1a8411 100644 --- a/garradin_plugin.ini +++ b/garradin_plugin.ini @@ -1,7 +1,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" +url="https://acloud8.zaclys.com/index.php/s/qenoGtrkxHAatKC" version="0.9" menu=1 config=1 From a5ba3c52ba886f050f424164dbfc5008736fc468 Mon Sep 17 00:00:00 2001 From: engel <> Date: Sun, 7 Apr 2024 14:19:52 +0000 Subject: [PATCH 09/19] README : Correction typo FossilOrigin-Name: 568fc91d4cabd3f1ab09ec9b3ef05fac507a43f84826550bfa1a149576e9c049 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c470f73..426bcce 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Plugin de reçus fiscaux pour le logiciel de gestion d'association [Paheko](http ## Configuration - association - - Objet (but) de l'association + - Objet (but) de l'association - articles du CGI concernés par la réduction fiscale - taux de réduction applicables - responsable From e097e0c836d21982425ad3301088b557e057e7c9 Mon Sep 17 00:00:00 2001 From: engel <> Date: Tue, 4 Jun 2024 16:55:05 +0000 Subject: [PATCH 10/19] README : modification paragraphe installation FossilOrigin-Name: c9d74b4a76cb76838a0e7e3b456d251ded54090c69a51bcf3320bc16c7002eea --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 426bcce..0136279 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Plugin de reçus fiscaux pour le logiciel de gestion d'association [Paheko](http ## Installation -**Attention :** les archives disponibles sur ce dépôt n'ont pas un format compatible avec Paheko et ne peuvent donc être utilisées telles quelles ; il faut soit les transformer pour les rendre compatibles, soit télécharger [cette archive](https://acloud8.zaclys.com/index.php/s/qenoGtrkxHAatKC), et la copier dans le dossier plugins de Paheko. +Télécharger la [version la plus récente](https://git.roflcopter.fr/lesanges/recusfiscaux/releases) au format tar.gz, supprimer le numéro de version du nom de l'archive et la copier dans le répertoire data/plugins de Paheko ## Fonctionnalités - Créer des reçus fiscaux pour les dons des membres From 1dc7969f0d1a4de6f40faf15e528e56159ba88ca Mon Sep 17 00:00:00 2001 From: engel <> Date: Wed, 18 Sep 2024 07:43:50 +0000 Subject: [PATCH 11/19] remplacement toAssoc par KD2\DB\SQLite3\getGrouped FossilOrigin-Name: e62da476e3bd6388bc26fc18ec4c6b6bf1fa56b01b465d3b6c6cad167d4a3447 --- lib/Utils.php | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/lib/Utils.php b/lib/Utils.php index 3f00ca9..343616f 100644 --- a/lib/Utils.php +++ b/lib/Utils.php @@ -22,7 +22,7 @@ class Utils description, amount as montant FROM services_fees'); - return Utils::toAssoc($db->get($sql), 'id'); + return $db->getGrouped($sql); } /** @@ -37,7 +37,7 @@ class Utils services.label, services.description FROM services'); - return Utils::toAssoc($db->get($sql), 'id'); + return $db->getGrouped($sql); } /** @@ -76,7 +76,7 @@ class Utils $annee, $db->where('code', $op, $comptes) ); - return Utils::toAssoc($db->get($sql), 'id'); + return $db->getGrouped($sql); } /** @@ -120,32 +120,6 @@ class Utils return $db->get($sql); } - /** - * faire un tableau associatif avec le résultat d'une requête - */ - static function toAssoc($array, $nomCle) - { - $assoc = array(); - foreach ($array as $elem) - { - $ro = new \ReflectionObject($elem); - $proprietes = $ro->getProperties(); - $obj = new \stdClass(); - foreach ($proprietes as $p) - { - $pname = $p->getName(); - if ($pname == $nomCle) { - $key = $p->getValue($elem); - } - else { - $obj->$pname = $p->getValue($elem); - } - } - $assoc[$key] = $obj; - } - return $assoc; - } - /** * @return versements correspondants à l'année donnée * @param $annee From 27168d0f0b603b753e934eea0f2a85dd80bc9cab Mon Sep 17 00:00:00 2001 From: engel <> Date: Wed, 18 Sep 2024 07:44:20 +0000 Subject: [PATCH 12/19] =?UTF-8?q?Petites=20am=C3=A9liorations=20visuelles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: d49c7da937399712e76d901e1ce5b1cd6e4db96ebe67e642f4449d4bbb2cce77 --- admin/imprimer_recu.css | 15 ++++++++++++++- templates/recu_html.tpl | 30 +++++++++++++++--------------- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/admin/imprimer_recu.css b/admin/imprimer_recu.css index 8a51941..31778da 100644 --- a/admin/imprimer_recu.css +++ b/admin/imprimer_recu.css @@ -34,5 +34,18 @@ div.previs_recu font-family: Serif; font-size: 11pt; background-color: white; - page-break-after: always; + break-after: always; +} + +/* supprimer saut de page après dernier */ +div.previs_recu:last-of-type +{ + font-family: Serif; + font-size: 11pt; + background-color: white; + break-after: avoid; +} + +#__profiler { + display: none; } diff --git a/templates/recu_html.tpl b/templates/recu_html.tpl index 2390886..2bed92f 100644 --- a/templates/recu_html.tpl +++ b/templates/recu_html.tpl @@ -1,4 +1,4 @@ -{include file="_head.tpl" title="%s"|args:$plugin.name current="plugin_%s"|args:$plugin.id} +{include file="_head.tpl" title="%s"|args:$plugin.label current="plugin_%s"|args:$plugin.id} Articles 200, 238 bis et 978 du code général des impôts

{if $numero_sequentiel} - {afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_courant} - + {afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_courant} + {else} - {afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_sequentiel} + {afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_sequentiel} {/if}
@@ -28,20 +28,20 @@

Bénéficiaire des versements

Association « {$org_name} »
- {$org_address}
- Objet : {$objet_asso} + {$org_address}
+ Objet : {$objet_asso}

Donateur

- {$personne.nomPrenom}
- {$personne.adresse}
- {$personne.codePostal} {$personne.ville} - {if $courriel && $personne.courriel != ""} -
courriel : {$personne.courriel} - {/if} + {$personne.nomPrenom}
+ {$personne.adresse}
+ {$personne.codePostal} {$personne.ville} + {if $courriel && $personne.courriel != ""} +
courriel : {$personne.courriel} + {/if}

@@ -50,7 +50,7 @@