amélioration gestion configuration
FossilOrigin-Name: dd08bb3079c4797c7944082ca9377c645a73f466048bd3928eb1e83973f4fba3
This commit is contained in:
parent
a988c131aa
commit
3e02319484
7 changed files with 62 additions and 31 deletions
|
|
@ -4,9 +4,20 @@ namespace Garradin;
|
|||
|
||||
use Garradin\Plugin\RecusFiscaux\Utils;
|
||||
|
||||
// récupérer les tarifs sélectionnés
|
||||
// récupérer les infos du formulaire
|
||||
$lesTarifs = f('tarifs');
|
||||
$_SESSION['annee_recu'] = strip_tags($_POST['annee_recu']);
|
||||
$_SESSION['annee_recu'] = f('annee_recu');
|
||||
|
||||
// taux de réduction associés
|
||||
$lesTaux = array();
|
||||
foreach ($lesTarifs as $idTarif) {
|
||||
$nomRadio = "taux_reduction_" . $idTarif;
|
||||
$valRadio = f("$nomRadio");
|
||||
$lesTaux[] = $valRadio ? $valRadio: $plugin->getConfig()->reduction[0]->taux;
|
||||
}
|
||||
// error_log("Tarifs = " . print_r($lesTarifs, true) . "\n");
|
||||
// error_log("Réducs = " . print_r($lesTaux, true) . "\n");
|
||||
|
||||
// liste des versements correspondants
|
||||
$_SESSION['lesVersements'] = Utils::getVersementsActivite($_SESSION['annee_recu'], $lesTarifs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue