Comment: | Suppression de la cotisation obligatoire pour les catégories |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
84710d146ccc36123376e11e75689680 |
User & Date: | bohwaz on 2020-01-29 15:32:42 |
Other Links: | branch diff | manifest | tags |
2020-01-31
| ||
00:23 | Correctif PHP 7.4: référence à une variable nulle check-in: 83f694001d user: bohwaz tags: dev | |
2020-01-29
| ||
15:32 | Suppression de la cotisation obligatoire pour les catégories check-in: 84710d146c user: bohwaz tags: dev | |
15:32 | Mise à jour du modèle, passer de journal à mouvements check-in: bde8f826e8 user: bohwaz tags: dev | |
Modified src/include/data/1.0.0_migration.sql from [0f53908e4c] to [f261086c64].
1 2 3 4 5 6 7 8 9 10 11 12 | ALTER TABLE compta_journal RENAME TO compta_journal_old; ALTER TABLE compta_comptes RENAME TO compta_comptes_old; ALTER TABLE compta_categories RENAME TO compta_categories_old; ALTER TABLE compta_exercices RENAME TO compta_exercices_old; ALTER TABLE membres_operations RENAME TO membres_operations_old; DROP TABLE fichiers_compta_journal; -- Inutilisé à ce jour .read 1.0.0_schema.sql -- Migration comptes de code comme identifiant à ID unique INSERT INTO compta_comptes (id, code, parent, libelle, position, plan_comptable, id_exercice) | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 | ALTER TABLE compta_journal RENAME TO compta_journal_old; ALTER TABLE compta_comptes RENAME TO compta_comptes_old; ALTER TABLE compta_categories RENAME TO compta_categories_old; ALTER TABLE compta_exercices RENAME TO compta_exercices_old; ALTER TABLE membres_operations RENAME TO membres_operations_old; ALTER TABLE membres_categories RENAME TO membres_categories_old; DROP TABLE fichiers_compta_journal; -- Inutilisé à ce jour .read 1.0.0_schema.sql -- Migration comptes de code comme identifiant à ID unique INSERT INTO compta_comptes (id, code, parent, libelle, position, plan_comptable, id_exercice) |
︙ | ︙ | |||
36 37 38 39 40 41 42 43 44 45 46 47 48 49 | INSERT INTO membres_mouvements SELECT * FROM membres_operations_old; -- Recopie des exercices, mais la date de fin ne peut être nulle INSERT INTO compta_exercices SELECT id, libelle, debut, CASE WHEN fin IS NULL THEN date(debut, '+1 year') ELSE fin END, cloture FROM compta_exercices_old; DROP TABLE compta_journal_old; DROP TABLE membres_operations_old; DROP TABLE compta_categories_old; DROP TABLE compta_comptes_old; DROP TABLE compta_exercices_old; -- CREATE TABLE IF NOT EXISTS compta_comptes_soldes | > > > > | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | INSERT INTO membres_mouvements SELECT * FROM membres_operations_old; -- Recopie des exercices, mais la date de fin ne peut être nulle INSERT INTO compta_exercices SELECT id, libelle, debut, CASE WHEN fin IS NULL THEN date(debut, '+1 year') ELSE fin END, cloture FROM compta_exercices_old; -- Recopie des catégories, on supprime la colonne id_cotisation_obligatoire INSERT INTO membres_categories SELECT id, nom, droit_wiki, droit_membres, droit_compta, droit_inscription, droit_connexion, droit_config, cacher FROM membres_categories_old; DROP TABLE compta_journal_old; DROP TABLE membres_operations_old; DROP TABLE compta_categories_old; DROP TABLE compta_comptes_old; DROP TABLE compta_exercices_old; -- CREATE TABLE IF NOT EXISTS compta_comptes_soldes |
︙ | ︙ |
Modified src/include/data/1.0.0_schema.sql from [dff2a1e0df] to [9e284814b8].
︙ | ︙ | |||
16 17 18 19 20 21 22 | droit_wiki INTEGER NOT NULL DEFAULT 1, droit_membres INTEGER NOT NULL DEFAULT 1, droit_compta INTEGER NOT NULL DEFAULT 1, droit_inscription INTEGER NOT NULL DEFAULT 0, droit_connexion INTEGER NOT NULL DEFAULT 1, droit_config INTEGER NOT NULL DEFAULT 0, | | < < | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | droit_wiki INTEGER NOT NULL DEFAULT 1, droit_membres INTEGER NOT NULL DEFAULT 1, droit_compta INTEGER NOT NULL DEFAULT 1, droit_inscription INTEGER NOT NULL DEFAULT 0, droit_connexion INTEGER NOT NULL DEFAULT 1, droit_config INTEGER NOT NULL DEFAULT 0, cacher INTEGER NOT NULL DEFAULT 0 ); -- Membres de l'asso -- Table dynamique générée par l'application -- voir Garradin\Membres\Champs.php CREATE TABLE IF NOT EXISTS membres_sessions |
︙ | ︙ |
Modified src/include/lib/Garradin/Membres/Categories.php from [9c1326617e] to [2ef27a72a7].
︙ | ︙ | |||
23 24 25 26 27 28 29 | { $db = DB::getInstance(); if (!isset($data['nom']) || !trim($data['nom'])) { throw new UserException('Le nom de catégorie ne peut rester vide.'); } | < < < < < < < < < < < | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | { $db = DB::getInstance(); if (!isset($data['nom']) || !trim($data['nom'])) { throw new UserException('Le nom de catégorie ne peut rester vide.'); } } public function add($data) { $this->_checkData($data); foreach ($this->droits as $key=>$value) |
︙ | ︙ |
Modified src/include/lib/Garradin/Membres/Cotisations.php from [cf23856e38] to [faff4a2165].
︙ | ︙ | |||
253 254 255 256 257 258 259 | } /** * Liste des membres qui sont inscrits à une cotisation * @param integer $id Numéro de la cotisation * @return array Liste des membres */ | | | 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | } /** * Liste des membres qui sont inscrits à une cotisation * @param integer $id Numéro de la cotisation * @return array Liste des membres */ public function listMembersForCotisation($id, $page = 1, $order = null, $desc = true) { $begin = ($page - 1) * self::ITEMS_PER_PAGE; $db = DB::getInstance(); $champ_id = Config::getInstance()->get('champ_identite'); if (empty($order)) |
︙ | ︙ | |||
280 281 282 283 284 285 286 | default: $order = 'cm.id_membre'; break; } $desc = $desc ? 'DESC' : 'ASC'; | < < < < < < < < < < < < < < < < < < < < | 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | default: $order = 'cm.id_membre'; break; } $desc = $desc ? 'DESC' : 'ASC'; return $db->get('SELECT cm.id_membre, cm.date, cm.id, m.numero, m.'.$champ_id.' AS nom, c.montant, CASE WHEN c.duree IS NOT NULL THEN date(cm.date, \'+\'||c.duree||\' days\') >= date() WHEN c.fin IS NOT NULL THEN (cm.date <= c.fin AND cm.date >= c.debut) ELSE 1 END AS a_jour FROM cotisations_membres AS cm INNER JOIN cotisations AS c ON c.id = cm.id_cotisation |
︙ | ︙ |
Modified src/templates/admin/compta/operations/saisir.tpl from [14b3e3ace9] to [6f6ae84b30].
1 2 3 | {include file="admin/_head.tpl" title="Saisie d'une opération" current="compta/saisie" js=1} <form method="post" action="{$self_url}"> | < < < < < < < | | | | | | | | | | < | < > | < | | < < < < < > < < < | < < < < < < | < < | < < < < < < < < > > > | | < < | < < < | < | | | > > | < < < < < < < > | < < < < < < < | < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | {include file="admin/_head.tpl" title="Saisie d'une opération" current="compta/saisie" js=1} <form method="post" action="{$self_url}"> {form_errors} {if $ok} <p class="confirm"> L'opération numéro <a href="{$admin_url}compta/operations/voir.php?id={$ok}">{$ok}</a> a été ajoutée. (<a href="{$admin_url}compta/operations/voir.php?id={$ok}">Voir l'opération</a>) </p> {/if} <fieldset> <legend>Type d'écriture</legend> <dl> {input type="radio" name="type" value="recette" label="Recette"} {input type="radio" name="type" value="depense" label="Dépense"} {input type="radio" name="type" value="virement" label="Virement" help="Faire un virement entre comptes, déposer des espèces en banque, etc."} {input type="radio" name="type" value="dette" label="Dette" help="Quand l'association doit de l'argent à un membre ou un fournisseur"} {input type="radio" name="type" value="creance" label="Créance" help="Quand un membre ou un fournisseur doit de l'argent à l'association"} {input type="radio" name="type" value="avance" label="Saisie avancée" help="Choisir les comptes du plan comptable, ventiler une écriture sur plusieurs comptes, etc."} </dl> </fieldset> <fieldset> <legend>Informations</legend> <dl> {input type="date" name="date" value=$date label="Date" required} {input type="text" name="libelle" label="Libellé" required} {input type="number" name="montant" label="Montant" min="0.00" step="0.01" value="0.00" required} {$config.monnaie} </dl> <dl class="type_recette type_depense"> {input type="select" name="moyen" label="Moyen de paiement" required options=$moyens_paiement} {input type="select" name="compte" options=$comptes_encaissement label="Compte d'encaissement" required} {input type="text" name="reference_paiement" label="Référence de paiement" help="Numéro de chèque, numéro de transaction CB, etc."} </dl> <dl class="type_avance"> {input type="compta_lignes" name="lignes" label="Lignes de l'écriture"} </dl> </fieldset> <fieldset class="type_virement"> <legend>Virement</legend> <dl> {input type="select" name="from" options=$comptes label="De" required} {input type="select" name="to" options=$comptes label="Vers" required} </dl> </fieldset> <fieldset> <legend>Détails</legend> <dl> {input type="datalist" name="membre" label="Membres associés"} {input type="text" name="numero_piece" label="Numéro de pièce comptable"} {input type="textarea" name="remarques" label="Remarques" rows=4 cols=30} {if count($projets) > 0} {input type="select" name="projet" options=$projets} {/if} </dl> </fieldset> <fieldset class="type_dette"> <legend>Dette</legend> <dl> <dt><label for="f_compte_usager">Type de dette</label></dt> |
︙ | ︙ | |||
123 124 125 126 127 128 129 | </dl> </fieldset> <fieldset class="type_recette"> <legend>Catégorie</legend> <dl class="catList"> {foreach from=$categories_recettes item="cat"} | < | < < < | < < | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | </dl> </fieldset> <fieldset class="type_recette"> <legend>Catégorie</legend> <dl class="catList"> {foreach from=$categories_recettes item="cat"} {input type="radio" name="categorie_recette" value=$cat.id label=$cat.intitule} {if !empty($cat.description)} <dd class="desc">{$cat.description}</dd> {/if} {/foreach} </dl> </fieldset> <fieldset class="type_depense type_dette"> <legend>Catégorie</legend> <dl class="catList"> {foreach from=$categories_depenses item="cat"} {input type="radio" name="categorie_depense" value=$cat.id label=$cat.intitule} {if !empty($cat.description)} <dd class="desc">{$cat.description}</dd> {/if} {/foreach} </dl> </fieldset> |
︙ | ︙ |
Modified src/templates/admin/config/categories/modifier.tpl from [5f082eb8b5] to [5b06ee18b0].
︙ | ︙ | |||
16 17 18 19 20 21 22 | <label for="f_cacher">Catégorie cachée</label> </dt> <dd class="help"> Si coché cette catégorie ne sera visible qu'aux administrateurs et ne recevra pas de messages collectifs ou de rappels. </dd> </dl> | < < < < < < < < < < < < < < < < < < < < < < < < | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <label for="f_cacher">Catégorie cachée</label> </dt> <dd class="help"> Si coché cette catégorie ne sera visible qu'aux administrateurs et ne recevra pas de messages collectifs ou de rappels. </dd> </dl> </fieldset> <fieldset> <legend>Droits</legend> <dl class="droits"> <dt><label for="f_droit_connexion_aucun">Les membres de cette catégorie peuvent-ils se connecter ?</label></dt> {if $readonly} |
︙ | ︙ |
Modified src/templates/admin/index.tpl from [68896b2b83] to [a728eba131].
1 2 3 4 5 6 | {include file="admin/_head.tpl" title="Bonjour %s !"|args:$user.identite current="home"} {$banniere|raw} <ul class="actions"> <li><a href="{$admin_url}mes_infos.php">Modifier mes informations personnelles</a></li> | < < < < < < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 | {include file="admin/_head.tpl" title="Bonjour %s !"|args:$user.identite current="home"} {$banniere|raw} <ul class="actions"> <li><a href="{$admin_url}mes_infos.php">Modifier mes informations personnelles</a></li> <li><a href="{$admin_url}mes_cotisations.php">Suivi de mes cotisations</a></li> </ul> <aside class="describe"> <h3>{$config.nom_asso}</h3> {if !empty($config.adresse_asso)} |
︙ | ︙ |
Modified src/templates/admin/membres/cotisations.tpl from [062d322929] to [a057efaebd].
1 2 3 4 5 6 7 8 9 10 11 12 | {include file="admin/_head.tpl" title="Cotisations du membre" current="membres/cotisations"} <ul class="actions"> <li><a href="{$admin_url}membres/fiche.php?id={$membre.id}">{$membre.identite}</a></li> {if $session->canAccess('membres', Membres::DROIT_ECRITURE)}<li><a href="{$admin_url}membres/modifier.php?id={$membre.id}">Modifier</a></li>{/if} {if $session->canAccess('membres', Membres::DROIT_ADMIN) && $user.id != $membre.id} <li><a href="{$admin_url}membres/supprimer.php?id={$membre.id}">Supprimer</a></li> {/if} <li class="current"><a href="{$admin_url}membres/cotisations.php?id={$membre.id}">Suivi des cotisations</a></li> </ul> <dl class="cotisation"> | < < < < < < < < < < < < < < < < < < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {include file="admin/_head.tpl" title="Cotisations du membre" current="membres/cotisations"} <ul class="actions"> <li><a href="{$admin_url}membres/fiche.php?id={$membre.id}">{$membre.identite}</a></li> {if $session->canAccess('membres', Membres::DROIT_ECRITURE)}<li><a href="{$admin_url}membres/modifier.php?id={$membre.id}">Modifier</a></li>{/if} {if $session->canAccess('membres', Membres::DROIT_ADMIN) && $user.id != $membre.id} <li><a href="{$admin_url}membres/supprimer.php?id={$membre.id}">Supprimer</a></li> {/if} <li class="current"><a href="{$admin_url}membres/cotisations.php?id={$membre.id}">Suivi des cotisations</a></li> </ul> <dl class="cotisation"> <dt> {if $nb_activites == 1} {$nb_activites} cotisation enregistrée {elseif $nb_activites} {$nb_activites} cotisations enregistrées {else} Aucune cotisation enregistrée |
︙ | ︙ |
Modified src/templates/admin/membres/cotisations/voir.tpl from [79533ebb65] to [2daa0083bb].
︙ | ︙ | |||
18 19 20 21 22 23 24 | {elseif $cotisation.debut} du {$cotisation.debut|format_sqlite_date_to_french} au {$cotisation.fin|format_sqlite_date_to_french} {else} ponctuelle {/if} — {$cotisation.montant|escape|html_money} {$config.monnaie} </dd> | < < < < < < | | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | {elseif $cotisation.debut} du {$cotisation.debut|format_sqlite_date_to_french} au {$cotisation.fin|format_sqlite_date_to_french} {else} ponctuelle {/if} — {$cotisation.montant|escape|html_money} {$config.monnaie} </dd> <dt>Nombre de membres ayant cotisé</dt> <dd> {$cotisation.nb_membres} <small class="help">(incluant les membres des catégories cachées)</small> </dd> </dl> {if !empty($liste)} |
︙ | ︙ |
Modified src/templates/admin/membres/fiche.tpl from [99f7b69c9c] to [c629e41ab5].
1 2 3 4 5 6 7 8 9 10 11 12 | {include file="admin/_head.tpl" title="%s (%s)"|args:$membre.identite:$categorie.nom current="membres"} <ul class="actions"> <li class="current"><a href="{$admin_url}membres/fiche.php?id={$membre.id}">{$membre.identite}</a></li> {if $session->canAccess('membres', Membres::DROIT_ECRITURE)}<li><a href="{$admin_url}membres/modifier.php?id={$membre.id}">Modifier</a></li>{/if} {if $session->canAccess('membres', Membres::DROIT_ADMIN) && $user.id != $membre.id} <li><a href="{$admin_url}membres/supprimer.php?id={$membre.id}">Supprimer</a></li> {/if} <li><a href="{$admin_url}membres/cotisations.php?id={$membre.id}">Suivi des cotisations</a></li> </ul> <dl class="cotisation"> | < < < < < < < < < < < < < < < < < < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {include file="admin/_head.tpl" title="%s (%s)"|args:$membre.identite:$categorie.nom current="membres"} <ul class="actions"> <li class="current"><a href="{$admin_url}membres/fiche.php?id={$membre.id}">{$membre.identite}</a></li> {if $session->canAccess('membres', Membres::DROIT_ECRITURE)}<li><a href="{$admin_url}membres/modifier.php?id={$membre.id}">Modifier</a></li>{/if} {if $session->canAccess('membres', Membres::DROIT_ADMIN) && $user.id != $membre.id} <li><a href="{$admin_url}membres/supprimer.php?id={$membre.id}">Supprimer</a></li> {/if} <li><a href="{$admin_url}membres/cotisations.php?id={$membre.id}">Suivi des cotisations</a></li> </ul> <dl class="cotisation"> <dt> {if $nb_activites == 1} {$nb_activites} cotisation enregistrée {elseif $nb_activites} {$nb_activites} cotisations enregistrées {else} Aucune cotisation enregistrée |
︙ | ︙ |
Modified src/templates/admin/mes_cotisations.tpl from [2423b2fa48] to [6c9a6778eb].
1 2 3 4 5 6 7 8 9 10 11 12 | {include file="admin/_head.tpl" title="Mes cotisations" current="mes_cotisations"} <dl class="cotisation"> <dt> {if $nb_activites == 1} Vous avez {$nb_activites} cotisation enregistrée. {elseif $nb_activites} Vous avez {$nb_activites} cotisations enregistrées. {else} Vous n'avez aucune cotisation enregistrée. {/if} </dt> | < < < < < < < < < < < < < < < < < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {include file="admin/_head.tpl" title="Mes cotisations" current="mes_cotisations"} <dl class="cotisation"> <dt> {if $nb_activites == 1} Vous avez {$nb_activites} cotisation enregistrée. {elseif $nb_activites} Vous avez {$nb_activites} cotisations enregistrées. {else} Vous n'avez aucune cotisation enregistrée. {/if} </dt> {if !empty($cotisations_membre)} <dt>Cotisations en cours</dt> {foreach from=$cotisations_membre item="co"} <dd>{$co.intitule} — {if $co.a_jour} <span class="confirm">À jour</span>{if $co.expiration} — Expire le {$co.expiration|format_sqlite_date_to_french}{/if} {else} |
︙ | ︙ |
Modified src/www/admin/compta/operations/saisir.php from [20d760aa75] to [294cef7d9f].
︙ | ︙ | |||
166 167 168 169 170 171 172 | $tpl->assign('banque', f('banque')); $tpl->assign('compte_cheque_e_encaisser', Compta\Comptes::CHEQUE_A_ENCAISSER); $tpl->assign('compte_carte_e_encaisser', Compta\Comptes::CARTE_A_ENCAISSER); $tpl->assign('projets', (new Compta\Projets)->getAssocList()); if (!$session->get('context_compta_date')) { | < < < < < | < < < < < | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | $tpl->assign('banque', f('banque')); $tpl->assign('compte_cheque_e_encaisser', Compta\Comptes::CHEQUE_A_ENCAISSER); $tpl->assign('compte_carte_e_encaisser', Compta\Comptes::CARTE_A_ENCAISSER); $tpl->assign('projets', (new Compta\Projets)->getAssocList()); if (!$session->get('context_compta_date')) { $session->set('context_compta_date', date('Y-m-d')); } $tpl->assign('date', $session->get('context_compta_date') ?: false); $tpl->assign('ok', (int) qg('ok')); $tpl->display('admin/compta/operations/saisir.tpl'); |
Modified src/www/admin/config/categories/modifier.php from [6a75b928b9] to [79f85734c9].
︙ | ︙ | |||
30 31 32 33 34 35 36 | 'droit_wiki' => 'in:' . $droits, 'droit_compta' => 'in:' . $droits, 'droit_membres' => 'in:' . $droits, 'droit_config' => sprintf('in:%s,%s', Membres::DROIT_ADMIN, Membres::DROIT_AUCUN), 'droit_connexion' => sprintf('in:%s,%s', Membres::DROIT_ACCES, Membres::DROIT_AUCUN), 'droit_inscription' => sprintf('in:%s,%s', Membres::DROIT_ACCES, Membres::DROIT_AUCUN), 'cacher' => 'boolean', | < < | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 'droit_wiki' => 'in:' . $droits, 'droit_compta' => 'in:' . $droits, 'droit_membres' => 'in:' . $droits, 'droit_config' => sprintf('in:%s,%s', Membres::DROIT_ADMIN, Membres::DROIT_AUCUN), 'droit_connexion' => sprintf('in:%s,%s', Membres::DROIT_ACCES, Membres::DROIT_AUCUN), 'droit_inscription' => sprintf('in:%s,%s', Membres::DROIT_ACCES, Membres::DROIT_AUCUN), 'cacher' => 'boolean', ]); if (!$form->hasErrors()) { $data = [ 'nom' => f('nom'), 'droit_wiki' => (int) f('droit_wiki'), 'droit_compta' => (int) f('droit_compta'), 'droit_config' => (int) f('droit_config'), 'droit_membres' => (int) f('droit_membres'), 'droit_connexion' => (int) f('droit_connexion'), 'droit_inscription' => (int) f('droit_inscription'), 'cacher' => (int) f('cacher'), ]; // Ne pas permettre de modifier la connexion, l'accès à la config et à la gestion des membres // pour la catégorie du membre qui édite les catégories, sinon il pourrait s'empêcher // de se connecter ou n'avoir aucune catégorie avec le droit de modifier les catégories ! if ($cat->id == $user->id_categorie) { |
︙ | ︙ | |||
78 79 80 81 82 83 84 | } } $tpl->assign('cat', $cat); $tpl->assign('readonly', $cat->id == $user->id_categorie ? 'disabled="disabled"' : ''); | < < < | 76 77 78 79 80 81 82 83 84 85 | } } $tpl->assign('cat', $cat); $tpl->assign('readonly', $cat->id == $user->id_categorie ? 'disabled="disabled"' : ''); $tpl->assign('membres', new Membres); $tpl->display('admin/config/categories/modifier.tpl'); |
Modified src/www/admin/index.php from [5988e390c9] to [3aa5eb7127].
︙ | ︙ | |||
9 10 11 12 13 14 15 | $tpl->assign('categorie', $categorie); $wiki = new Wiki; $page = $wiki->getByURI($config->get('accueil_connexion')); $tpl->assign('page', $page); | < < < < < < < < < < < < < < < | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | $tpl->assign('categorie', $categorie); $wiki = new Wiki; $page = $wiki->getByURI($config->get('accueil_connexion')); $tpl->assign('page', $page); $tpl->assign('custom_css', ['wiki.css']); $tpl->assign('banniere', Plugin::fireSignal('accueil.banniere', ['user' => $user, 'session' => $session])); $tpl->display('admin/index.tpl'); flush(); // Si pas de cron on réalise les tâches automatisées à ce moment-là // c'est pas idéal mais mieux que rien if (!USE_CRON) { require_once ROOT . '/cron.php'; } |
Modified src/www/admin/membres/cotisations.php from [d156e1e5bb] to [3c5966921b].
︙ | ︙ | |||
17 18 19 20 21 22 23 | $cats = new Membres\Categories; $categorie = $cats->get($membre->id_categorie); $tpl->assign('categorie', $categorie); $cotisations = new Membres\Cotisations; | < < < < < < < < < | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | $cats = new Membres\Categories; $categorie = $cats->get($membre->id_categorie); $tpl->assign('categorie', $categorie); $cotisations = new Membres\Cotisations; $tpl->assign('nb_activites', $cotisations->countForMember($membre->id)); $tpl->assign('cotisations', $cotisations->listForMember($membre->id)); $tpl->assign('cotisations_membre', $cotisations->listSubscriptionsForMember($membre->id)); $tpl->assign('membre', $membre); $tpl->display('admin/membres/cotisations.tpl'); |
Modified src/www/admin/membres/cotisations/ajout.php from [b2cc2cef01] to [5f20942e98].
︙ | ︙ | |||
15 16 17 18 19 20 21 | { throw new UserException("Ce membre n'existe pas."); } $cats = new Membres\Categories; $categorie = $cats->get($membre->id_categorie); } | < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | { throw new UserException("Ce membre n'existe pas."); } $cats = new Membres\Categories; $categorie = $cats->get($membre->id_categorie); } $cotisations = new Cotisations; $m_cotisations = new Membres\Cotisations; $cats = new Compta\Categories; $banques = new Compta\Comptes_Bancaires; |
︙ | ︙ | |||
85 86 87 88 89 90 91 | throw new UserException("La cotisation indiquée en paramètre n'existe pas."); } $tpl->assign('default_co', $co->id); $tpl->assign('default_compta', $co->id_categorie_compta); $tpl->assign('default_amount', $co->montant); } | < | < < < < < < < < < | 81 82 83 84 85 86 87 88 89 | throw new UserException("La cotisation indiquée en paramètre n'existe pas."); } $tpl->assign('default_co', $co->id); $tpl->assign('default_compta', $co->id_categorie_compta); $tpl->assign('default_amount', $co->montant); } $tpl->display('admin/membres/cotisations/ajout.tpl'); |
Modified src/www/admin/membres/cotisations/voir.php from [8935c9e002] to [4373893e11].
︙ | ︙ | |||
14 15 16 17 18 19 20 | if (!$co) { throw new UserException("Cette cotisation n'existe pas."); } $page = (int) qg('p') ?: 1; | < < < | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | if (!$co) { throw new UserException("Cette cotisation n'existe pas."); } $page = (int) qg('p') ?: 1; $tpl->assign('page', $page); $tpl->assign('bypage', Membres\Cotisations::ITEMS_PER_PAGE); $tpl->assign('total', $m_cotisations->countMembersForCotisation($co->id)); $tpl->assign('pagination_url', Utils::getSelfUrl([ 'id' => $co->id, 'o' => qg('o'), (qg('a') !== null ? 'a' : 'd') => '', 'p' => '[ID]', 'cats' => $categories, ])); $tpl->assign('cotisation', $co); $tpl->assign('order', qg('o') ?: 'date'); $tpl->assign('desc', null === qg('a')); $tpl->assign('liste', $m_cotisations->listMembersForCotisation( $co->id, $page, qg('o'), null !== qg('a') ? false : true)); $tpl->display('admin/membres/cotisations/voir.tpl'); |
Modified src/www/admin/membres/fiche.php from [890dac5864] to [113fb90286].
︙ | ︙ | |||
20 21 22 23 24 25 26 | $cats = new Membres\Categories; $categorie = $cats->get($membre->id_categorie); $tpl->assign('categorie', $categorie); $cotisations = new Membres\Cotisations; | < < < < < < < < < | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | $cats = new Membres\Categories; $categorie = $cats->get($membre->id_categorie); $tpl->assign('categorie', $categorie); $cotisations = new Membres\Cotisations; $tpl->assign('nb_activites', $cotisations->countForMember($membre->id)); if ($session->canAccess('compta', Membres::DROIT_ACCES)) { $journal = new Compta\Journal; $tpl->assign('nb_operations', $journal->countForMember($membre->id)); } $tpl->assign('membre', $membre); $tpl->display('admin/membres/fiche.tpl'); |
Modified src/www/admin/mes_cotisations.php from [8944c5b1e8] to [4a39980973].
︙ | ︙ | |||
8 9 10 11 12 13 14 | $cats = new Membres\Categories; $categorie = $cats->get($user->id_categorie); $tpl->assign('categorie', $categorie); $cotisations = new Membres\Cotisations; | < < < < < < < < < | 8 9 10 11 12 13 14 15 16 17 18 19 | $cats = new Membres\Categories; $categorie = $cats->get($user->id_categorie); $tpl->assign('categorie', $categorie); $cotisations = new Membres\Cotisations; $tpl->assign('nb_activites', $cotisations->countForMember($user->id)); $tpl->assign('cotisations', $cotisations->listForMember($user->id)); $tpl->assign('cotisations_membre', $cotisations->listSubscriptionsForMember($user->id)); $tpl->display('admin/mes_cotisations.tpl'); |