Début restructuration pour compatibilité version 1.3 de paheko
FossilOrigin-Name: 467790c5738a867592117ea6b3a7ac6c61738dab3b8e29a48fed8f19b9df2b38
This commit is contained in:
parent
e75c56b736
commit
bc4739877c
27 changed files with 77 additions and 46 deletions
34
admin/versements_personnes.php
Normal file
34
admin/versements_personnes.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
|
||||
use Garradin\Plugin\RecusFiscaux\Personne;
|
||||
use Garradin\Plugin\RecusFiscaux\Utils;
|
||||
|
||||
// vérifier si le taux de réduction a été sélectionné au préalable
|
||||
$taux = f('taux_reduction');
|
||||
if (! isset($_SESSION['taux_reduction'])
|
||||
&&
|
||||
null === $taux)
|
||||
{
|
||||
\Garradin\Utils::redirect(PLUGIN_URL . 'index.php');
|
||||
}
|
||||
if (null !== $taux) {
|
||||
$_SESSION['taux_reduction'] = $taux;
|
||||
}
|
||||
|
||||
// versements par personne
|
||||
$_SESSION['lesVersements'] = Utils::getVersementsPersonnes(
|
||||
$_SESSION['annee_recu'],
|
||||
'like',
|
||||
'7%',
|
||||
$champsNom);
|
||||
|
||||
// préparation de l'affichage
|
||||
$tpl->assign('lesVersements', $_SESSION['lesVersements']);
|
||||
$tpl->assign('annee_recu', $_SESSION['annee_recu']);
|
||||
$tpl->assign('plugin_css', ['style.css']);
|
||||
|
||||
// envoyer au template
|
||||
$tpl->assign('plugin_config', $plugin->getConfig());
|
||||
$tpl->display(PLUGIN_ROOT . '/templates/versements_personnes.tpl');
|
||||
Loading…
Add table
Add a link
Reference in a new issue