2022-01-26 12:12:42 +01:00
|
|
|
<!-- nav bar -->
|
|
|
|
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="index"}
|
2022-01-14 09:04:45 +01:00
|
|
|
|
2022-01-28 15:40:21 +01:00
|
|
|
<h2>Choisir l'année fiscale</h2>
|
2022-02-18 10:37:39 +01:00
|
|
|
<form id="formulaire_saisie" method="post" action="action.php">
|
2022-01-28 15:40:21 +01:00
|
|
|
<fieldset>
|
|
|
|
{* <legend>Choisir l'année fiscale</legend> *}
|
|
|
|
<select id="annee_recu" name="annee_recu">
|
|
|
|
{foreach from=$anneesFiscales item="annee"}
|
|
|
|
<option value="{$annee}" {if $annee == $anneeCourante - 1} selected{/if}>{$annee}
|
|
|
|
</option>
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<div id="choix_methode">
|
|
|
|
<h2>Choisir une méthode de génération des reçus</h2>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
{* <legend>Choisir une des méthodes</legend> *}
|
|
|
|
<dl>
|
|
|
|
<dd class="radio-btn">
|
|
|
|
<input type="radio" id="radio_tous_versements" name="choix_versements" value="tous_versements"
|
|
|
|
onclick="afficherMasquer(this.form, '.tous', '.activites');" />
|
|
|
|
<label for="radio_tous_versements">
|
|
|
|
<div>
|
|
|
|
<h5>
|
|
|
|
Tous les versements des membres font l'objet d'un reçu, sans
|
|
|
|
tenir compte des activités et tarifs
|
|
|
|
</h5>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dd class="radio-btn">
|
|
|
|
<input type="radio" id="radio_versements_activites" name="choix_versements"
|
2022-01-29 15:03:41 +01:00
|
|
|
value="versements_activites" onclick="afficherMasquer(this.form, '.activites', '.tous');" />
|
2022-01-28 15:40:21 +01:00
|
|
|
<label for="radio_versements_activites">
|
|
|
|
<div>
|
|
|
|
<h5>
|
|
|
|
Seuls les versements de certaines activités et tarifs font
|
|
|
|
l'objet d'un reçu
|
|
|
|
</h5>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
2022-02-17 15:14:12 +01:00
|
|
|
|
2022-02-18 10:37:39 +01:00
|
|
|
<div id="div_taux_reduc" class="tous hidden">
|
2022-02-17 15:14:12 +01:00
|
|
|
<h2>Choisir le taux de réduction</h2>
|
|
|
|
<fieldset>
|
|
|
|
{foreach from=$plugin_config->reduction item="reduc"}
|
|
|
|
<span class="radio-btn">
|
|
|
|
<input type="radio" id="{$reduc->taux}"
|
|
|
|
name="taux_reduction" value="{$reduc->taux}" />
|
|
|
|
<label for="{$reduc->taux}">{$reduc->taux}{if $reduc->remarque != ""} - {$reduc->remarque}{/if}</label>
|
|
|
|
</span>
|
|
|
|
{/foreach}
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
|
2022-01-28 15:40:21 +01:00
|
|
|
<div id="generer_tous" class="tous hidden">
|
|
|
|
<p class=" submit">
|
|
|
|
{csrf_field key="generer_tous_recus"}
|
2022-02-18 10:37:39 +01:00
|
|
|
{button type="submit" name="generer_tous" label="Poursuivre" shape="right" class="main" onclick="return verifierRadio('div_taux_reduc');" }
|
2022-01-28 15:40:21 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
2022-02-03 10:35:35 +01:00
|
|
|
|
2022-01-28 15:40:21 +01:00
|
|
|
<div id="liste_activites_tarifs" class="activites hidden">
|
|
|
|
<h2>Choisir les activités et tarifs concernés par les reçus ainsi que le taux de réduction</h2>
|
2022-02-17 15:14:12 +01:00
|
|
|
<fieldset>
|
2022-02-03 10:35:35 +01:00
|
|
|
<table class="list">
|
2022-01-28 15:40:21 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Cocher</th>
|
|
|
|
<th>Activité et Tarif</th>
|
|
|
|
<th>Taux de réduction</th>
|
|
|
|
<th>Caractéristiques activité</th>
|
|
|
|
<th>N° et Compte</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{foreach from=$activitesTarifsComptes item="activite"}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{input type="checkbox" name="tarifs[]" value=$activite.idTarif}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span>{$activite.titreActivite} - {$activite.titreTarif}</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-02-17 15:14:12 +01:00
|
|
|
{foreach from=$plugin_config->reduction item="reduc"}
|
|
|
|
<span class="radio-btn">
|
|
|
|
<input type="radio" id="taux_{$reduc->taux}_{$activite.idTarif}"
|
|
|
|
name="taux_reduction_{$activite.idTarif}" value="{$reduc->taux}" disabled />
|
|
|
|
<label for="taux_{$reduc->taux}_{$activite.idTarif}">{$reduc->taux}{if $reduc->remarque != ""} - {$reduc->remarque}{/if}</label>
|
|
|
|
</span>
|
|
|
|
{/foreach}
|
2022-01-28 15:40:21 +01:00
|
|
|
</td>
|
|
|
|
<td>{if $activite.descActivite != ""}{$activite.descActivite} ; {/if}{$activite.descTarif}</td>
|
|
|
|
<td>{$activite.numeroCpt} : {$activite.nomCpt}</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-02-17 15:14:12 +01:00
|
|
|
</fieldset>
|
2022-01-28 15:40:21 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="generer_activites" class="activites hidden">
|
|
|
|
<p class=" submit">
|
|
|
|
{csrf_field key="generer_recus_activites"}
|
2022-02-18 10:37:39 +01:00
|
|
|
{button type="submit" name="generer_activites" label="Poursuivre" shape="right" class="main" onclick="return verifierCases('liste_activites_tarifs');" }
|
2022-01-28 15:40:21 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</form>
|
2022-01-29 15:03:41 +01:00
|
|
|
|
|
|
|
<script type="text/javascript" src="script.js" defer="defer"></script>
|
2022-01-28 15:40:21 +01:00
|
|
|
{literal}
|
2022-01-29 15:03:41 +01:00
|
|
|
<script type="text/javascript">
|
2022-02-18 10:37:39 +01:00
|
|
|
// activer/désactiver les radios des activités/tarifs
|
2022-01-29 15:03:41 +01:00
|
|
|
for (var laCase of document.querySelectorAll("input[type=checkbox]")) {
|
|
|
|
laCase.addEventListener('change', (evt) => {
|
|
|
|
var idCase = evt.target;
|
|
|
|
// chercher la ligne englobante (<tr>)
|
|
|
|
var ligne = idCase.closest("tr");
|
|
|
|
// itérer sur les radio de cette ligne
|
|
|
|
var lesRadios = ligne.querySelectorAll('input[type=radio]');
|
|
|
|
for (var idRadio of lesRadios) {
|
|
|
|
if (idCase.checked) {
|
|
|
|
idRadio.disabled = '';
|
|
|
|
} else {
|
|
|
|
idRadio.disabled = 'disabled';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2022-01-28 15:40:21 +01:00
|
|
|
</script>
|
|
|
|
{/literal}
|
2022-01-14 18:59:18 +01:00
|
|
|
|
2022-01-14 09:04:45 +01:00
|
|
|
<!-- footer -->
|
2022-01-14 18:59:18 +01:00
|
|
|
{include file="admin/_foot.tpl"}
|