Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
engel | 4d042d1e36 | |
engel | c9568f3eaf | |
engel | 1396f2fd73 | |
engel | c41a8a8168 | |
engel | 02b0517717 |
|
@ -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://git.roflcopter.fr/lesanges/recus-fiscaux-garradin"
|
||||
version="0.6.4"
|
||||
version="0.7"
|
||||
menu=1
|
||||
config=1
|
||||
min_version="1.1"
|
||||
min_version="1.1.23"
|
||||
|
|
|
@ -158,7 +158,9 @@ class Utils
|
|||
acc_accounts.id as idCompte,
|
||||
acc_accounts.code as codeCompte,
|
||||
acc_transactions_lines.credit as versement,
|
||||
acc_transactions.date
|
||||
acc_transactions.date,
|
||||
acc_transactions_lines.id as id_trans_line,
|
||||
acc_transactions.id as id_transaction
|
||||
FROM acc_transactions_users
|
||||
INNER JOIN membres
|
||||
ON acc_transactions_users.id_user = membres.id
|
||||
|
@ -204,7 +206,9 @@ class Utils
|
|||
acc_accounts.code as codeCompte,
|
||||
membres.id as idUser,
|
||||
acc_transactions_lines.credit as versement,
|
||||
acc_transactions.date
|
||||
acc_transactions.date,
|
||||
acc_transactions_lines.id as id_trans_line,
|
||||
acc_transactions.id as id_transaction
|
||||
FROM acc_transactions_users
|
||||
INNER JOIN membres
|
||||
ON acc_transactions_users.id_user = membres.id
|
||||
|
@ -256,7 +260,9 @@ class Utils
|
|||
acc_accounts.code as codeCompte,
|
||||
membres.id as idUser,
|
||||
acc_transactions_lines.credit as versement,
|
||||
acc_transactions.date
|
||||
acc_transactions.date,
|
||||
acc_transactions_lines.id as id_trans_line,
|
||||
acc_transactions.id as id_transaction
|
||||
FROM acc_transactions_users
|
||||
INNER JOIN membres
|
||||
ON acc_transactions_users.id_user = membres.id
|
||||
|
@ -351,7 +357,12 @@ class Utils
|
|||
return 'trim(' . $result . ')';
|
||||
}
|
||||
|
||||
private static function combinerTri($champs)
|
||||
/**
|
||||
* combiner les clés de tri
|
||||
* @param clés de tri
|
||||
* @return chaîne combinée
|
||||
*/
|
||||
private static function combinerTri(array $champs) : string
|
||||
{
|
||||
$tri = 'membres.' . $champs[0];
|
||||
for ($i = 1; $i < count($champs); ++$i)
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
*}
|
||||
<div>
|
||||
<input type="checkbox" name="articlesCGI[]" id="article_{$key}" value="{$key}" class="choix"
|
||||
{if $article.valeur == 1}checked{/if}>
|
||||
{if $article.valeur == 1}checked{/if} />
|
||||
<label for="article_{$key}">Article {$article.titre}</label>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
@ -44,7 +44,7 @@
|
|||
{foreach from=$plugin_config->reduction key="key" item="taux"}
|
||||
<div>
|
||||
<input type="checkbox" name="tauxReduction[]" id="taux_{$key}" value="{$key}" class="choix"
|
||||
{if $taux.valeur == 1}checked{/if}>
|
||||
{if $taux.valeur == 1}checked{/if} />
|
||||
<label for="taux_{$key}">Taux {$taux.taux}, ligne {$taux.ligne} de la déclaration
|
||||
{if $taux.remarque !== ""}({$taux.remarque})</label>{/if}
|
||||
</div>
|
||||
|
@ -95,7 +95,7 @@
|
|||
<div class="champnom">
|
||||
<div class="actions"></div>
|
||||
<div class="infos">
|
||||
<input type="checkbox" name="champsNom[]" id="champ_{$nom}" value={$nom} class="choix" {if $nbChamps == 1 || $champ.position != 0}checked{/if} >
|
||||
<input type="checkbox" name="champsNom[]" id="champ_{$nom}" value={$nom} class="choix" {if $nbChamps == 1 || $champ.position != 0}checked{/if} />
|
||||
<label for="champ_{$nom}">{$champ.titre}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -155,7 +155,6 @@
|
|||
<?php $compte = $lesComptes[$idCompte]; ?>
|
||||
<span>compte : {$compte.codeCompte} ({$compte.nomCompte})</span>
|
||||
</div>
|
||||
{/foreach}
|
||||
<ul class="reduction">
|
||||
{foreach from=$plugin_config->reduction item="reduc"}
|
||||
{if $reduc->valeur == 1}
|
||||
|
@ -177,6 +176,7 @@
|
|||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</fieldset>
|
||||
|
|
|
@ -165,6 +165,7 @@ $tpl->register_function('afficher_versement', function ($params)
|
|||
onclick="cocherDecocherVersement(check_%1$s_%2$s, total_%1$s)" />
|
||||
<label for="check_%1$s_%2$s"><span class="montant">%3$s</span>
|
||||
<span>%4$s</span>
|
||||
<span class="num"><a href="%5$sacc/transactions/details.php?id=%6$s">#%6$s</a></span>
|
||||
</label>
|
||||
</div>',
|
||||
$idVersement,
|
||||
|
@ -175,7 +176,9 @@ $tpl->register_function('afficher_versement', function ($params)
|
|||
",",
|
||||
" "
|
||||
),
|
||||
date_format(date_create($versement->date),"d/m/Y")
|
||||
date_format(date_create($versement->date),"d/m/Y"),
|
||||
ADMIN_URL,
|
||||
$versement->id_transaction
|
||||
);
|
||||
return $out;
|
||||
});
|
||||
|
|
|
@ -21,7 +21,7 @@ function cocherDecocherTout(idCaseGlobale)
|
|||
|
||||
/**
|
||||
* Fonction appelée quand on (dé)coche la case d'activité
|
||||
* (dé)sélectionner toutes les cases à cocher de cette activité
|
||||
* (dé)sélectionner toutes les cases de cette activité
|
||||
* @param {HTMLInputElement} idCaseGlobale id de la case d'activité
|
||||
*/
|
||||
function cocherDecocherTarif(idCaseGlobale)
|
||||
|
|
Loading…
Reference in New Issue