ajout vérification sélection année reçu

FossilOrigin-Name: 2ce14b6d56ad130d5ee4521f616d694a5855aaf638aac97d80aed46302c2fa38
This commit is contained in:
engel 2022-02-07 14:13:22 +00:00
parent 3e02319484
commit a787c1dacb
3 changed files with 14 additions and 4 deletions

View file

@ -4,9 +4,14 @@ namespace Garradin;
use Garradin\Plugin\RecusFiscaux\Utils;
// récupérer les infos du formulaire
$lesTarifs = f('tarifs');
// vérifier si l'année a bien été sélectionnée au préalable
$_SESSION['annee_recu'] = f('annee_recu');
// error_log("va.php::annee_recu = (" .$_SESSION['annee_recu'] . ")");
if (! isset($_SESSION['annee_recu']) || $_SESSION['annee_recu'] == "") {
\Garradin\Utils::redirect(PLUGIN_URL . 'index.php');
}
// récupérer les infos du formulaire
$lesTarifs = f('tarifs') ?: [];
// taux de réduction associés
$lesTaux = array();