Compare commits

...
Sign in to create a new pull request.

15 commits

Author SHA1 Message Date
engel
8b5c08c12d templates/index.tpl : suppression id=menu car problème d'affichage
FossilOrigin-Name: 2a226fb9c4fea0821d48221117af6deb3175d72dcf69204bea4d8689d0efc645
2024-12-04 15:00:49 +00:00
engel
ec0702e48c Allègement barre navigation
FossilOrigin-Name: c189e0f47d7d5d0f6413c7f30d98910802edca75007466ae997826437a92a11b
2024-11-12 14:05:03 +00:00
engel
27168d0f0b Petites améliorations visuelles
FossilOrigin-Name: d49c7da937399712e76d901e1ce5b1cd6e4db96ebe67e642f4449d4bbb2cce77
2024-09-18 07:44:20 +00:00
engel
1dc7969f0d remplacement toAssoc par KD2\DB\SQLite3\getGrouped
FossilOrigin-Name: e62da476e3bd6388bc26fc18ec4c6b6bf1fa56b01b465d3b6c6cad167d4a3447
2024-09-18 07:43:50 +00:00
engel
4fd56bf12d fusion branche evolution : version compatible paheko 1.3
FossilOrigin-Name: 0c32e638c1e3aa705a7b1b4b48ffda7c7decf74bcd4af9f2257edd9e480f08de
2024-08-27 19:10:13 +00:00
engel
e097e0c836 README : modification paragraphe installation
FossilOrigin-Name: c9d74b4a76cb76838a0e7e3b456d251ded54090c69a51bcf3320bc16c7002eea
2024-06-04 16:55:05 +00:00
engel
a5ba3c52ba README : Correction typo
FossilOrigin-Name: 568fc91d4cabd3f1ab09ec9b3ef05fac507a43f84826550bfa1a149576e9c049
2024-04-07 14:19:52 +00:00
engel
83020af56e garradin_plugin.ini : Mise-à-jour URL archive
FossilOrigin-Name: 1d1bde3920e56d9e64dfdb8e019a012c147a8b67dc9434d2219a2b2f8ebbb974
2024-04-04 14:22:28 +00:00
engel
a132bec27d Correction case incorrectement cochée
FossilOrigin-Name: 79c7e1408f18c1b715f2ed79a0567fd71cd78a20d8726a711f2cefbc0c4b7541
2024-01-03 15:35:17 +00:00
engel
977046b657 Mise-à-jour URL archive
FossilOrigin-Name: 82a61bd11076e20bfb1e449445a6f1bf82a1b8d778a645156253af0af28cd6a0
2023-12-30 13:09:18 +00:00
engel
1df94237e6 Simplification squelette des reçus
FossilOrigin-Name: ca826fc06447f073bcb6dd55b5057fe9eacc56b88742be3be6f1ad2a67b42d71
2023-12-23 11:24:34 +00:00
engel
674157c925 ouvrir le squelette des reçus dans un nouvel onglet
FossilOrigin-Name: d9246b62131bccc266ae94801bbb7066c2305cdd4e457c3670c1081b2c639ea6
2023-12-22 10:51:47 +00:00
engel
2b2c2ebcc9 la vraie correction :)
FossilOrigin-Name: c868114044c1e0df9f9c3a75d688644e119246cfae0bea6073d501e5cd8a6d6f
2023-12-22 10:51:18 +00:00
engel
f524ebdc0f correction typo
FossilOrigin-Name: 4837259abc7fc0481a49542515a5f82ef206a8fb04f7c454a5714e5ac197e797
2023-12-22 10:34:47 +00:00
engel
e6470bd2e9 modif accès plugin url
FossilOrigin-Name: 59131604362396ea238eef30a36e4578738c18059d28706cd09dd81d9d2c4328
2023-12-22 10:34:33 +00:00
7 changed files with 51 additions and 53 deletions

View file

