intégration comptes

FossilOrigin-Name: d81e13438cbc9ed585e76b36e2950615b8da359697f2c577673c77460b59064d
This commit is contained in:
engel 2022-05-18 10:29:19 +00:00
parent 4958b88538
commit 68e6afed11
9 changed files with 609 additions and 421 deletions

View file

@ -3,6 +3,42 @@
<h2>Versements par personne</h2>
<form method="post" id="saisie_taux" action="{$self_url}">
<div id="menu_versements" class="menu">
<h3>Choisir le taux de réduction</h3>
<fieldset>
{*
{if $nbTaux == 0}
<h3 class="warning">Vous devez d'abord sélectionner au moins un taux de réduction dans l'onglet de configuration</h3>
{/if}
{if $nbChamps == 0}
<h3 class="warning">Vous devez d'abord sélectionner au moins un champ pour le nom et le prénom dans l'onglet de configuration</h3>
{/if}
{if $nbTaux > 0 && $nbChamps > 0}
*}
<ul class="reduction">
{foreach from=$plugin_config->reduction item="reduc"}
{if $reduc->valeur == 1}
<li>
<span class="radio-btn">
<input type="radio" id="{$reduc->taux}" name="taux_reduction" value="{$reduc->taux}"
{*
{if $nbTaux == 1}checked{/if}
*}
/>
<label for="{$reduc->taux}">{$reduc->taux}{if $reduc->remarque != ""} - {$reduc->remarque}{/if}</label>
</span>
</li>
{/if}
{/foreach}
</ul>
{*
{/if}
*}
</fieldset>
</div>
</form>
<fieldset class="noprint">
<input type="checkbox" class="check_global" id="check_global"
onclick="cocherDecocherToutesLesPersonnes(check_global)" />
@ -14,7 +50,7 @@
onclick="return verifierChoix(this.form)" />
</fieldset>
<form method="post" id="versements_personnes" action="generer_recus.php?type=personne">
<form method="post" id="versements_personnes" class="" action="generer_recus.php?type=personne">
{* Itération sur les personnes *}
{foreach from=$lesVersements key="rang" item="versement"}
@ -23,28 +59,36 @@
<?php
$pair = true;
$personneCourante = $versement->idUser;
$compteCourant = $versement->compte;
$compteCourant = $versement->idCompte;
?>
{afficher_debut_personne user=$personneCourante idVersement=$personneCourante}
{afficher_debut_compte idCompte=$compteCourant}
{elseif $versement.idUser != $personneCourante}
{* changement de personne *}
{fin_compte}
{fin_personne}
<?php
$pair = true;
$personneCourante = $versement->idUser;
$compteCourant = $versement->compte;
$compteCourant = $versement->idCompte;
?>
{afficher_debut_personne user=$personneCourante idVersement=$personneCourante}
{elseif $versement.compte != $compteCourant}
{* même personne mais changement de compte *}
<?php $compteCourant = $versement->compte; ?>
<hr />
{afficher_debut_compte idCompte=$compteCourant}
{elseif $versement.idCompte != $compteCourant}
{fin_compte}
{* changement de compte *}
<?php
$pair = true;
$compteCourant = $versement->idCompte;
?>
{afficher_debut_compte idCompte=$compteCourant}
{else}
{* même personne, même compte *}
{/if}
{afficher_versement versement=$versement idVersement=$personneCourante rang=$rang pair=$pair}
<?php $pair = ! $pair; ?>
{/foreach} {* Itération sur les personnes *}
{fin_compte}
{fin_personne}
<input type="submit" value="Générer les reçus" onclick="return verifierChoix(this.form)" />