Overview
Comment: | Création des écritures comptables liées à l'enregistrement d'un paiement |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
2dfd20ead779c4d8b8f83effe9ab49d1 |
User & Date: | bohwaz on 2014-02-06 17:39:24 |
Other Links: | manifest | tags |
Context
2014-02-06
| ||
17:40 | Utilisation de global.js pour détecter les fallback de input type=date plutôt que d'inclure directement datepickr check-in: ba9341763c user: bohwaz tags: trunk | |
17:39 | Création des écritures comptables liées à l'enregistrement d'un paiement check-in: 2dfd20ead7 user: bohwaz tags: trunk | |
17:38 | détection de fallback plus simple et rapide et fonctionnant avec chrome, pour input type="date" check-in: 8e270b999e user: bohwaz tags: trunk | |
Changes
Modified src/include/class.membres_transactions.php from [c1c0b2f33f] to [a28a264d2d].
︙ | |||
65 66 67 68 69 70 71 | 65 66 67 68 69 70 71 72 73 74 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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | + + - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | $this->_checkFields($data); if (empty($data['id_membre'])) { throw new UserException('Membre inconnu ou invalide.'); } $db->exec('BEGIN;'); |
︙ |
Modified src/templates/admin/membres/transactions/ajout.tpl from [0270e23c5b] to [3abf379283].
︙ | |||
33 34 35 36 37 38 39 | 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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | - + + + + + + + + + + + + + + + + + + + | <legend>Enregistrer un paiement</legend> <dl> <dt><label for="f_id_transaction">Cotisation ou activité liée</label></dt> <dd> <select id="f_id_transaction" name="id_transaction"> <option value="0" {form_field name="id_transaction" selected=0}>-- Aucune, paiement non lié</option> {foreach from=$transactions item="tr"} |
︙ | |||
70 71 72 73 74 75 76 | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + | <p class="submit"> {csrf_field key="add_transaction"} {if $membre}<input type="hidden" name="id_membre" value="{$membre.id|escape}" />{/if} <input type="submit" name="add" value="Enregistrer ce paiement →" /> </p> </form> <script type="text/javascript"> {literal} (function () { window.changeMoyenPaiement = function() |
Modified src/www/admin/membres/transactions/ajout.php from [e2c59b063f] to [1d8a763b77].
︙ | |||
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | 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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | + + + - + + - + + + + + + + + + + + + + + + + | throw new UserException("Ce membre n'existe pas."); } } $transactions = new Transactions; $m_transactions = new Membres_Transactions; $cats = new Compta_Categories; $banques = new Compta_Comptes_Bancaires; $error = false; if (!empty($_POST['add'])) { if (!utils::CSRF_check('add_transaction')) { $error = 'Une erreur est survenue, merci de renvoyer le formulaire.'; } else { try { |
︙ |