@ -16,10 +16,14 @@ $_GET['_dialog'] = true;
// signature
$signature =
(null !== $plugin->getConfig('signature')) ?
\KD2\HTTP::getScheme() . '://' . \KD2\HTTP::getHost() . WWW_URI . "/" . $plugin->getConfig('signature') :
"";
(null !== $config->fileURL('signature')) ?
$config->fileURL('signature') :
((null !== $plugin->getConfig('signature')) ?
\KD2\HTTP::getScheme() . '://' . \KD2\HTTP::getHost() . WWW_URI . $plugin->getConfig('signature') :
"");
// http://test.paheko.bzh/config/cavalier.png
error_log('signature = ' . $signature);
// logo
$config = Config::getInstance();
$logo_asso =
@ -111,7 +115,8 @@ function genererRecusPDF($totalPersonnes,
$numero_sequentiel = getNumSequentiel($configNum);
foreach ($totalPersonnes as $idPersonne => $personne) {
$tpl = new UserTemplate(null);
$tpl->setSource(PLUGIN_ROOT . '/templates/recu.skel');
/* $tpl->setSource(PLUGIN_ROOT . '/templates/recu.skel'); */
$tpl->setSourcePath(PLUGIN_ROOT . '/templates/recu.skel');
$tpl->assignArray(compact('signature', 'logo_asso', 'texteArticles'));
$tpl->assign('objet_asso', $plugin->getConfig('objet_asso'));

View file

@ -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;
}

View file

@ -95,3 +95,9 @@ span.titre, span.libelle
{
display : inline;
}
/* Ne pas imprimer le bandeau des boutons du profiler */
#__profiler
{
display: none;
}

View file

@ -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

View file

@ -5,8 +5,8 @@
<nav class="tabs">
<ul>
<li{if $current_nav == 'index'} class="current"{/if}><a href="{plugin_url}">Accueil</a></li>
<li{if $current_nav == 'personne'} class="current"{/if}><a href="{plugin_url file="action.php?action=personne"}">Versements par personne</a></li>
<li{if $current_nav == 'activite'} class="current"{/if}><a href="{plugin_url file="action.php?action=activite"}">Versements par activité et tarif</a></li>
{if $current_nav == 'personne'} <li class="current"><a>Versements par personne</a></li>{/if}
{if $current_nav == 'activite'} <li class="current"><a>Versements par activité et tarif</a></li>{/if}
{if $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_WRITE)}
<li{if $current_nav == 'config'} class="current"{/if}><a href="{plugin_url file="config.php"}">Configuration</a></li>
{/if}

View file

@ -14,7 +14,7 @@
<fieldset>
{* <legend>Choisir une des méthodes</legend> *}
<dl id="menu">
<dl>
<dd class="radio-btn">
<input type="radio" id="radio_versements_personne" name="choix_versements" value="personne"
onclick="choixMethodeGeneration(this.form, 'personne', 'menu_versements', '.menu');" />

View file

@ -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}
<?php
$fmt = new \NumberFormatter('fr_FR', \NumberFormatter::SPELLOUT);
@ -15,12 +15,12 @@
<p id="articles">Articles 200, 238 bis et 978 du code général des impôts</p>
<div id="numRecu">
{if $numero_sequentiel}
{afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_courant}
<?php
++$numero_courant;
?>
{afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_courant}
<?php
++$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}
</div>
</div>
@ -28,20 +28,20 @@
<div class="cartouche" id="beneficiaire">
<h3 class="rubrique">Bénéficiaire des versements</h3>
<p class="important">Association « {$org_name} »<br />
{$org_address}<br />
<span class="titre">Objet&nbsp;:&nbsp;</span><span class="libelle">{$objet_asso}</span>
{$org_address}<br />
<span class="titre">Objet&nbsp;:&nbsp;</span><span class="libelle">{$objet_asso}</span>
</p>
</div>
<div class="cartouche" id="donateur">
<h3 class="rubrique">Donateur</h3>
<p>
{$personne.nomPrenom}<br />
{$personne.adresse}<br />
{$personne.codePostal} {$personne.ville}
{if $courriel && $personne.courriel != ""}
<br />courriel : <a href="mailto:{$personne.courriel}">{$personne.courriel}</a>
{/if}
{$personne.nomPrenom}<br />
{$personne.adresse}<br />
{$personne.codePostal} {$personne.ville}
{if $courriel && $personne.courriel != ""}
<br />courriel : <a href="mailto:{$personne.courriel}">{$personne.courriel}</a>
{/if}
</p>
</div>