prise en compte de différents champs nom et prénom
FossilOrigin-Name: 2895a7a5054d102c3262500e9e67557129592b607830a406d30fd3596cdfe6a9
This commit is contained in:
parent
5995f33efd
commit
a3aa6fa200
8 changed files with 271 additions and 108 deletions
|
|
@ -12,12 +12,27 @@ if (! isset($_SESSION['annee_recu']) || $_SESSION['annee_recu'] == "") {
|
|||
}
|
||||
$_SESSION['taux_reduction'] = $_POST['taux_reduction'];
|
||||
|
||||
// champs pour le nom et prénom
|
||||
$confNoms = (array) $plugin->getConfig('nomChamps');
|
||||
uasort($confNoms, function ($a, $b)
|
||||
{
|
||||
return $a->position - $b->position;
|
||||
});
|
||||
$champsNom = array();
|
||||
foreach ($confNoms as $nom => $champ)
|
||||
{
|
||||
if ($champ->position != 0) { $champsNom[] = $nom; }
|
||||
}
|
||||
|
||||
// versements totaux par personne
|
||||
$_SESSION['lesVersementsTotaux'] = Utils::getVersementsTotaux($_SESSION['annee_recu']);
|
||||
$_SESSION['lesVersementsTotaux'] =
|
||||
Utils::getVersementsTotaux($_SESSION['annee_recu'],
|
||||
$champsNom);
|
||||
|
||||
// membres donateurs
|
||||
$versementsMembres = Utils::getDonateurs($_SESSION['annee_recu'],
|
||||
$champsNom);
|
||||
$membresDonateurs = array();
|
||||
$versementsMembres = Utils::getDonateurs($_SESSION['annee_recu']);
|
||||
foreach ($versementsMembres as $versement) {
|
||||
$membresDonateurs[$versement->idUser] = new Personne($versement->idUser,
|
||||
$versement->nom,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue