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
|
|
@ -13,6 +13,7 @@ if ($anneesFiscales[0] < $anneeCourante) {
|
|||
|
||||
// libellés pour les taux de réduction
|
||||
$_SESSION['ligneReduction'] = Utils::getLignesReduction($plugin->getConfig('reduction'));
|
||||
|
||||
// compter le nombre de taux de réduction activés
|
||||
$nbTaux = 0;
|
||||
foreach ($plugin->getConfig('reduction') as $taux)
|
||||
|
|
@ -20,6 +21,16 @@ foreach ($plugin->getConfig('reduction') as $taux)
|
|||
if ($taux->valeur == 1) { ++$nbTaux; }
|
||||
}
|
||||
|
||||
// idem avec les champs nom/prénom
|
||||
$nbChamps = 0;
|
||||
if (null !== $plugin->getConfig('nomChamps'))
|
||||
{
|
||||
foreach ($plugin->getConfig('nomChamps') as $nom => $champ)
|
||||
{
|
||||
if ($champ->position != 0) { ++$nbChamps; }
|
||||
}
|
||||
}
|
||||
|
||||
// liste des activités, cotisations et comptes associés
|
||||
$activitesTarifsComptes = Utils::getActivitesTarifsEtComptes();
|
||||
|
||||
|
|
@ -30,6 +41,7 @@ $tpl->assign('activitesTarifsComptes', $activitesTarifsComptes);
|
|||
$tpl->assign('nbTarifs', count($activitesTarifsComptes));
|
||||
$tpl->assign('plugin_config', $plugin->getConfig());
|
||||
$tpl->assign('nbTaux', $nbTaux);
|
||||
$tpl->assign('nbChamps', $nbChamps);
|
||||
$tpl->assign('plugin_css', ['style.css']);
|
||||
|
||||
// envoyer au template
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue