Normalisation attribut (Utils.php) ; ajout onglet Configuration ; préparation choix méthode de génération de reçus
FossilOrigin-Name: 08d84642c176039d5b91135007ba419f5cae36eca6445b55d0ed47b7db362df9
This commit is contained in:
parent
fa590c0d67
commit
a59923348f
11 changed files with 223 additions and 107 deletions
|
|
@ -4,11 +4,21 @@ namespace Garradin;
|
|||
|
||||
use Garradin\Plugin\RecusFiscaux\Utils;
|
||||
|
||||
// première année d'exercice
|
||||
$anneeCourante = date("Y");
|
||||
$anneesFiscales = Utils::getAnneesFiscales();
|
||||
if ($anneesFiscales[0] < $anneeCourante) {
|
||||
array_unshift($anneesFiscales, $anneeCourante);
|
||||
}
|
||||
|
||||
// liste des activités, cotisations et comptes associés
|
||||
$activitesTarifsComptes = Utils::getActivitesTarifsEtComptes();
|
||||
|
||||
// préparation de l'affichage
|
||||
$tpl->assign('anneesFiscales', $anneesFiscales);
|
||||
$tpl->assign('anneeCourante', $anneeCourante);
|
||||
$tpl->assign('activitesTarifsComptes', $activitesTarifsComptes);
|
||||
$tpl->assign('plugin_css', ['style.css']);
|
||||
|
||||
// envoyer au template
|
||||
$tpl->display(PLUGIN_ROOT . '/templates/index.tpl');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue